mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
66 lines
1.6 KiB
Nix
66 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitea,
|
|
makeDesktopItem,
|
|
copyDesktopItems,
|
|
makeWrapper,
|
|
renpy,
|
|
}:
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "katawa-shoujo-re-engineered";
|
|
version = "1.4.7";
|
|
|
|
src = fetchFromGitea {
|
|
# GitHub mirror at fleetingheart/ksre
|
|
domain = "codeberg.org";
|
|
owner = "fhs";
|
|
repo = "katawa-shoujo-re-engineered";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-E+2G47vWA7o4bFWttoMDfPjAG32K8FDv+OluMjzPDQw=";
|
|
};
|
|
|
|
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 = "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 rapiteanu ];
|
|
platforms = renpy.meta.platforms;
|
|
};
|
|
})
|