mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
41 lines
917 B
Nix
41 lines
917 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
fltk_1_3,
|
|
ghostscript,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "flpsed";
|
|
version = "0.7.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.flpsed.org/flpsed-${finalAttrs.version}.tar.gz";
|
|
sha256 = "0vngqxanykicabhfdznisv82k5ypkxwg0s93ms9ribvhpm8vf2xp";
|
|
};
|
|
|
|
buildInputs = [ fltk_1_3 ];
|
|
|
|
postPatch = ''
|
|
# replace the execvp call to ghostscript
|
|
sed -e '/exec_gs/ {n; s|"gs"|"${lib.getBin ghostscript}/bin/gs"|}' \
|
|
-i src/GsWidget.cxx
|
|
'';
|
|
|
|
configureFlags = [
|
|
"ac_cv_func_malloc_0_nonnull=yes"
|
|
"ac_cv_func_realloc_0_nonnull=yes"
|
|
"FLTKCONFIG=${lib.getExe' (lib.getDev fltk_1_3) "fltk-config"}"
|
|
];
|
|
|
|
meta = {
|
|
description = "WYSIWYG PostScript annotator";
|
|
homepage = "https://flpsed.org/flpsed.html";
|
|
license = lib.licenses.gpl3;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ ];
|
|
mainProgram = "flpsed";
|
|
};
|
|
})
|