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