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

28 lines
730 B
Nix
Raw Normal View History

2013-08-12 08:14:42 -04:00
{stdenv, fetchurl, fltk13, ghostscript}:
stdenv.mkDerivation rec {
name = "flpsed-${version}";
version = "0.7.3";
2013-08-12 08:14:42 -04:00
src = fetchurl {
url = "http://www.flpsed.org/${name}.tar.gz";
2016-01-03 15:29:16 -05:00
sha256 = "0vngqxanykicabhfdznisv82k5ypkxwg0s93ms9ribvhpm8vf2xp";
2013-08-12 08:14:42 -04:00
};
buildInputs = [ fltk13 ];
2013-08-12 08:14:42 -04:00
postPatch = ''
# replace the execvp call to ghostscript
sed -e '/exec_gs/ {n; s|"gs"|"${stdenv.lib.getBin ghostscript}/bin/gs"|}' \
-i src/GsWidget.cxx
'';
meta = with stdenv.lib; {
description = "WYSIWYG PostScript annotator";
2013-08-12 08:14:42 -04:00
homepage = "http://http://flpsed.org/flpsed.html";
license = licenses.gpl3;
platforms = platforms.mesaPlatforms;
maintainers = with maintainers; [ fuuzetsu ];
2013-08-12 08:14:42 -04:00
};
}