diff --git a/packages/rutorrent.nix b/packages/rutorrent.nix new file mode 100644 index 0000000..791c2f1 --- /dev/null +++ b/packages/rutorrent.nix @@ -0,0 +1,27 @@ +{ pkgs ? import { }, 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; + }; +}