2024-08-25 15:05:11 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
perl,
|
|
|
|
autoconf,
|
|
|
|
automake,
|
|
|
|
libtool,
|
|
|
|
}:
|
2015-08-12 15:15:32 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "qqwing";
|
2015-08-12 15:15:32 +00:00
|
|
|
version = "1.3.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stephenostermiller";
|
|
|
|
repo = "qqwing";
|
2024-08-25 15:05:11 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-MYHPANQk4aUuDqUNxWPbqw45vweZ2bBcUcMTyEjcAOM=";
|
2015-08-12 15:15:32 +00:00
|
|
|
};
|
|
|
|
|
2024-08-25 15:05:11 +00:00
|
|
|
strictDeps = true;
|
2015-08-12 15:15:32 +00:00
|
|
|
|
2024-08-25 15:05:11 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
libtool
|
|
|
|
perl
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--prefix=${placeholder "out"}"
|
|
|
|
];
|
2015-08-12 15:15:32 +00:00
|
|
|
|
2024-08-25 15:05:11 +00:00
|
|
|
buildFlags = [
|
|
|
|
"cppcompile"
|
|
|
|
];
|
2015-08-12 15:15:32 +00:00
|
|
|
|
2024-08-25 15:05:11 +00:00
|
|
|
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 " ""
|
|
|
|
'';
|
2015-08-12 15:15:32 +00:00
|
|
|
|
2024-08-25 15:05:11 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://qqwing.com";
|
2015-08-12 15:15:32 +00:00
|
|
|
description = "Sudoku generating and solving software";
|
2024-08-25 15:05:11 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = with lib.maintainers; [ nickcao ];
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "qqwing";
|
2015-08-12 15:15:32 +00:00
|
|
|
};
|
|
|
|
}
|