1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 05:31:22 +00:00
nixpkgs/pkgs/tools/misc/mktorrent/default.nix
Lluís Batlle i Rossell 66d7126255 Take me (viric) out of most maintenance
Since years I'm not maintaining anything of the list below other
than some updates when I needed them for some reason. Other people
is doing that maintenance on my behalf so I better take me out but
for very few packages. Finally!
2018-07-22 21:50:19 +02:00

31 lines
819 B
Nix

{stdenv, fetchFromGitHub, openssl}:
stdenv.mkDerivation rec {
name = "mktorrent-${version}";
version = "1.1";
src = fetchFromGitHub {
owner = "Rudde";
repo = "mktorrent";
rev = "v${version}";
sha256 = "17pdc5mandl739f8q26n5is8ga56s83aqcrwhlnnplbxwx2inidr";
};
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
'';
buildInputs = [ openssl ];
meta = {
homepage = http://mktorrent.sourceforge.net/;
license = stdenv.lib.licenses.gpl2Plus;
description = "Command line utility to create BitTorrent metainfo files";
maintainers = with stdenv.lib.maintainers; [Profpatsch];
};
}