1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 08:31:59 +00:00
nixpkgs/pkgs/tools/misc/mktorrent/default.nix
2014-07-28 11:31:14 +02:00

28 lines
764 B
Nix

{stdenv, fetchurl, openssl}:
stdenv.mkDerivation {
name = "mktorrent-1.0";
src = fetchurl {
url = mirror://sourceforge/mktorrent/mktorrent-1.0.tar.gz;
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";
preInstall = ''
installFlags=PREFIX=$out
'';
buildInputs = [ openssl ];
meta = {
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;
maintainers = with stdenv.lib.maintainers; [viric];
};
}