depot/pkgs/games/kabeljau/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

38 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 ];
};
}