2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, fltk13, ghostscript }:
|
2013-08-12 14:14:42 +02:00
|
|
|
|
2017-02-23 15:12:56 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "flpsed";
|
2017-02-23 15:12:56 +01:00
|
|
|
version = "0.7.3";
|
2013-08-12 14:14:42 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "http://www.flpsed.org/${pname}-${version}.tar.gz";
|
2016-01-03 21:29:16 +01:00
|
|
|
sha256 = "0vngqxanykicabhfdznisv82k5ypkxwg0s93ms9ribvhpm8vf2xp";
|
2013-08-12 14:14:42 +02:00
|
|
|
};
|
|
|
|
|
2017-02-23 15:12:56 +01:00
|
|
|
buildInputs = [ fltk13 ];
|
2013-08-12 14:14:42 +02:00
|
|
|
|
2017-02-23 15:12:56 +01:00
|
|
|
postPatch = ''
|
|
|
|
# replace the execvp call to ghostscript
|
2021-01-15 14:21:58 +01:00
|
|
|
sed -e '/exec_gs/ {n; s|"gs"|"${lib.getBin ghostscript}/bin/gs"|}' \
|
2017-02-23 15:12:56 +01:00
|
|
|
-i src/GsWidget.cxx
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "WYSIWYG PostScript annotator";
|
2020-03-28 00:05:50 +01:00
|
|
|
homepage = "https://flpsed.org/flpsed.html";
|
2017-02-23 15:12:56 +01:00
|
|
|
license = licenses.gpl3;
|
2018-09-22 23:13:43 +02:00
|
|
|
platforms = platforms.linux;
|
2019-12-05 08:29:48 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2013-08-12 14:14:42 +02:00
|
|
|
};
|
|
|
|
}
|