3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/editors/qxw/default.nix
2020-03-31 11:36:16 -05:00

32 lines
832 B
Nix

{ stdenv, fetchurl, pkg-config, gtk2, pcre }:
let version = "20190909"; in stdenv.mkDerivation {
inherit version;
pname = "qxw";
src = fetchurl {
url = "https://www.quinapalus.com/qxw-${version}.tar.gz";
sha256 = "1w6f2c70lbdbi2dvh3rm463ai20fhfnnxf205kyyl46gz141kz48";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk2 pcre ];
makeFlags = [ "DESTDIR=$(out)" ];
patchPhase = ''
sed -i 's/ `dpkg-buildflags[^`]*`//g;
/mkdir -p/d;
s/cp -a/install -D/;
s,/usr/games,/bin,' Makefile
'';
meta = with stdenv.lib; {
description = "A program to help create and publish crosswords";
homepage = https://www.quinapalus.com/qxw.html;
license = licenses.gpl2;
maintainers = [ maintainers.tckmn ];
platforms = platforms.linux;
};
}