summary refs log blame commit diff
path: root/pkgs/tools/misc/dumptorrent/default.nix
blob: 12232c414fd355c36b29a273776007773016d67b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                          

                         
                          
                    
 




                                                                             




                                  




                               
                      
                                                     
                                                                 




                                         
{ 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;
    };
}