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/dumptorrent/default.nix

30 lines
725 B
Nix
Raw Normal View History

2016-04-09 11:20:40 +01:00
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "dumptorrent";
2016-04-09 11:20:40 +01:00
version = "1.2";
src = fetchurl {
url = "mirror://sourceforge/dumptorrent/dumptorrent-${version}.tar.gz";
sha256 = "073h03bmpfdy15qh37lvppayld2747i4acpyk0pm5nf2raiak0zm";
};
2016-08-12 04:18:57 +01:00
patchPhase = ''
substituteInPlace Makefile \
--replace "gcc" "cc"
'';
2016-04-09 11:20:40 +01:00
installPhase = ''
mkdir -p $out/bin
cp ./dumptorrent $out/bin
'';
meta = with stdenv.lib; {
description = "Dump .torrent file information";
homepage = "https://sourceforge.net/projects/dumptorrent/";
2016-04-09 11:20:40 +01:00
license = licenses.gpl2;
maintainers = [ maintainers.zohl ];
platforms = platforms.all;
};
}