2020-03-09 19:28:35 +00:00
|
|
|
{ stdenv, fetchurl, pkg-config, gtk2, pcre }:
|
|
|
|
|
2020-09-18 23:58:38 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2020-03-09 19:28:35 +00:00
|
|
|
pname = "qxw";
|
2020-09-18 23:58:38 +01:00
|
|
|
version = "20200708";
|
2020-03-09 19:28:35 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.quinapalus.com/qxw-${version}.tar.gz";
|
2020-09-18 23:58:38 +01:00
|
|
|
sha256 = "1si3ila7137c7x4mp3jv1q1mh3jp0p4khir1yz1rwy0mp3znwv7d";
|
2020-03-09 19:28:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2020-09-18 23:58:38 +01:00
|
|
|
homepage = "https://www.quinapalus.com/qxw.html";
|
|
|
|
license = licenses.gpl2;
|
2020-03-09 19:28:35 +00:00
|
|
|
maintainers = [ maintainers.tckmn ];
|
2020-09-18 23:58:38 +01:00
|
|
|
platforms = platforms.linux;
|
2020-03-09 19:28:35 +00:00
|
|
|
};
|
|
|
|
}
|