nixpkgs/pkgs/tools/graphics/unpaper/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
899 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
# build
, meson
, ninja
, pkg-config
# docs
, sphinx
# runtime
, buildPackages
, ffmpeg_5-headless
# tests
, nixosTests
}:
2014-12-30 14:39:26 +00:00
stdenv.mkDerivation rec {
pname = "unpaper";
version = "7.0.0";
2014-12-30 14:39:26 +00:00
src = fetchurl {
url = "https://www.flameeyes.eu/files/${pname}-${version}.tar.xz";
hash = "sha256-JXX7vybCJxnRy4grWWAsmQDH90cRisEwiD9jQZvkaoA=";
2014-12-30 14:39:26 +00:00
};
outputs = [
"out"
"man"
];
nativeBuildInputs = [
buildPackages.libxslt.bin
meson
ninja
pkg-config
sphinx
];
buildInputs = [
ffmpeg_5-headless
];
passthru.tests = {
inherit (nixosTests) paperless;
};
2014-12-30 14:39:26 +00:00
meta = with lib; {
homepage = "https://www.flameeyes.eu/projects/unpaper";
2014-12-30 14:39:26 +00:00
description = "Post-processing tool for scanned sheets of paper";
license = licenses.gpl2;
2016-05-22 12:34:33 +00:00
platforms = platforms.all;
2014-12-30 14:39:26 +00:00
maintainers = [ maintainers.rycee ];
};
}