Silvan Mosberger 84d4f874c2 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev 78e9caf153f5a339bf1d4c000ff6f0a503a369c8
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:23:58 +01:00

77 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
fftw,
libjpeg,
log4cpp,
openjpeg,
libpng12,
poppler,
qtbase,
qt5,
qmake,
wrapQtAppsHook,
}:
stdenv.mkDerivation rec {
pname = "engauge-digitizer";
version = "12.2.2";
src = fetchFromGitHub {
owner = "markummitchell";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Wj9o3wWbtHsEi6LFH4xDpwVR9BwcWc472jJ/QFDQZvY=";
};
nativeBuildInputs = [
qmake
wrapQtAppsHook
];
buildInputs = [
qtbase
qt5.qttools
poppler
libpng12
openjpeg
openjpeg.dev
log4cpp
libjpeg
fftw
];
qmakeFlags = [
"CONFIG+=jpeg2000"
"CONFIG+=pdf"
"CONFIG+=log4cpp_null"
];
POPPLER_INCLUDE = "${poppler.dev}/include/poppler/qt5";
POPPLER_LIB = "${poppler}/lib";
OPENJPEG_INCLUDE = "${openjpeg.dev}/include/${openjpeg.pname}-${lib.versions.majorMinor openjpeg.version}";
OPENJPEG_LIB = "${openjpeg}/lib";
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp bin/engauge $out/bin/
runHook postInstall
'';
meta = with lib; {
description = "Engauge Digitizer is a tool for recovering graph data from an image file";
mainProgram = "engauge";
homepage = "https://markummitchell.github.io/engauge-digitizer";
license = with licenses; [ gpl2Only ];
platforms = platforms.linux;
maintainers = [ maintainers.sheepforce ];
};
}