571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
33 lines
913 B
Nix
33 lines
913 B
Nix
{ lib, stdenv, fetchurl, python3, autoconf, automake, libtool }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "jbig2dec";
|
|
version = "0.20";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ArtifexSoftware/jbig2dec/archive/${version}/jbig2dec-${version}.tar.gz";
|
|
hash = "sha256-qXBTaaZjOrpTJpNFDsgCxWI5fhuCRmLegJ7ekvZ6/yE=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs test_jbig2dec.py
|
|
'';
|
|
|
|
nativeBuildInputs = [ autoconf automake libtool ];
|
|
|
|
# `autogen.sh` runs `configure`, and expects that any flags needed
|
|
# by `configure` (like `--host`) are passed to `autogen.sh`.
|
|
configureScript = "./autogen.sh";
|
|
|
|
nativeCheckInputs = [ python3 ];
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
homepage = "https://www.jbig2dec.com/";
|
|
description = "Decoder implementation of the JBIG2 image compression format";
|
|
mainProgram = "jbig2dec";
|
|
license = lib.licenses.agpl3Only;
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|