3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/kabeljau/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
895 B
Nix
Raw Normal View History

{ stdenvNoCC, lib, fetchFromGitea, bash, dialog, makeWrapper }:
stdenvNoCC.mkDerivation rec {
pname = "kabeljau";
version = "1.0.1";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "papojari";
repo = "kabeljau";
rev = "v${version}";
sha256 = "sha256-LOvr5fgSUTXnYhbVmynCCjo0W098jKWQnFULtIprE3M=";
};
nativeBuildInputs = [ makeWrapper ];
postPatch = ''
patchShebangs --host ${pname}
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp ${pname}.sh $out/bin/${pname}
wrapProgram $out/bin/${pname} --suffix PATH : ${
lib.makeBinPath [ dialog ]
}
runHook postInstall
'';
meta = with lib; {
description = "Survive as a stray cat in an ncurses game";
homepage = "https://codeberg.org/papojari/kabeljau";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ papojari ];
};
}