yder: Disable systemd on non-linux
This commit is contained in:
parent
601221807c
commit
d80ea6aa4d
@ -1,4 +1,7 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, cmake, orcania, systemd, check, subunit }:
|
{ stdenv, lib, fetchFromGitHub, cmake, orcania, systemd, check, subunit
|
||||||
|
, withSystemd ? stdenv.isLinux
|
||||||
|
}:
|
||||||
|
assert withSystemd -> systemd != null;
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "yder";
|
pname = "yder";
|
||||||
version = "1.4.6";
|
version = "1.4.6";
|
||||||
@ -18,13 +21,13 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
buildInputs = [ orcania ];
|
buildInputs = [ orcania ] ++ lib.optional withSystemd systemd;
|
||||||
|
|
||||||
checkInputs = [ check subunit ];
|
checkInputs = [ check subunit ];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DBUILD_YDER_TESTING=on"
|
"-DBUILD_YDER_TESTING=on"
|
||||||
];
|
] ++ lib.optional (!withSystemd) "-DWITH_JOURNALD=off";
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
@ -37,6 +40,6 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = "https://github.com/babelouest/yder";
|
homepage = "https://github.com/babelouest/yder";
|
||||||
license = licenses.lgpl21;
|
license = licenses.lgpl21;
|
||||||
maintainers = with maintainers; [ johnazoidberg ];
|
maintainers = with maintainers; [ johnazoidberg ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user