libcap: fix static build

It supports static build with SHARED=no; the patch no longer applies.

Tested by building pkgsStatic.libcap.
This commit is contained in:
Orivej Desh
2021-04-08 05:51:56 +00:00
parent a634ea874a
commit 90691042af
2 changed files with 1 additions and 25 deletions
+1 -3
View File
@@ -14,8 +14,6 @@ stdenv.mkDerivation rec {
sha256 = "sha256-TelZDuCah8KC1Vhzf/tbYXXMv9JtWArdEN9E0PBH9sI=";
};
patches = lib.optional isStatic ./no-shared-lib.patch;
outputs = [ "out" "dev" "lib" "man" "doc" ]
++ lib.optional usePam "pam";
@@ -31,7 +29,7 @@ stdenv.mkDerivation rec {
"PAM_CAP=${if usePam then "yes" else "no"}"
"BUILD_CC=$(CC_FOR_BUILD)"
"CC:=$(CC)"
];
] ++ lib.optional isStatic "SHARED=no";
prePatch = ''
# use full path to bash