Merge pull request #39790 from matthewbauer/gnu-on-darwin

GNUs on Darwin
This commit is contained in:
Matthew Justin Bauer
2018-05-01 13:56:54 -05:00
committed by GitHub
11 changed files with 28 additions and 30 deletions

View File

@@ -1,4 +1,5 @@
{ stdenv, lib, fetchurl, pkgconfig, libcdio, libxml2, popt }:
{ stdenv, lib, fetchurl, pkgconfig, libcdio, libxml2, popt
, libiconv, darwin }:
stdenv.mkDerivation rec {
name = "vcdimager-2.0.1";
@@ -10,14 +11,15 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libxml2 popt ];
buildInputs = [ libxml2 popt libiconv ]
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ IOKit DiskArbitration ]);
propagatedBuildInputs = [ libcdio ];
meta = with lib; {
homepage = http://www.gnu.org/software/vcdimager/;
description = "Full-featured mastering suite for authoring, disassembling and analyzing Video CDs and Super Video CDs";
platforms = platforms.gnu ++ platforms.linux; # random choice
platforms = platforms.unix;
license = licenses.gpl2;
};
}