mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-08 14:53:20 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
38 lines
960 B
Nix
38 lines
960 B
Nix
{ lib, 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 " ""
|
|
'';
|
|
|
|
nativeBuildInputs = [ autoconf automake ];
|
|
buildInputs = [ perl libtool ];
|
|
|
|
makeFlags = [ "prefix=$(out)" "tgz" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://qqwing.com";
|
|
description = "Sudoku generating and solving software";
|
|
mainProgram = "qqwing";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|