1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00
nixpkgs/pkgs/games/kabeljau/default.nix
2024-09-28 00:56:23 +02:00

39 lines
1.1 KiB
Nix

{ stdenvNoCC, lib, fetchFromGitea, just, imagemagick, makeWrapper, bash, dialog }:
stdenvNoCC.mkDerivation rec {
pname = "kabeljau";
version = "2.1.0";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "annaaurora";
repo = "kabeljau";
rev = "v${version}";
hash = "sha256-yZHDnzNTdDXHR+Pi3NODqw4npzuthHgOJYnTmIvGyUE=";
};
# Inkscape is needed in a just recipe where it is used to export the SVG icon to several different sized PNGs.
nativeBuildInputs = [ just imagemagick makeWrapper ];
postPatch = ''
patchShebangs --host ${pname}
'';
installPhase = ''
runHook preInstall
just --set bin-path $out/bin --set share-path $out/share linux-install
wrapProgram $out/bin/${pname} --suffix PATH : ${
lib.makeBinPath [ dialog ]
}
runHook postInstall
'';
meta = with lib; {
description = "Survive as a stray cat in an ncurses game";
mainProgram = "kabeljau";
homepage = "https://codeberg.org/annaaurora/kabeljau";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ annaaurora ];
};
}