diff options
author | Väinö Järvelä <vaino.jarvela@reaktor.com> | 2018-02-18 21:19:52 +0200 |
---|---|---|
committer | Väinö Järvelä <vaino.jarvela@reaktor.com> | 2018-02-21 07:33:11 +0200 |
commit | 2a532e2496f5b5637598847955cf005689be2bab (patch) | |
tree | 2897df65e87b22a83d3ba59142770e8699b203b5 /pkgs/tools | |
parent | aacd3e526799516e46e229e05ee25518063d3419 (diff) | |
download | nixpkgs-2a532e2496f5b5637598847955cf005689be2bab.tar nixpkgs-2a532e2496f5b5637598847955cf005689be2bab.tar.gz nixpkgs-2a532e2496f5b5637598847955cf005689be2bab.tar.bz2 nixpkgs-2a532e2496f5b5637598847955cf005689be2bab.tar.lz nixpkgs-2a532e2496f5b5637598847955cf005689be2bab.tar.xz nixpkgs-2a532e2496f5b5637598847955cf005689be2bab.tar.zst nixpkgs-2a532e2496f5b5637598847955cf005689be2bab.zip |
rpm: Add Darwin support
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/package-management/rpm/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/tools/package-management/rpm/default.nix b/pkgs/tools/package-management/rpm/default.nix index 57581091f92..3a56db1e0d3 100644 --- a/pkgs/tools/package-management/rpm/default.nix +++ b/pkgs/tools/package-management/rpm/default.nix @@ -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; }; } |