mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, gettext, ncurses }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nudoku";
|
|
version = "2.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jubalh";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "12v00z3p0ymi8f3w4b4bgl4c76irawn3kmd147r0ap6s9ssx2q6m";
|
|
};
|
|
|
|
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 gettext ];
|
|
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;
|
|
platforms = platforms.all;
|
|
maintainers = [ ];
|
|
};
|
|
}
|
|
|