nixpkgs/pkgs/games/freesweep/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.0 KiB
Nix
Raw Normal View History

2022-10-14 08:56:16 +00:00
{ fetchFromGitHub, fetchpatch, ncurses, lib, stdenv
, updateAutotoolsGnuConfigScriptsHook, installShellFiles }:
stdenv.mkDerivation rec {
pname = "freesweep";
2022-06-29 13:20:35 +00:00
version = "1.0.2";
src = fetchFromGitHub {
owner = "rwestlund";
repo = "freesweep";
rev = "v${version}";
2022-06-29 13:20:35 +00:00
hash = "sha256-iuu81yHbNrjdPsimBrPK58PJ0d8i3ySM7rFUG/d8NJM";
};
2022-10-14 08:56:16 +00:00
nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook installShellFiles ];
buildInputs = [ ncurses ];
2022-10-14 08:56:16 +00:00
configureFlags = [ "--with-prefsdir=$out/share" ];
2022-06-29 13:35:07 +00:00
enableParallelBuilding = true;
installPhase = ''
runHook preInstall
install -D -m 0555 freesweep $out/bin/freesweep
install -D -m 0444 sweeprc $out/share/sweeprc
2022-10-14 08:56:16 +00:00
installManPage freesweep.6
runHook postInstall
'';
meta = with lib; {
description = "A console minesweeper-style game written in C for Unix-like systems";
homepage = "https://github.com/rwestlund/freesweep";
license = licenses.gpl2;
maintainers = with maintainers; [ kierdavis ];
platforms = platforms.unix;
};
}