1 { lib, stdenv, fetchFromGitHub, fftw, libjpeg, log4cpp, openjpeg
2 , libpng12, poppler, qtbase, qt5, qmake, wrapQtAppsHook
5 stdenv.mkDerivation rec {
6 pname = "engauge-digitizer";
9 src = fetchFromGitHub {
10 owner = "markummitchell";
13 sha256 = "sha256-Wj9o3wWbtHsEi6LFH4xDpwVR9BwcWc472jJ/QFDQZvY=";
16 nativeBuildInputs = [ qmake wrapQtAppsHook ];
33 "CONFIG+=log4cpp_null"
36 POPPLER_INCLUDE = "${poppler.dev}/include/poppler/qt5";
38 POPPLER_LIB = "${poppler}/lib";
40 OPENJPEG_INCLUDE = "${openjpeg.dev}/include/${openjpeg.pname}-${lib.versions.majorMinor openjpeg.version}";
42 OPENJPEG_LIB = "${openjpeg}/lib";
48 cp bin/engauge $out/bin/
54 description = "Engauge Digitizer is a tool for recovering graph data from an image file";
55 mainProgram = "engauge";
56 homepage = "https://markummitchell.github.io/engauge-digitizer";
57 license = with licenses; [ gpl2Only ];
58 platforms = platforms.linux;
59 maintainers = [ maintainers.sheepforce ];