nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 40 lines 897 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 fltk_1_3, 6 ghostscript, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "flpsed"; 11 version = "0.7.3"; 12 13 src = fetchurl { 14 url = "http://www.flpsed.org/${pname}-${version}.tar.gz"; 15 sha256 = "0vngqxanykicabhfdznisv82k5ypkxwg0s93ms9ribvhpm8vf2xp"; 16 }; 17 18 buildInputs = [ fltk_1_3 ]; 19 20 postPatch = '' 21 # replace the execvp call to ghostscript 22 sed -e '/exec_gs/ {n; s|"gs"|"${lib.getBin ghostscript}/bin/gs"|}' \ 23 -i src/GsWidget.cxx 24 ''; 25 26 configureFlags = [ 27 "ac_cv_func_malloc_0_nonnull=yes" 28 "ac_cv_func_realloc_0_nonnull=yes" 29 "FLTKCONFIG=${lib.getExe' (lib.getDev fltk_1_3) "fltk-config"}" 30 ]; 31 32 meta = { 33 description = "WYSIWYG PostScript annotator"; 34 homepage = "https://flpsed.org/flpsed.html"; 35 license = lib.licenses.gpl3; 36 platforms = lib.platforms.linux; 37 maintainers = [ ]; 38 mainProgram = "flpsed"; 39 }; 40}