1 { lib, stdenv, fetchurl, cmake, unzip, pkg-config, libXpm, fltk13, freeimage }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/posterazor/${version}/PosteRazor-${version}-Source.zip";
9 sha256 = "1dqpdk8zl0smdg4fganp3hxb943q40619qmxjlga9jhjc01s7fq5";
12 hardeningDisable = [ "format" ];
14 nativeBuildInputs = [ cmake pkg-config unzip ];
15 buildInputs = [ libXpm fltk13 freeimage ];
18 unzip $src -d posterazor
22 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=667328
24 sed "s/\(#define CASESENSITIVESTRCMP strcasecmp\)/#include <unistd.h>\n\1/" -i FlPosteRazorDialog.cpp
29 cp PosteRazor $out/bin
33 homepage = "http://posterazor.sourceforge.net/";
34 description = "Cuts a raster image into pieces which can afterwards be printed out and assembled to a poster";
35 maintainers = [ maintainers.madjar ];
36 license = licenses.gpl3Plus;
37 platforms = platforms.linux;