summaryrefslogtreecommitdiffstats
path: root/pkgs/applications
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2017-02-23 15:12:56 +0100
committerProfpatsch <mail@profpatsch.de>2017-02-23 18:52:30 +0100
commit8e54fced988e4227c34bfc21417ac41eda4448c6 (patch)
treeae7281fab2314a4278f43d0ae58d3459d1cfc320 /pkgs/applications
parentb707552b5ba853f2aefebb9c6ea8615933cdda44 (diff)
flpsed: ghostscript patch, fixes, new url
gs was called at runtime, fix the execvp call. The url changed to its own domain. A little face-lift for the package code.
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/editors/flpsed/default.nix23
1 files changed, 15 insertions, 8 deletions
diff --git a/pkgs/applications/editors/flpsed/default.nix b/pkgs/applications/editors/flpsed/default.nix
index eb1daa3ac3b2..9334b7820faa 100644
--- a/pkgs/applications/editors/flpsed/default.nix
+++ b/pkgs/applications/editors/flpsed/default.nix
@@ -1,20 +1,27 @@
{stdenv, fetchurl, fltk13, ghostscript}:
-stdenv.mkDerivation {
- name = "flpsed-0.7.3";
+stdenv.mkDerivation rec {
+ name = "flpsed-${version}";
+ version = "0.7.3";
src = fetchurl {
- url = "http://www.ecademix.com/JohannesHofmann/flpsed-0.7.3.tar.gz";
+ url = "http://www.flpsed.org/${name}.tar.gz";
sha256 = "0vngqxanykicabhfdznisv82k5ypkxwg0s93ms9ribvhpm8vf2xp";
};
- buildInputs = [ fltk13 ghostscript ];
+ buildInputs = [ fltk13 ];
- meta = {
+ 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";
homepage = "http://http://flpsed.org/flpsed.html";
- license = stdenv.lib.licenses.gpl3;
- platforms = stdenv.lib.platforms.mesaPlatforms;
- maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
+ license = licenses.gpl3;
+ platforms = platforms.mesaPlatforms;
+ maintainers = with maintainers; [ fuuzetsu ];
};
}