mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
rpm: Add Darwin support
This commit is contained in:
parent
aacd3e5267
commit
2a532e2496
|
@ -18,7 +18,8 @@ stdenv.mkDerivation rec {
|
||||||
buildInputs = [ cpio zlib bzip2 file libarchive nspr nss db xz python lua ];
|
buildInputs = [ cpio zlib bzip2 file libarchive nspr nss db xz python lua ];
|
||||||
|
|
||||||
# rpm/rpmlib.h includes popt.h, and then the pkg-config file mentions these as linkage requirements
|
# rpm/rpmlib.h includes popt.h, and then the pkg-config file mentions these as linkage requirements
|
||||||
propagatedBuildInputs = [ popt elfutils nss db bzip2 libarchive libbfd ];
|
propagatedBuildInputs = [ popt nss db bzip2 libarchive libbfd ]
|
||||||
|
++ stdenv.lib.optional stdenv.isLinux elfutils;
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-I${nspr.dev}/include/nspr -I${nss.dev}/include/nss";
|
NIX_CFLAGS_COMPILE = "-I${nspr.dev}/include/nspr -I${nss.dev}/include/nss";
|
||||||
|
|
||||||
|
@ -59,6 +60,6 @@ stdenv.mkDerivation rec {
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
description = "The RPM Package Manager";
|
description = "The RPM Package Manager";
|
||||||
maintainers = with maintainers; [ copumpkin ];
|
maintainers = with maintainers; [ copumpkin ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue