diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2017-01-05 17:28:13 -0600 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2017-01-07 17:59:14 -0600 |
commit | 6695954d48ac8ce21b35e396972c857dc0c3f8f0 (patch) | |
tree | 7c824688542fed1138cfeecf1717a2d582cd92cb /pkgs/applications/networking/p2p | |
parent | 976aed886b8f9280521a38dfa07419741263acfe (diff) | |
download | nixlib-6695954d48ac8ce21b35e396972c857dc0c3f8f0.tar nixlib-6695954d48ac8ce21b35e396972c857dc0c3f8f0.tar.gz nixlib-6695954d48ac8ce21b35e396972c857dc0c3f8f0.tar.bz2 nixlib-6695954d48ac8ce21b35e396972c857dc0c3f8f0.tar.lz nixlib-6695954d48ac8ce21b35e396972c857dc0c3f8f0.tar.xz nixlib-6695954d48ac8ce21b35e396972c857dc0c3f8f0.tar.zst nixlib-6695954d48ac8ce21b35e396972c857dc0c3f8f0.zip |
transmission: fix building on Darwin
This sets "--disable-mac" so that we use GTK instead of the macOS backend. The macOS backend should work but currently it breaks with xcbuild.
Diffstat (limited to 'pkgs/applications/networking/p2p')
-rw-r--r-- | pkgs/applications/networking/p2p/transmission/default.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/applications/networking/p2p/transmission/default.nix b/pkgs/applications/networking/p2p/transmission/default.nix index dba0de118e1c..12692b9566f9 100644 --- a/pkgs/applications/networking/p2p/transmission/default.nix +++ b/pkgs/applications/networking/p2p/transmission/default.nix @@ -20,19 +20,22 @@ stdenv.mkDerivation rec { sha256 = "0pykmhi7pdmzq47glbj8i2im6iarp4wnj4l1pyvsrnba61f0939s"; }; - buildInputs = [ pkgconfig intltool file openssl curl libevent inotify-tools zlib ] + buildInputs = [ pkgconfig intltool file openssl curl libevent zlib ] ++ optionals enableGTK3 [ gtk3 makeWrapper ] ++ optionals enableSystemd [ systemd ] + ++ optionals stdenv.isLinux [ inotify-tools ]; postPatch = '' substituteInPlace ./configure \ --replace "libsystemd-daemon" "libsystemd" \ - --replace "/usr/bin/file" "${file}/bin/file" + --replace "/usr/bin/file" "${file}/bin/file" \ + --replace "test ! -d /Developer/SDKs/MacOSX10.5.sdk" "false" ''; configureFlags = [ ("--enable-cli=" + (if enableCli then "yes" else "no")) ("--enable-daemon=" + (if enableDaemon then "yes" else "no")) + "--disable-mac" # requires xcodebuild ] ++ optional enableSystemd "--with-systemd-daemon" ++ optional enableGTK3 "--with-gtk"; @@ -43,6 +46,8 @@ stdenv.mkDerivation rec { --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" ''; + NIX_LDFLAGS = optionalString stdenv.isDarwin "-framework CoreFoundation"; + meta = with stdenv.lib; { description = "A fast, easy and free BitTorrent client"; longDescription = '' @@ -59,7 +64,7 @@ stdenv.mkDerivation rec { homepage = http://www.transmissionbt.com/; license = licenses.gpl2; # parts are under MIT maintainers = with maintainers; [ astsmtl vcunat wizeman ]; - platforms = platforms.linux; + platforms = platforms.unix; }; } |