1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/applications/editors/flpsed/default.nix
Patrick Hilhorst 9fc5e7e473
treewide: fix redirected urls (again)
Ran the same script as #78265.
Additionally, manually replaced `http://goodies.xfce.org`
with https.
2020-03-20 13:36:23 +01:00

28 lines
709 B
Nix

{ 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"|"${stdenv.lib.getBin ghostscript}/bin/gs"|}' \
-i src/GsWidget.cxx
'';
meta = with stdenv.lib; {
description = "WYSIWYG PostScript annotator";
homepage = https://flpsed.org/flpsed.html;
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ ];
};
}