{ lib , pkgs , stdenv , fetchurl # build , meson , ninja , pkg-config # docs , sphinx # runtime , buildPackages , ffmpeg_5-headless # tests , nixosTests }: stdenv.mkDerivation rec { pname = "unpaper"; version = "7.0.0-main"; src = pkgs.fetchgit { url = "https://github.com/unpaper/unpaper"; rev = "210868e25b81d7166b92018062425074eb4e2d57"; sha256 = "sha256-SBHTjOFIaLAG29F+fuPJPdpkv1Nr4KMU/IywHjIqD4w="; }; outputs = [ "out" "man" ]; nativeBuildInputs = [ buildPackages.libxslt.bin meson ninja pkg-config sphinx ]; buildInputs = [ ffmpeg_5-headless ]; passthru.tests = { inherit (nixosTests) paperless; }; meta = with lib; { homepage = "https://www.flameeyes.eu/projects/unpaper"; changelog = "https://github.com/unpaper/unpaper/blob/unpaper-${version}/NEWS"; description = "Post-processing tool for scanned sheets of paper"; license = licenses.gpl2; platforms = platforms.all; mainProgram = "unpaper"; maintainers = [ maintainers.rycee ]; }; }