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