2023-09-13 13:47:27 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, ncurses
|
|
|
|
, pkg-config
|
|
|
|
, texinfo
|
|
|
|
}:
|
2017-05-21 17:30:56 +00:00
|
|
|
|
2023-09-13 13:47:27 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "robotfindskitten";
|
2020-04-07 11:26:43 +00:00
|
|
|
version = "2.8284271.702";
|
2017-05-21 17:30:56 +00:00
|
|
|
|
2023-09-13 13:47:27 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "robotfindskitten";
|
|
|
|
repo = "robotfindskitten";
|
|
|
|
rev = finalAttrs.version;
|
|
|
|
hash = "sha256-z6//Yfp3BtJAtUdY05m1eKVrTdH19MvK7LZOwX5S1CM=";
|
2017-05-21 17:30:56 +00:00
|
|
|
};
|
|
|
|
|
2023-09-13 13:47:27 +00:00
|
|
|
outputs = [ "out" "man" "info" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
texinfo
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
];
|
2017-05-21 17:30:56 +00:00
|
|
|
|
2023-09-13 13:47:27 +00:00
|
|
|
makeFlags = [
|
|
|
|
"execgamesdir=$(out)/bin"
|
|
|
|
];
|
2017-10-15 23:07:27 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2023-09-13 13:47:27 +00:00
|
|
|
install -Dm644 nki/vanilla.nki -t $out/share/games/robotfindskitten/
|
2017-10-15 23:07:27 +00:00
|
|
|
'';
|
|
|
|
|
2017-05-21 17:30:56 +00:00
|
|
|
meta = {
|
|
|
|
description = "Yet another zen simulation; A simple find-the-kitten game";
|
2020-04-07 11:26:43 +00:00
|
|
|
homepage = "http://robotfindskitten.org/";
|
2023-09-13 13:47:27 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
mainProgram = "robotfindskitten";
|
|
|
|
maintainers = [ lib.maintainers.AndersonTorres ];
|
|
|
|
platforms = lib.platforms.unix;
|
2017-05-21 17:30:56 +00:00
|
|
|
};
|
2023-09-13 13:47:27 +00:00
|
|
|
})
|