summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/editors/qxw
diff options
context:
space:
mode:
authorAndy Tockman <andy@tck.mn>2020-03-09 15:28:35 -0400
committerAndy Tockman <andy@tck.mn>2020-03-31 11:36:16 -0500
commit262e5b254b9d3525be74efdf21a98bcc4ba76cdc (patch)
tree2a8917264ec3f5283a16486b5d82854083344d1f /pkgs/applications/editors/qxw
parent75aec2aae373445d7e2020cf8e0ffc3de9250270 (diff)
qxw: init at 20190909
Diffstat (limited to 'pkgs/applications/editors/qxw')
-rw-r--r--pkgs/applications/editors/qxw/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/editors/qxw/default.nix b/pkgs/applications/editors/qxw/default.nix
new file mode 100644
index 000000000000..7c5b6408ceae
--- /dev/null
+++ b/pkgs/applications/editors/qxw/default.nix
@@ -0,0 +1,31 @@
+{ 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;
+ };
+}