2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2016-04-09 10:20:40 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "dumptorrent";
|
2016-04-09 10:20:40 +00:00
|
|
|
version = "1.2";
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2016-04-09 10:20:40 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/dumptorrent/dumptorrent-${version}.tar.gz";
|
|
|
|
sha256 = "073h03bmpfdy15qh37lvppayld2747i4acpyk0pm5nf2raiak0zm";
|
|
|
|
};
|
|
|
|
|
2023-05-15 20:45:00 +00:00
|
|
|
postPatch = ''
|
2016-08-12 03:18:57 +00:00
|
|
|
substituteInPlace Makefile \
|
2023-05-15 20:45:00 +00:00
|
|
|
--replace "gcc" "$CC"
|
2016-08-12 03:18:57 +00:00
|
|
|
'';
|
|
|
|
|
2016-04-09 10:20:40 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ./dumptorrent $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-04-09 10:20:40 +00:00
|
|
|
description = "Dump .torrent file information";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/dumptorrent/";
|
2024-04-26 11:35:31 +00:00
|
|
|
license = licenses.gpl2Only;
|
2016-04-09 10:20:40 +00:00
|
|
|
maintainers = [ maintainers.zohl ];
|
|
|
|
platforms = platforms.all;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "dumptorrent";
|
2016-04-09 10:20:40 +00:00
|
|
|
};
|
|
|
|
}
|