depot/third_party/nixpkgs/pkgs/games/qqwing/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

35 lines
908 B
Nix

{ stdenv, fetchFromGitHub, perl, autoconf, automake, libtool }:
stdenv.mkDerivation rec {
pname = "qqwing";
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 " ""
'';
buildInputs = [ perl autoconf automake libtool ];
makeFlags = [ "prefix=$(out)" "tgz" ];
meta = with stdenv.lib; {
homepage = "https://qqwing.com";
description = "Sudoku generating and solving software";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ ];
};
}