From 51803d6dbcbef6e2f9b32a3003544ec0dfb6955c Mon Sep 17 00:00:00 2001 From: Zitrone Date: Sun, 16 Jun 2024 21:51:47 +0200 Subject: [PATCH] hentai-at-home: add meta.platforms, fix meta.description & refactor --- pkgs/by-name/he/hentai-at-home/package.nix | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/he/hentai-at-home/package.nix b/pkgs/by-name/he/hentai-at-home/package.nix index d5efd85b5172..29809e10ab64 100644 --- a/pkgs/by-name/he/hentai-at-home/package.nix +++ b/pkgs/by-name/he/hentai-at-home/package.nix @@ -1,19 +1,19 @@ { - buildPackages, - fetchzip, - javaOpts ? "-XX:+UseZGC", - jdk, - jre_headless, lib, - makeWrapper, stdenvNoCC, + fetchzip, + jdk, + makeWrapper, + buildPackages, + jre_headless, + javaOpts ? "-XX:+UseZGC", }: -stdenvNoCC.mkDerivation rec { +stdenvNoCC.mkDerivation (finalAttrs: { pname = "hentai-at-home"; version = "1.6.3"; src = fetchzip { - url = "https://repo.e-hentai.org/hath/HentaiAtHome_${version}_src.zip"; + url = "https://repo.e-hentai.org/hath/HentaiAtHome_${finalAttrs.version}_src.zip"; hash = "sha512-kBB5mn9MwpkZ0z+Fl5ABs4YWBkXkMRcADYSAPkeifyhbYQQPOnijXKYZCkzE4UB3uQ1j6Kj6WnpO/4jquYEiOQ=="; stripRoot = false; }; @@ -52,9 +52,10 @@ stdenvNoCC.mkDerivation rec { meta = with lib; { homepage = "https://ehwiki.org/wiki/Hentai@Home"; - description = "Hentai@Home is an open-source P2P gallery distribution system which reduces the load on the E-Hentai Galleries"; + description = "Open-source P2P gallery distribution system which reduces the load on the E-Hentai Galleries"; license = licenses.gpl3; maintainers = with maintainers; [ terrorjack ]; mainProgram = "HentaiAtHome"; + platforms = jdk.meta.platforms; }; -} +})