diff options
author | Guillaume Girol <symphorien+git@xlumurb.eu> | 2021-05-02 20:23:08 +0200 |
---|---|---|
committer | Guillaume Girol <symphorien+git@xlumurb.eu> | 2021-05-02 20:51:51 +0200 |
commit | b7a97187839e4a43fd837854bf9dd81034b4eef2 (patch) | |
tree | 9f5449a958842218e7d199bb259997b9cdfcf299 | |
parent | e3ad419b87019f7a3cbfd8c8cda88b104a0c7c9b (diff) | |
download | nixpkgs-b7a97187839e4a43fd837854bf9dd81034b4eef2.tar nixpkgs-b7a97187839e4a43fd837854bf9dd81034b4eef2.tar.gz nixpkgs-b7a97187839e4a43fd837854bf9dd81034b4eef2.tar.bz2 nixpkgs-b7a97187839e4a43fd837854bf9dd81034b4eef2.tar.lz nixpkgs-b7a97187839e4a43fd837854bf9dd81034b4eef2.tar.xz nixpkgs-b7a97187839e4a43fd837854bf9dd81034b4eef2.tar.zst nixpkgs-b7a97187839e4a43fd837854bf9dd81034b4eef2.zip |
libsepol: fix static build
-rw-r--r-- | pkgs/os-specific/linux/libsepol/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/libsepol/default.nix b/pkgs/os-specific/linux/libsepol/default.nix index 12a94d6fc42..f1da77b3ac8 100644 --- a/pkgs/os-specific/linux/libsepol/default.nix +++ b/pkgs/os-specific/linux/libsepol/default.nix @@ -13,6 +13,11 @@ stdenv.mkDerivation rec { sha256 = "0ygb6dh5lng91xs6xiqf5v0nxa68qmjc787p0s5h9w89364f2yjv"; }; + postPatch = lib.optionalString stdenv.hostPlatform.isStatic '' + substituteInPlace src/Makefile --replace 'all: $(LIBA) $(LIBSO)' 'all: $(LIBA)' + sed -i $'/^\t.*LIBSO/d' src/Makefile + ''; + nativeBuildInputs = [ flex ]; makeFlags = [ |