nixpkgs/pkgs/applications/editors/qxw/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
803 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config, gtk2, pcre }:
2020-03-09 19:28:35 +00:00
2020-09-18 22:58:38 +00:00
stdenv.mkDerivation rec {
2020-03-09 19:28:35 +00:00
pname = "qxw";
2020-09-18 22:58:38 +00: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 22:58:38 +00: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 lib; {
2020-03-09 19:28:35 +00:00
description = "A program to help create and publish crosswords";
2020-09-18 22:58:38 +00: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 22:58:38 +00:00
platforms = platforms.linux;
2020-03-09 19:28:35 +00:00
};
}