rutorrent: modernize, add meta.changelog (#371869)

This commit is contained in:
Peder Bergebakken Sundt
2025-01-08 18:25:31 +01:00
committed by GitHub
+10 -9
View File
@@ -4,28 +4,29 @@
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 = {
changelog = "https://github.com/Novik/ruTorrent/releases/tag/v${finalAttrs.version}";
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;
};
}
})