lol
1{ lib, stdenv, fetchFromGitHub, perl, autoconf, automake, libtool }:
2
3stdenv.mkDerivation rec {
4 pname = "qqwing";
5 version = "1.3.4";
6
7 src = fetchFromGitHub {
8 owner = "stephenostermiller";
9 repo = "qqwing";
10 rev = "v${version}";
11 sha256 = "1qq0vi4ch4y3a5fb1ncr0yzkj3mbvdiwa3d51qpabq94sh0cz09i";
12 };
13
14 postPatch = ''
15 for file in "src-first-comment.pl" "src_neaten.pl"; do
16 substituteInPlace "build/$file" \
17 --replace "#!/usr/bin/perl" "#!${perl}/bin/perl"
18 done
19
20 substituteInPlace "build/cpp_install.sh" \
21 --replace "sudo " ""
22 '';
23
24 nativeBuildInputs = [ autoconf automake ];
25 buildInputs = [ perl libtool ];
26
27 makeFlags = [ "prefix=$(out)" "tgz" ];
28
29 meta = with lib; {
30 homepage = "https://qqwing.com";
31 description = "Sudoku generating and solving software";
32 license = licenses.gpl2;
33 platforms = platforms.unix;
34 maintainers = with maintainers; [ ];
35 };
36}