about summary refs log tree commit diff
path: root/pkgs/tools/misc/buildtorrent/default.nix
blob: d9fc90768a9848fcfe798c59056198fa9b103a10 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ lib, stdenv, fetchurl }:

stdenv.mkDerivation rec {
  pname = "buildtorrent";
  version = "0.8";

  src = fetchurl {
    url = "https://mathr.co.uk/blog/code/${pname}-${version}.tar.gz";
    sha256 = "sha256-6OJ2R72ziHOsVw1GwalompKwG7Z/WQidHN0IeE9wUtA=";
  };

  meta = with lib; {
    description = "A simple commandline torrent creator";
    homepage = "https://mathr.co.uk/blog/torrent.html";
    license = licenses.gpl3Plus;
    platforms = platforms.all;
    mainProgram = "buildtorrent";
  };
}