mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
2864ef44e3
Migrates the build to meson and ninja and adds support for ffmpeg 5. The package now creates a man page that we divert into a dedicated man output. Adds the paperless test into passthru.tests for good measure.
58 lines
881 B
Nix
58 lines
881 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
|
|
# build
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
|
|
# docs
|
|
, sphinx
|
|
|
|
# runtime
|
|
, buildPackages
|
|
, ffmpeg_5
|
|
|
|
# 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
|
|
];
|
|
|
|
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;
|
|
maintainers = [ maintainers.rycee ];
|
|
};
|
|
}
|