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

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

28 lines
702 B
Nix
Raw Normal View History

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