File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
pkgs/by-name/nb/nbsdgames Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 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+ } )
You can’t perform that action at this time.
0 commit comments