Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
62 lines
1.0 KiB
Nix
62 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
|
|
# build
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
|
|
# docs
|
|
sphinx,
|
|
|
|
# runtime
|
|
buildPackages,
|
|
ffmpeg-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-headless
|
|
];
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) paperless;
|
|
};
|
|
|
|
meta = {
|
|
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 = lib.licenses.gpl2Only;
|
|
platforms = lib.platforms.all;
|
|
mainProgram = "unpaper";
|
|
maintainers = [ lib.maintainers.rycee ];
|
|
};
|
|
}
|