nixpkgs/pkgs/games/qqwing/default.nix

36 lines
906 B
Nix
Raw Normal View History

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