From 3efadce03b12ff6483d34b1353106161fff6a308 Mon Sep 17 00:00:00 2001 From: Moritz Ulrich Date: Tue, 9 Aug 2016 19:21:25 +0200 Subject: [PATCH] systemd-cryptsetup-generator: Fix installPhase. --- pkgs/os-specific/linux/systemd/cryptsetup-generator.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/systemd/cryptsetup-generator.nix b/pkgs/os-specific/linux/systemd/cryptsetup-generator.nix index 2935990755c6..11422f7d428d 100644 --- a/pkgs/os-specific/linux/systemd/cryptsetup-generator.nix +++ b/pkgs/os-specific/linux/systemd/cryptsetup-generator.nix @@ -15,11 +15,14 @@ stdenv.lib.overrideDerivation systemd (p: { make $makeFlags systemd-cryptsetup-generator ''; + # For some reason systemd-cryptsetup-generator is a wrapper-script + # with the current release of systemd. We want the real one. installPhase = '' mkdir -p $out/lib/systemd/ cp systemd-cryptsetup $out/lib/systemd/systemd-cryptsetup + cp .libs/*.so $out/lib/ mkdir -p $out/lib/systemd/system-generators/ - cp systemd-cryptsetup-generator $out/lib/systemd/system-generators/systemd-cryptsetup-generator + cp .libs/systemd-cryptsetup-generator $out/lib/systemd/system-generators/systemd-cryptsetup-generator ''; })