biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / science / math / engauge-digitizer / default.nix
blob95306a0820fa30af6f3fa8a1f969549958f9f9dc
1 { lib, stdenv, fetchFromGitHub, fftw, libjpeg, log4cpp, openjpeg
2 , libpng12, poppler, qtbase, qt5, qmake, wrapQtAppsHook
3 }:
5 stdenv.mkDerivation rec {
6   pname = "engauge-digitizer";
7   version = "12.2.2";
9   src = fetchFromGitHub {
10     owner = "markummitchell";
11     repo = pname;
12     rev = "v${version}";
13     sha256 = "sha256-Wj9o3wWbtHsEi6LFH4xDpwVR9BwcWc472jJ/QFDQZvY=";
14   };
16   nativeBuildInputs = [ qmake wrapQtAppsHook ];
18   buildInputs = [
19     qtbase
20     qt5.qttools
21     poppler
22     libpng12
23     openjpeg
24     openjpeg.dev
25     log4cpp
26     libjpeg
27     fftw
28   ];
30   qmakeFlags = [
31     "CONFIG+=jpeg2000"
32     "CONFIG+=pdf"
33     "CONFIG+=log4cpp_null"
34   ];
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";
44   installPhase = ''
45     runHook preInstall
47     mkdir -p $out/bin
48     cp bin/engauge $out/bin/
50     runHook postInstall
51   '';
53   meta = with lib; {
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 ];
60   };