1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

rpm: Add Darwin support

This commit is contained in:
Väinö Järvelä 2018-02-18 21:19:52 +02:00
parent aacd3e5267
commit 2a532e2496

View file

@ -18,7 +18,8 @@ stdenv.mkDerivation rec {
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
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";
@ -59,6 +60,6 @@ stdenv.mkDerivation rec {
license = licenses.gpl2;
description = "The RPM Package Manager";
maintainers = with maintainers; [ copumpkin ];
platforms = platforms.linux;
platforms = platforms.linux ++ platforms.darwin;
};
}