30 lines
567 B
Nix
30 lines
567 B
Nix
{
|
|
pkgs ? import <nixpkgs> { },
|
|
lib,
|
|
}:
|
|
|
|
with pkgs;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rutorrent";
|
|
version = "4.3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Novik";
|
|
repo = "ruTorrent";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-pwmMH3ZwwAzuyVCJAPfTcSdvUP3HPRVpUSEROMD7XfE=";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/
|
|
cp -r . $out/
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Yet another web front-end for rTorrent";
|
|
homepage = "https://github.com/Novik/ruTorrent";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|