mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
38 lines
1 KiB
Nix
38 lines
1 KiB
Nix
{ fetchFromGitHub, ncurses, lib, stdenv
|
|
, updateAutotoolsGnuConfigScriptsHook, installShellFiles }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "freesweep";
|
|
version = "1.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rwestlund";
|
|
repo = "freesweep";
|
|
rev = "v${version}";
|
|
hash = "sha256-iuu81yHbNrjdPsimBrPK58PJ0d8i3ySM7rFUG/d8NJM";
|
|
};
|
|
|
|
nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook installShellFiles ];
|
|
buildInputs = [ ncurses ];
|
|
|
|
configureFlags = [ "--with-prefsdir=$out/share" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -D -m 0555 freesweep $out/bin/freesweep
|
|
install -D -m 0444 sweeprc $out/share/sweeprc
|
|
installManPage freesweep.6
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Console minesweeper-style game written in C for Unix-like systems";
|
|
mainProgram = "freesweep";
|
|
homepage = "https://github.com/rwestlund/freesweep";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ kierdavis ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|