diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2024-04-19 07:04:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-19 07:04:04 +0200 |
commit | 32bf14c3a4bc5fdf36b9252e06fc66c1855a56bd (patch) | |
tree | 381195ed91c19b29c67c49b69c6ade9bf90d27ef /pkgs/by-name | |
parent | 77eab23d82cb80e81bb5e8c73b2f721c286909f6 (diff) | |
parent | 3cbd3952c92fdb0d1963178125c18fbd79aa14ab (diff) |
Merge pull request #297572 from quantenzitrone/katawa-shoujo-re-engineered
katawa-shoujo-re-engineered: init at 1.4.4
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/ka/katawa-shoujo-re-engineered/package.nix | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/pkgs/by-name/ka/katawa-shoujo-re-engineered/package.nix b/pkgs/by-name/ka/katawa-shoujo-re-engineered/package.nix new file mode 100644 index 0000000000000..34ec710a9b455 --- /dev/null +++ b/pkgs/by-name/ka/katawa-shoujo-re-engineered/package.nix @@ -0,0 +1,65 @@ +{ + lib, + stdenvNoCC, + fetchFromGitea, + makeDesktopItem, + copyDesktopItems, + makeWrapper, + renpy, +}: +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "katawa-shoujo-re-engineered"; + version = "1.4.4"; + + src = fetchFromGitea { + # GitHub mirror at fleetingheart/ksre + domain = "codeberg.org"; + owner = "fhs"; + repo = "katawa-shoujo-re-engineered"; + rev = "v${finalAttrs.version}"; + hash = "sha256-RYJM/wGVWqIRZzHLUtUZ5mKUrUftDVaOwS1f/EpW6Tk="; + }; + + desktopItems = [ + (makeDesktopItem { + name = "katawa-shoujo-re-engineered"; + desktopName = "Katawa Shoujo: Re-Engineered"; + type = "Application"; + icon = finalAttrs.meta.mainProgram; + categories = [ "Game" ]; + exec = finalAttrs.meta.mainProgram; + }) + ]; + + nativeBuildInputs = [ + makeWrapper + copyDesktopItems + ]; + + dontBuild = true; + + installPhase = '' + runHook preInstall + + mkdir -p $out/bin + makeWrapper ${lib.getExe' renpy "renpy"} $out/bin/${finalAttrs.meta.mainProgram} \ + --add-flags ${finalAttrs.src} --add-flags run + install -D $src/web-icon.png $out/share/icons/hicolor/512x512/apps/${finalAttrs.meta.mainProgram}.png + + runHook postInstall + ''; + + meta = { + description = "A fan-made modernization of the classic visual novel Katawa Shoujo"; + homepage = "https://www.fhs.sh/projects"; + license = with lib.licenses; [ + # code + mpl20 + # assets from the original game + cc-by-nc-nd-30 + ]; + mainProgram = "katawa-shoujo-re-engineered"; + maintainers = with lib.maintainers; [ quantenzitrone ]; + platforms = renpy.meta.platforms; + }; +}) |