unpaper: 6.1 -> 7.0.0

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.

+41 -5
+41 -5
pkgs/tools/graphics/unpaper/default.nix
··· 1 - { lib, stdenv, fetchurl, buildPackages, pkg-config, ffmpeg_4 }: 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + 5 + # build 6 + , meson 7 + , ninja 8 + , pkg-config 9 + 10 + # docs 11 + , sphinx 12 + 13 + # runtime 14 + , buildPackages 15 + , ffmpeg_5 16 + 17 + # tests 18 + , nixosTests 19 + }: 2 20 3 21 stdenv.mkDerivation rec { 4 22 pname = "unpaper"; 5 - version = "6.1"; 23 + version = "7.0.0"; 6 24 7 25 src = fetchurl { 8 26 url = "https://www.flameeyes.eu/files/${pname}-${version}.tar.xz"; 9 - sha256 = "0c5rbkxbmy9k8vxjh4cv0bgnqd3wqc99yzw215vkyjslvbsq8z13"; 27 + hash = "sha256-JXX7vybCJxnRy4grWWAsmQDH90cRisEwiD9jQZvkaoA="; 10 28 }; 11 29 12 - nativeBuildInputs = [ pkg-config buildPackages.libxslt.bin ]; 13 - buildInputs = [ ffmpeg_4 ]; 30 + outputs = [ 31 + "out" 32 + "man" 33 + ]; 34 + 35 + nativeBuildInputs = [ 36 + buildPackages.libxslt.bin 37 + meson 38 + ninja 39 + pkg-config 40 + sphinx 41 + ]; 42 + 43 + buildInputs = [ 44 + ffmpeg_5 45 + ]; 46 + 47 + passthru.tests = { 48 + inherit (nixosTests) paperless; 49 + }; 14 50 15 51 meta = with lib; { 16 52 homepage = "https://www.flameeyes.eu/projects/unpaper";