2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, perl, autoconf, automake, libtool }:
|
2015-08-12 17:15:32 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "qqwing";
|
2015-08-12 17:15:32 +02:00
|
|
|
version = "1.3.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stephenostermiller";
|
|
|
|
repo = "qqwing";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1qq0vi4ch4y3a5fb1ncr0yzkj3mbvdiwa3d51qpabq94sh0cz09i";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
for file in "src-first-comment.pl" "src_neaten.pl"; do
|
|
|
|
substituteInPlace "build/$file" \
|
|
|
|
--replace "#!/usr/bin/perl" "#!${perl}/bin/perl"
|
|
|
|
done
|
|
|
|
|
|
|
|
substituteInPlace "build/cpp_install.sh" \
|
|
|
|
--replace "sudo " ""
|
|
|
|
'';
|
|
|
|
|
2022-03-31 03:11:06 +02:00
|
|
|
nativeBuildInputs = [ autoconf automake ];
|
|
|
|
buildInputs = [ perl libtool ];
|
2015-08-12 17:15:32 +02:00
|
|
|
|
|
|
|
makeFlags = [ "prefix=$(out)" "tgz" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://qqwing.com";
|
2015-08-12 17:15:32 +02:00
|
|
|
description = "Sudoku generating and solving software";
|
|
|
|
license = licenses.gpl2;
|
2022-12-07 20:43:28 +01:00
|
|
|
platforms = platforms.unix;
|
2019-03-12 23:45:33 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2015-08-12 17:15:32 +02:00
|
|
|
};
|
|
|
|
}
|