systemd-cryptsetup-generator: Init

This commit is contained in:
Moritz Ulrich 2016-03-24 12:42:27 +01:00
parent 2e9a0b21f4
commit 47e5fd9f57
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,21 @@
{ stdenv, systemd, cryptsetup }:
assert stdenv.isLinux;
stdenv.lib.overrideDerivation systemd (p: {
version = p.version;
name = "systemd-cryptsetup-generator";
nativeBuildInputs = p.nativeBuildInputs ++ [ cryptsetup ];
outputs = [ "out" ];
buildPhase = ''
make $makeFlags built-sources
make $makeFlags systemd-cryptsetup-generator
'';
installPhase = ''
mkdir -p $out/lib/systemd/system-generators/
cp systemd-cryptsetup-generator $out/lib/systemd/system-generators/systemd-cryptsetup-generator
'';
})

View File

@ -10997,6 +10997,9 @@ in
inherit cryptsetup;
});
# The standalone cryptsetup generator for systemd
systemd-cryptsetup-generator = callPackage ../os-specific/linux/systemd/cryptsetup-generator.nix { };
# In nixos, you can set systemd.package = pkgs.systemd_with_lvm2 to get
# LVM2 working in systemd.
systemd_with_lvm2 = pkgs.lib.overrideDerivation pkgs.systemd (p: {