2022-09-30 11:47:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
|
|
|
|
# build
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
|
|
|
|
# docs
|
|
|
|
, sphinx
|
|
|
|
|
|
|
|
# runtime
|
|
|
|
, buildPackages
|
2022-12-17 10:02:37 +00:00
|
|
|
, ffmpeg_5-headless
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
# tests
|
|
|
|
, nixosTests
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "unpaper";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "7.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.flameeyes.eu/files/${pname}-${version}.tar.xz";
|
2022-09-30 11:47:45 +00:00
|
|
|
hash = "sha256-JXX7vybCJxnRy4grWWAsmQDH90cRisEwiD9jQZvkaoA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"man"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
buildPackages.libxslt.bin
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
sphinx
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-12-17 10:02:37 +00:00
|
|
|
ffmpeg_5-headless
|
2022-09-30 11:47:45 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) paperless;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.flameeyes.eu/projects/unpaper";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/unpaper/unpaper/blob/unpaper-${version}/NEWS";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Post-processing tool for scanned sheets of paper";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "unpaper";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.rycee ];
|
|
|
|
};
|
|
|
|
}
|