libpwquality: fixup static build
Close #96023 (original PR). Amended by vcunat (isMusl != isStatic).
This commit is contained in:
parent
db919693e4
commit
a72822c23f
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, autoreconfHook, perl, cracklib, python3 }:
|
{ stdenv, lib, fetchFromGitHub, autoreconfHook, perl, cracklib, python3, fetchpatch }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libpwquality";
|
pname = "libpwquality";
|
||||||
@ -11,8 +11,21 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0n4pjhm7wfivk0wizggaxq4y4mcxic876wcarjabkp5z9k14y36h";
|
sha256 = "0n4pjhm7wfivk0wizggaxq4y4mcxic876wcarjabkp5z9k14y36h";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook perl ];
|
nativeBuildInputs = [ autoreconfHook perl python3 ];
|
||||||
buildInputs = [ cracklib python3 ];
|
buildInputs = [ cracklib ];
|
||||||
|
|
||||||
|
patches = lib.optional stdenv.hostPlatform.isStatic [
|
||||||
|
(fetchpatch {
|
||||||
|
name = "static-build.patch";
|
||||||
|
url = "https://github.com/libpwquality/libpwquality/pull/40.patch";
|
||||||
|
sha256 = "1ypccq437wxwgddd98cvd330jfm7jscdlzlyxgy05g6yzrr68xyk";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
configureFlags = lib.optional stdenv.hostPlatform.isStatic [
|
||||||
|
# Python binding generates a shared library which are unavailable with musl build
|
||||||
|
"--disable-python-bindings"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Password quality checking and random password generation library";
|
description = "Password quality checking and random password generation library";
|
||||||
|
Loading…
Reference in New Issue
Block a user