Files
nixpkgs/pkgs/by-name/ka/kabeljau/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

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