diff --git a/pkgs/by-name/ru/rutorrent/package.nix b/pkgs/by-name/ru/rutorrent/package.nix index 774cd0bc3961..a587eebdd670 100644 --- a/pkgs/by-name/ru/rutorrent/package.nix +++ b/pkgs/by-name/ru/rutorrent/package.nix @@ -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; }; -} +})