nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5}:
6
7stdenv.mkDerivation (finalAttrs: {
8 pname = "rutorrent";
9 version = "5.2.10";
10
11 src = fetchFromGitHub {
12 owner = "Novik";
13 repo = "ruTorrent";
14 tag = "v${finalAttrs.version}";
15 hash = "sha256-g1CjwK0GLAdRLWbQeyF8H+OFaL8WgibGrQti9kHz2iM=";
16 };
17
18 installPhase = ''
19 runHook preInstall
20 mkdir -p "$out"
21 cp -r . "$out"
22 runHook postInstall
23 '';
24
25 meta = {
26 changelog = "https://github.com/Novik/ruTorrent/releases/tag/v${finalAttrs.version}";
27 description = "Yet another web front-end for rTorrent";
28 homepage = "https://github.com/Novik/ruTorrent";
29 license = lib.licenses.gpl3Plus;
30 platforms = lib.platforms.unix;
31 };
32})