Unverified Commit 45e587dc authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

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

parents 1bbae45d 2372fb0c
Loading
Loading
Loading
Loading
+10 −9
Original line number Diff line number Diff line
@@ -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;
  };
}
})