spl: Make naming more consistent with zfs
This commit is contained in:
parent
ef80d73e6a
commit
161e9648e4
@ -11,14 +11,15 @@
|
|||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
let
|
let
|
||||||
needsKernelSource = any (n: n == configFile) [ "kernel" "all" ];
|
buildKernel = any (n: n == configFile) [ "kernel" "all" ];
|
||||||
|
buildUser = any (n: n == configFile) [ "user" "all" ];
|
||||||
in
|
in
|
||||||
|
|
||||||
assert any (n: n == configFile) [ "kernel" "user" "all" ];
|
assert any (n: n == configFile) [ "kernel" "user" "all" ];
|
||||||
assert needsKernelSource -> kernel != null;
|
assert buildKernel -> kernel != null && spl != null;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "spl-${configFile}-${version}${optionalString needsKernelSource "-${kernel.version}"}";
|
name = "spl-${configFile}-${version}${optionalString buildKernel "-${kernel.version}"}";
|
||||||
|
|
||||||
inherit version src patches;
|
inherit version src patches;
|
||||||
|
|
||||||
@ -37,7 +38,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-config=${configFile}"
|
"--with-config=${configFile}"
|
||||||
] ++ optionals needsKernelSource [
|
] ++ optionals buildKernel [
|
||||||
"--with-linux=${kernel.dev}/lib/modules/${kernel.modDirVersion}/source"
|
"--with-linux=${kernel.dev}/lib/modules/${kernel.modDirVersion}/source"
|
||||||
"--with-linux-obj=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
"--with-linux-obj=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user