depot/third_party/nixpkgs/pkgs/tools/graphics/unpaper/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

59 lines
928 B
Nix

{ lib
, 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";
src = fetchurl {
url = "https://www.flameeyes.eu/files/${pname}-${version}.tar.xz";
hash = "sha256-JXX7vybCJxnRy4grWWAsmQDH90cRisEwiD9jQZvkaoA=";
};
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";
description = "Post-processing tool for scanned sheets of paper";
license = licenses.gpl2;
platforms = platforms.all;
mainProgram = "unpaper";
maintainers = [ maintainers.rycee ];
};
}