Skip to content

Commit

Permalink
nbsdgames: init at 5-unstable-2023-03-13 (#340530)
Browse files Browse the repository at this point in the history
  • Loading branch information
jopejoe1 authored Nov 13, 2024
2 parents 97dfe7e + deff7c8 commit 59787cd
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions pkgs/by-name/nb/nbsdgames/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
lib,
stdenv,
fetchFromGitHub,
installShellFiles,
pkg-config,
ncurses,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "nbsdgames";
version = "5-unstable-2023-03-13";

src = fetchFromGitHub {
owner = "abakh";
repo = "nbsdgames";
rev = "b7530749f7d7cc1aba9dcf202543ed6f638592f8";
hash = "sha256-/GK2FVV/JKh+bU/FSnY6Hr3PWxSr5CW8XerfGF+FPls=";
};

nativeBuildInputs = [
pkg-config
installShellFiles
];

buildInputs = [ ncurses ];

installFlags = [
"DESTDIR=$(out)"
"PREFIX="
"GAMES_DIR=bin"
];

preInstall = ''
mkdir -p $out/bin
'';

postInstall = ''
installManPage man/*
'';

meta = {
description = "A package of 18 text-based modern games";
homepage = "https://github.com/abakh/nbsdgames";
license = lib.licenses.cc0;
maintainers = with lib.maintainers; [ sarcasticadmin ];
mainProgram = "nbsdgames";
platforms = lib.platforms.all;
};
})

0 comments on commit 59787cd

Please sign in to comment.