2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, gtk2, pcre }:
|
2020-03-09 20:28:35 +01:00
|
|
|
|
2020-09-19 00:58:38 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2020-03-09 20:28:35 +01:00
|
|
|
pname = "qxw";
|
2020-09-19 00:58:38 +02:00
|
|
|
version = "20200708";
|
2020-03-09 20:28:35 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.quinapalus.com/qxw-${version}.tar.gz";
|
2020-09-19 00:58:38 +02:00
|
|
|
sha256 = "1si3ila7137c7x4mp3jv1q1mh3jp0p4khir1yz1rwy0mp3znwv7d";
|
2020-03-09 20:28:35 +01: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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-03-09 20:28:35 +01:00
|
|
|
description = "A program to help create and publish crosswords";
|
2020-09-19 00:58:38 +02:00
|
|
|
homepage = "https://www.quinapalus.com/qxw.html";
|
|
|
|
license = licenses.gpl2;
|
2020-03-09 20:28:35 +01:00
|
|
|
maintainers = [ maintainers.tckmn ];
|
2020-09-19 00:58:38 +02:00
|
|
|
platforms = platforms.linux;
|
2020-03-09 20:28:35 +01:00
|
|
|
};
|
|
|
|
}
|