mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 11:50:06 +00:00
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
fetchpatch2,
|
|
autoreconfHook,
|
|
pkg-config,
|
|
gettext,
|
|
ncurses,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "nudoku";
|
|
version = "5.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jubalh";
|
|
repo = "nudoku";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-aOtP23kNd15DdV6on7o80QnEf0CiUBubHfFE8M1mhg0=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch2 {
|
|
url = "https://github.com/jubalh/nudoku/commit/c5fd9156d2d1f2c95a5d87b07adeaee90a7f911d.patch?full_index=1";
|
|
hash = "sha256-nvLKAUCDY3fQWjybVX8DaMBdk5CaegRRb/ENTI9kJ9k=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
gettext
|
|
];
|
|
buildInputs = [ ncurses ];
|
|
|
|
meta = {
|
|
description = "Ncurses based sudoku game";
|
|
mainProgram = "nudoku";
|
|
homepage = "https://jubalh.github.io/nudoku";
|
|
license = lib.licenses.gpl3Only;
|
|
sourceProvenance = with lib.sourceTypes; [ fromSource ];
|
|
platforms = lib.platforms.all;
|
|
maintainers = with lib.maintainers; [ weathercold ];
|
|
};
|
|
})
|