5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
30 lines
758 B
Nix
30 lines
758 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dumptorrent";
|
|
version = "1.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/dumptorrent/dumptorrent-${version}.tar.gz";
|
|
sha256 = "073h03bmpfdy15qh37lvppayld2747i4acpyk0pm5nf2raiak0zm";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile \
|
|
--replace "gcc" "$CC"
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp ./dumptorrent $out/bin
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Dump .torrent file information";
|
|
homepage = "https://sourceforge.net/projects/dumptorrent/";
|
|
license = licenses.gpl2Only;
|
|
maintainers = [ maintainers.zohl ];
|
|
platforms = platforms.all;
|
|
mainProgram = "dumptorrent";
|
|
};
|
|
}
|