nixpkgs/pkgs/games/qqwing/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.1 KiB
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 = "refs/tags/v${version}";
hash = "sha256-MYHPANQk4aUuDqUNxWPbqw45vweZ2bBcUcMTyEjcAOM=";
2015-08-12 15:15:32 +00:00
};
strictDeps = true;
2015-08-12 15:15:32 +00:00
nativeBuildInputs = [
autoconf
automake
libtool
perl
];
configureFlags = [
"--prefix=${placeholder "out"}"
];
2015-08-12 15:15:32 +00:00
buildFlags = [
"cppcompile"
];
2015-08-12 15:15:32 +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
meta = {
homepage = "https://qqwing.com";
2015-08-12 15:15:32 +00:00
description = "Sudoku generating and solving software";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ nickcao ];
mainProgram = "qqwing";
2015-08-12 15:15:32 +00:00
};
}