Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
945 B
Nix
51 lines
945 B
Nix
{
|
|
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 = "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;
|
|
};
|
|
})
|