2013-03-12 18:43:57 +00:00
|
|
|
{stdenv, fetchurl, openssl}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2013-07-13 21:14:00 +01:00
|
|
|
name = "mktorrent-1.0";
|
2013-03-12 18:43:57 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://sourceforge/mktorrent/mktorrent-1.0.tar.gz;
|
|
|
|
sha256 = "17qi3nfky240pq6qcmf5qg324mxm83vk9r3nvsdhsvinyqm5d3kg";
|
|
|
|
};
|
|
|
|
|
2015-04-07 03:09:48 +01:00
|
|
|
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";
|
2013-03-12 18:43:57 +00:00
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
installFlags=PREFIX=$out
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://mktorrent.sourceforge.net/;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2013-03-12 18:43:57 +00:00
|
|
|
description = "Command line utility to create BitTorrent metainfo files";
|
2015-04-07 03:09:48 +01:00
|
|
|
platforms = with stdenv.lib.platforms; unix;
|
2013-03-12 18:43:57 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
};
|
|
|
|
}
|