diff options
author | Peder Bergebakken Sundt <pbsds@hotmail.com> | 2024-04-21 21:49:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-21 21:49:21 +0200 |
commit | 4854bac6d7efb373ab31457ca07bcb208456bff8 (patch) | |
tree | 57a524f58e9fd657a7c613be7ecd362ab2073a41 /pkgs/by-name/fi | |
parent | 04a3a2a8fe31810fb08db49068d279d86839867a (diff) | |
parent | 9ba704d1a249f3fed0d113cd6909c0320c6d4680 (diff) |
Merge pull request #305792 from pbsds/fix-find-billy-1713718154
find-billy: add maintainer annaaurora
Diffstat (limited to 'pkgs/by-name/fi')
-rw-r--r-- | pkgs/by-name/fi/find-billy/package.nix | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/pkgs/by-name/fi/find-billy/package.nix b/pkgs/by-name/fi/find-billy/package.nix new file mode 100644 index 0000000000000..89d89dd104f3a --- /dev/null +++ b/pkgs/by-name/fi/find-billy/package.nix @@ -0,0 +1,70 @@ +{ stdenv +, lib +, fetchFromGitea +, godot3-headless +, godot3-export-templates +, godot3 +, makeWrapper +, just +, inkscape +, imagemagick +}: + +stdenv.mkDerivation rec { + pname = "find-billy"; + version = "0.37.3"; + + src = fetchFromGitea { + domain = "codeberg.org"; + owner = "annaaurora"; + repo = "Find-Billy"; + rev = "v${version}"; + hash = "sha256-z1GR5W67LJb5z+u/qeFZreMK4B6PjB18coecLCYFHy8="; + }; + + strictDeps = true; + + nativeBuildInputs = [ godot3-headless makeWrapper just inkscape imagemagick ]; + + postPatch = '' + substituteInPlace export_presets.cfg --replace 'res://build/icons/usr/share/icons/hicolor' $out/share/icons/hicolor + substituteInPlace project.godot --replace 'res://build/icons/usr/share/icons/hicolor' $out/share/icons/hicolor + + substituteInPlace justfile --replace '{{build_icons_dir}}/usr' $out + ''; + + buildPhase = '' + runHook preBuild + + # Cannot create file `/homeless-shelter/.config/godot/projects/...` + export HOME=$TMPDIR + # Link the export-templates to the expected location. The `--export` option expects the templates in the home directory. + mkdir -p $HOME/.local/share/godot + ln -s ${godot3-export-templates}/share/godot/templates $HOME/.local/share/godot + + mkdir -p $out/share/find-billy + godot3-headless --export-pack 'Linux/X11' $out/share/${pname}/${pname}.pck + makeWrapper ${godot3}/bin/godot3 $out/bin/${pname} \ + --add-flags "--main-pack" \ + --add-flags "$out/share/${pname}/${pname}.pck" + + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + + just build-icons + install -D ${pname}.desktop -t $out/share/applications + + runHook postInstall + ''; + + meta = with lib; { + description = "A 2 dimensional Pixel Art Jump & Run"; + homepage = "https://codeberg.org/annaaurora/Find-Billy"; + license = licenses.gpl3Plus; + platforms = [ "x86_64-linux" ]; + maintainers = [ maintainers.annaaurora ]; + }; +} |