1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 03:25:02 +00:00
nixpkgs/pkgs/tools/misc/dumptorrent/default.nix
zowoq 31f5dd3f36 treewide: editorconfig fixes
- remove trailing whitespace
- use spaces for indentation
2021-01-20 09:11:11 +10:00

30 lines
719 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";
};
patchPhase = ''
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.gpl2;
maintainers = [ maintainers.zohl ];
platforms = platforms.all;
};
}