mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
29 lines
679 B
Nix
29 lines
679 B
Nix
{ pkgs, buildGoModule, fetchFromGitHub, lib, perl }:
|
|
|
|
buildGoModule rec {
|
|
pname = "XD";
|
|
version = "0.4.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "majestrate";
|
|
repo = "XD";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-k8Mm0tC7wiBmHFdCX38Rz7ccEFkdeArzGJVHTLQ7iWY=";
|
|
};
|
|
|
|
vendorHash = "sha256-ZD7PZJcY7qWHEQOk5I9IlMup0vbYYaRvVau5Go7ocno=";
|
|
|
|
nativeCheckInputs = [ perl ];
|
|
|
|
postInstall = ''
|
|
ln -s $out/bin/XD $out/bin/XD-CLI
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "i2p bittorrent client";
|
|
homepage = "https://xd-torrent.github.io";
|
|
maintainers = with maintainers; [ nixbitcoin ];
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|