forked from mirrors/nixpkgs
cd78d0cc3f
Doesn't build on darwin and probably other platforms. GsWidget.H:26:3: error: 'Atom' does not name a type; did you mean 'tm'? Atom atoms[5]; ^~~~ tm GsWidget.cxx: In member function 'void GsWidget::setProps()': GsWidget.cxx:47:2: error: 'atoms' was not declared in this scope atoms[0] = XInternAtom(fl_display,"GHOSTVIEW" , false); ^~~~~ /cc ZHF #45961
28 lines
722 B
Nix
28 lines
722 B
Nix
{ stdenv, fetchurl, fltk13, ghostscript, xlibs }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "flpsed-${version}";
|
|
version = "0.7.3";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.flpsed.org/${name}.tar.gz";
|
|
sha256 = "0vngqxanykicabhfdznisv82k5ypkxwg0s93ms9ribvhpm8vf2xp";
|
|
};
|
|
|
|
buildInputs = [ fltk13 ];
|
|
|
|
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://flpsed.org/flpsed.html;
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ fuuzetsu ];
|
|
};
|
|
}
|