python312Packages.icontract: relax deps (#380554)
[NixPkgs.git] / pkgs / by-name / li / libxisf / package.nix
blob60cea171bfdec6fd2625f0f01356a3c5e43b0e50
2   lib,
3   stdenv,
4   fetchFromGitea,
5   cmake,
6   pkg-config,
7   lz4,
8   pugixml,
9   zlib,
10   zstd,
13 stdenv.mkDerivation (finalAttrs: {
14   pname = "libxisf";
15   version = "0.2.13";
17   src = fetchFromGitea {
18     domain = "gitea.nouspiro.space";
19     owner = "nou";
20     repo = "libXISF";
21     rev = "v${finalAttrs.version}";
22     hash = "sha256-vc42Jw7kBbQYu+/6jakxFnSuVkS8t6ZyYuSMLGMnEn4=";
23   };
25   patches = [
26     ./0001-Fix-pkg-config-paths.patch
27   ];
29   nativeBuildInputs = [
30     cmake
31     pkg-config
32   ];
34   cmakeFlags = [
35     "-DUSE_BUNDLED_LIBS=OFF"
36   ] ++ lib.optional stdenv.hostPlatform.isStatic "-DBUILD_SHARED_LIBS=OFF";
38   buildInputs = [
39     lz4
40     pugixml
41     zlib
42     zstd
43   ];
45   doCheck = true;
47   meta = with lib; {
48     description = "Library to load and write XISF format from PixInsight";
49     homepage = "https://gitea.nouspiro.space/nou/libXISF";
50     license = licenses.gpl3Plus;
51     maintainers = with maintainers; [ panicgh ];
52     platforms = platforms.linux;
53   };