rutorrent: modernize

Also remove accidental `;` from `runHook postInstall`
This commit is contained in:
DontEatOreo
2025-01-07 19:52:48 +02:00
parent 664f461929
commit a73ba752d2
+9 -9
View File
@@ -4,28 +4,28 @@
fetchFromGitHub,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "rutorrent";
version = "5.1.5";
src = fetchFromGitHub {
owner = "Novik";
repo = "ruTorrent";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-si/6iZMipfm18lrwjJvuL+vQco0l+HresUEv2gj1uRw=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/
cp -r . $out/
runHook postInstall;
mkdir -p "$out"
cp -r . "$out"
runHook postInstall
'';
meta = with lib; {
meta = {
description = "Yet another web front-end for rTorrent";
homepage = "https://github.com/Novik/ruTorrent";
license = licenses.gpl3Plus;
platforms = platforms.unix;
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.unix;
};
}
})