nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 41 lines 1.1 kB view raw
1{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, gettext, ncurses }: 2 3stdenv.mkDerivation rec { 4 pname = "nudoku"; 5 version = "2.1.0"; 6 7 src = fetchFromGitHub { 8 owner = "jubalh"; 9 repo = pname; 10 rev = version; 11 sha256 = "12v00z3p0ymi8f3w4b4bgl4c76irawn3kmd147r0ap6s9ssx2q6m"; 12 }; 13 14 patches = [ 15 # Pull upstream fix for ncurses-6.3 16 (fetchpatch { 17 name = "ncurses-6.3.patch"; 18 url = "https://github.com/jubalh/nudoku/commit/93899a0fd72e04b9f257e5f54af53466106b5959.patch"; 19 sha256 = "1h3za0dnx8fk3vshql5mhcici8aw8j0vr7ra81p3r1rii4c479lm"; 20 }) 21 ]; 22 23 # Allow gettext 0.20 24 postPatch = '' 25 substituteInPlace configure.ac --replace 0.19 0.20 26 ''; 27 28 nativeBuildInputs = [ autoreconfHook pkg-config gettext ]; 29 buildInputs = [ ncurses ]; 30 31 configureFlags = lib.optional stdenv.hostPlatform.isMusl "--disable-nls"; 32 33 meta = with lib; { 34 description = "An ncurses based sudoku game"; 35 homepage = "http://jubalh.github.io/nudoku/"; 36 license = licenses.gpl3; 37 platforms = platforms.all; 38 maintainers = with maintainers; [ dtzWill ]; 39 }; 40} 41