nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 perl,
6 autoconf,
7 automake,
8 libtool,
9}:
10
11stdenv.mkDerivation rec {
12 pname = "qqwing";
13 version = "1.3.4";
14
15 src = fetchFromGitHub {
16 owner = "stephenostermiller";
17 repo = "qqwing";
18 tag = "v${version}";
19 hash = "sha256-MYHPANQk4aUuDqUNxWPbqw45vweZ2bBcUcMTyEjcAOM=";
20 };
21
22 strictDeps = true;
23
24 nativeBuildInputs = [
25 autoconf
26 automake
27 libtool
28 perl
29 ];
30
31 configureFlags = [
32 "--prefix=${placeholder "out"}"
33 ];
34
35 buildFlags = [
36 "cppcompile"
37 ];
38
39 postPatch = ''
40 patchShebangs --build build/src-first-comment.pl build/src_neaten.pl
41
42 substituteInPlace build/cpp_configure.sh \
43 --replace-fail "./configure" "./configure $configureFlags"
44 substituteInPlace build/cpp_install.sh \
45 --replace-fail "sudo " ""
46 '';
47
48 meta = {
49 homepage = "https://qqwing.com";
50 description = "Sudoku generating and solving software";
51 license = lib.licenses.gpl2Plus;
52 platforms = lib.platforms.unix;
53 maintainers = with lib.maintainers; [ nickcao ];
54 mainProgram = "qqwing";
55 };
56}