diff options
author | Florian Klink <flokli@flokli.de> | 2020-05-24 02:25:18 +0200 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2020-07-12 23:04:33 +0200 |
commit | df67459b89d69b9edde653efa6cb8d702179be0b (patch) | |
tree | 673cf1f096785f9aee331a601a7c33850247aec2 /pkgs/os-specific/linux/lvm2/default.nix | |
parent | 198d1e6f5cb3eaca9f09ca05c28edc0bb1a1ace1 (diff) | |
download | nixpkgs-df67459b89d69b9edde653efa6cb8d702179be0b.tar nixpkgs-df67459b89d69b9edde653efa6cb8d702179be0b.tar.gz nixpkgs-df67459b89d69b9edde653efa6cb8d702179be0b.tar.bz2 nixpkgs-df67459b89d69b9edde653efa6cb8d702179be0b.tar.lz nixpkgs-df67459b89d69b9edde653efa6cb8d702179be0b.tar.xz nixpkgs-df67459b89d69b9edde653efa6cb8d702179be0b.tar.zst nixpkgs-df67459b89d69b9edde653efa6cb8d702179be0b.zip |
lvm2: don't embed ./configure line in lvm2 binary
Diffstat (limited to 'pkgs/os-specific/linux/lvm2/default.nix')
-rw-r--r-- | pkgs/os-specific/linux/lvm2/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/lvm2/default.nix b/pkgs/os-specific/linux/lvm2/default.nix index 0e5a349da02..6d62d770e4d 100644 --- a/pkgs/os-specific/linux/lvm2/default.nix +++ b/pkgs/os-specific/linux/lvm2/default.nix @@ -49,6 +49,11 @@ stdenv.mkDerivation rec { substituteInPlace libdm/make.tmpl.in --replace "@systemdsystemunitdir@" "$out/lib/systemd/system" ''; + postConfigure = '' + sed -i 's|^#define LVM_CONFIGURE_LINE.*$|#define LVM_CONFIGURE_LINE "<removed>"|g' ./include/configure.h + ''; + + patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [ (fetchpatch { name = "fix-stdio-usage.patch"; |