about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/flpsed/default.nix
blob: bffa50643899d6900f8a39c88bd131d9812a5fd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, stdenv, fetchurl, fltk13, ghostscript }:

stdenv.mkDerivation rec {
  pname = "flpsed";
  version = "0.7.3";

  src = fetchurl {
    url = "http://www.flpsed.org/${pname}-${version}.tar.gz";
    sha256 = "0vngqxanykicabhfdznisv82k5ypkxwg0s93ms9ribvhpm8vf2xp";
  };

  buildInputs = [ fltk13 ];

  postPatch = ''
    # replace the execvp call to ghostscript
    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; [ ];
  };
}