From c7ff62a95b7d007c26e79a9af373edaf007f07da Mon Sep 17 00:00:00 2001 From: Weathercold Date: Sun, 4 Feb 2024 18:20:55 -0500 Subject: [PATCH] nudoku: 2.1.0 -> 5.0.0 --- pkgs/by-name/nu/nudoku/package.nix | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/pkgs/by-name/nu/nudoku/package.nix b/pkgs/by-name/nu/nudoku/package.nix index 76d639d07c1a..599f09a1d42c 100644 --- a/pkgs/by-name/nu/nudoku/package.nix +++ b/pkgs/by-name/nu/nudoku/package.nix @@ -2,7 +2,6 @@ lib, stdenv, fetchFromGitHub, - fetchpatch, autoreconfHook, pkg-config, gettext, @@ -11,29 +10,15 @@ stdenv.mkDerivation rec { pname = "nudoku"; - version = "2.1.0"; + version = "5.0.0"; src = fetchFromGitHub { owner = "jubalh"; repo = pname; rev = version; - sha256 = "12v00z3p0ymi8f3w4b4bgl4c76irawn3kmd147r0ap6s9ssx2q6m"; + hash = "sha256-aOtP23kNd15DdV6on7o80QnEf0CiUBubHfFE8M1mhg0="; }; - patches = [ - # Pull upstream fix for ncurses-6.3 - (fetchpatch { - name = "ncurses-6.3.patch"; - url = "https://github.com/jubalh/nudoku/commit/93899a0fd72e04b9f257e5f54af53466106b5959.patch"; - sha256 = "1h3za0dnx8fk3vshql5mhcici8aw8j0vr7ra81p3r1rii4c479lm"; - }) - ]; - - # Allow gettext 0.20 - postPatch = '' - substituteInPlace configure.ac --replace 0.19 0.20 - ''; - nativeBuildInputs = [ autoreconfHook pkg-config @@ -41,14 +26,13 @@ stdenv.mkDerivation rec { ]; buildInputs = [ ncurses ]; - configureFlags = lib.optional stdenv.hostPlatform.isMusl "--disable-nls"; - meta = with lib; { description = "Ncurses based sudoku game"; mainProgram = "nudoku"; - homepage = "http://jubalh.github.io/nudoku/"; - license = licenses.gpl3; + homepage = "https://jubalh.github.io/nudoku"; + license = licenses.gpl3Only; + sourceProvenance = with sourceTypes; [ fromSource ]; platforms = platforms.all; - maintainers = [ ]; + maintainers = with maintainers; [ weathercold ]; }; }