Skip to content

Commit 59787cd

Browse files
authored
nbsdgames: init at 5-unstable-2023-03-13 (#340530)
2 parents 97dfe7e + deff7c8 commit 59787cd

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchFromGitHub,
5+
installShellFiles,
6+
pkg-config,
7+
ncurses,
8+
}:
9+
10+
stdenv.mkDerivation (finalAttrs: {
11+
pname = "nbsdgames";
12+
version = "5-unstable-2023-03-13";
13+
14+
src = fetchFromGitHub {
15+
owner = "abakh";
16+
repo = "nbsdgames";
17+
rev = "b7530749f7d7cc1aba9dcf202543ed6f638592f8";
18+
hash = "sha256-/GK2FVV/JKh+bU/FSnY6Hr3PWxSr5CW8XerfGF+FPls=";
19+
};
20+
21+
nativeBuildInputs = [
22+
pkg-config
23+
installShellFiles
24+
];
25+
26+
buildInputs = [ ncurses ];
27+
28+
installFlags = [
29+
"DESTDIR=$(out)"
30+
"PREFIX="
31+
"GAMES_DIR=bin"
32+
];
33+
34+
preInstall = ''
35+
mkdir -p $out/bin
36+
'';
37+
38+
postInstall = ''
39+
installManPage man/*
40+
'';
41+
42+
meta = {
43+
description = "A package of 18 text-based modern games";
44+
homepage = "https://github.com/abakh/nbsdgames";
45+
license = lib.licenses.cc0;
46+
maintainers = with lib.maintainers; [ sarcasticadmin ];
47+
mainProgram = "nbsdgames";
48+
platforms = lib.platforms.all;
49+
};
50+
})

0 commit comments

Comments
 (0)