Files
nixpkgs/pkgs/by-name/fl/flpsed/package.nix
Lisanna Dettwyler 98eabca72f flpsed: use https for sources
Signed-off-by: Lisanna Dettwyler <lisanna.dettwyler@gmail.com>
2026-03-21 12:30:11 -04:00

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";
};
})