xml-security-c: fix build on darwin, small clean up
This commit is contained in:
parent
e7d0b599e1
commit
e9653e7e20
1 changed files with 20 additions and 10 deletions
|
@ -2,19 +2,23 @@
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
fetchurl,
|
fetchurl,
|
||||||
|
pkg-config,
|
||||||
xalanc,
|
xalanc,
|
||||||
xercesc,
|
xercesc,
|
||||||
openssl,
|
openssl,
|
||||||
pkg-config,
|
darwin,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
|
inherit (darwin.apple_sdk.frameworks) CoreFoundation CoreServices SystemConfiguration;
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "xml-security-c";
|
pname = "xml-security-c";
|
||||||
version = "2.0.4";
|
version = "2.0.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://apache/santuario/c-library/${pname}-${version}.tar.gz";
|
url = "mirror://apache/santuario/c-library/xml-security-c-${finalAttrs.version}.tar.gz";
|
||||||
sha256 = "sha256-p42mcg9sK6FBANJCYTHg0z6sWi26XMEb3QSXS364kAM=";
|
hash = "sha256-p42mcg9sK6FBANJCYTHg0z6sWi26XMEb3QSXS364kAM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
@ -25,11 +29,17 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs =
|
||||||
xalanc
|
[
|
||||||
xercesc
|
xalanc
|
||||||
openssl
|
xercesc
|
||||||
];
|
openssl
|
||||||
|
]
|
||||||
|
++ lib.optionals stdenv.isDarwin [
|
||||||
|
CoreFoundation
|
||||||
|
CoreServices
|
||||||
|
SystemConfiguration
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://santuario.apache.org/";
|
homepage = "https://santuario.apache.org/";
|
||||||
|
@ -38,4 +48,4 @@ stdenv.mkDerivation rec {
|
||||||
platforms = lib.platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
maintainers = [ lib.maintainers.jagajaga ];
|
maintainers = [ lib.maintainers.jagajaga ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue