12 stdenv.mkDerivation rec {
17 url = "mirror://sourceforge/posterazor/${version}/PosteRazor-${version}-Source.zip";
18 hash = "sha256-BbujA2ASyqQelb3iFAwgeJC0OhzXqufIa1UD+tFsF7c=";
21 hardeningDisable = [ "format" ];
23 nativeBuildInputs = [ cmake pkg-config unzip ];
24 buildInputs = [ libXpm fltk13 freeimage ];
27 unzip $src -d posterazor
31 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=667328
33 sed "s/\(#define CASESENSITIVESTRCMP strcasecmp\)/#include <unistd.h>\n\1/" -i FlPosteRazorDialog.cpp
38 cp PosteRazor $out/bin
42 homepage = "http://posterazor.sourceforge.net/";
43 description = "Cuts a raster image into pieces which can afterwards be printed out and assembled to a poster";
44 license = licenses.gpl3Plus;
45 platforms = platforms.linux;
46 maintainers = [ maintainers.madjar ];
47 mainProgram = "PosteRazor";