From ead57bf463ffb13132db13d8e7eeb18f4b88af25 Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Mon, 6 Apr 2015 22:09:48 -0400 Subject: mktorrent: Fix build on Darwin Fixes #2676 --- pkgs/tools/misc/mktorrent/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pkgs/tools/misc/mktorrent') diff --git a/pkgs/tools/misc/mktorrent/default.nix b/pkgs/tools/misc/mktorrent/default.nix index 3200c7016b66..c62bd45fef8d 100644 --- a/pkgs/tools/misc/mktorrent/default.nix +++ b/pkgs/tools/misc/mktorrent/default.nix @@ -8,8 +8,9 @@ stdenv.mkDerivation { sha256 = "17qi3nfky240pq6qcmf5qg324mxm83vk9r3nvsdhsvinyqm5d3kg"; }; - makeFlags = "CFLAGS=-lgcc_s USE_PTHREADS=1 USE_OPENSSL=1 USE_LONG_OPTIONS=1" + - stdenv.lib.optionalString stdenv.isi686 " USE_LARGE_FILES=1"; + makeFlags = "USE_PTHREADS=1 USE_OPENSSL=1 USE_LONG_OPTIONS=1" + + stdenv.lib.optionalString stdenv.isi686 " USE_LARGE_FILES=1" + + stdenv.lib.optionalString stdenv.isLinux "CFLAGS=-lgcc_s"; preInstall = '' installFlags=PREFIX=$out @@ -21,7 +22,7 @@ stdenv.mkDerivation { homepage = http://mktorrent.sourceforge.net/; license = stdenv.lib.licenses.gpl2Plus; description = "Command line utility to create BitTorrent metainfo files"; - platforms = with stdenv.lib.platforms; linux; + platforms = with stdenv.lib.platforms; unix; maintainers = with stdenv.lib.maintainers; [viric]; }; } -- cgit 1.4.1