Merge pull request #7225 from spwhitt/mktorrent
mktorrent: Fix build on Darwin
This commit is contained in:
commit
0e78d175b5
@ -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];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user