depot/third_party/nixpkgs/pkgs/by-name/op/openjph/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

37 lines
979 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, validatePkgConfig, testers, nix-update-script }:
stdenv.mkDerivation (finalAttrs: {
pname = "openjph";
version = "0.15.0";
src = fetchFromGitHub {
owner = "aous72";
repo = "openjph";
rev = finalAttrs.version;
hash = "sha256-v4rqBTS6rk5fgDQqvqPwFAYxLNxtsRhZuQsj+y3sE3o=";
};
nativeBuildInputs = [ cmake validatePkgConfig ];
outputs = [ "out" "dev" ];
cmakeFlags = [
(lib.cmakeBool "OJPH_ENABLE_TIFF_SUPPORT" false)
];
strictDeps = true;
passthru = {
tests.pkg-config = testers.hasPkgConfigModules { package = finalAttrs.finalPackage; };
updateScript = nix-update-script { };
};
meta = {
description = "Open-source implementation of JPEG2000 Part-15 (or JPH or HTJ2K)";
homepage = "https://openjph.org/";
maintainers = with lib.maintainers; [ abustany ];
license = lib.licenses.bsd2;
platforms = lib.platforms.unix;
pkgConfigModules = [ "openjph" ];
};
})