base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / li / libxisf / package.nix
blobd19dd27887455b8270fc24ce64129d70d1016286
1 { lib
2 , stdenv
3 , fetchFromGitea
4 , cmake
5 , pkg-config
6 , lz4
7 , pugixml
8 , zlib
9 , zstd
12 stdenv.mkDerivation (finalAttrs: {
13   pname = "libxisf";
14   version = "0.2.12";
16   src = fetchFromGitea {
17     domain = "gitea.nouspiro.space";
18     owner = "nou";
19     repo = "libXISF";
20     rev = "v${finalAttrs.version}";
21     hash = "sha256-QhshgKyf9s5U5JMa5TZelIo1tpJGlsOQePPG1kEfbq8=";
22   };
24   patches = [
25     ./0001-Fix-pkg-config-paths.patch
26   ];
28   nativeBuildInputs = [
29     cmake
30     pkg-config
31   ];
33   cmakeFlags = [
34     "-DUSE_BUNDLED_LIBS=OFF"
35   ] ++ lib.optional stdenv.hostPlatform.isStatic "-DBUILD_SHARED_LIBS=OFF";
37   buildInputs = [
38     lz4
39     pugixml
40     zlib
41     zstd
42   ];
44   doCheck = true;
46   meta = with lib; {
47     description = "Library to load and write XISF format from PixInsight";
48     homepage = "https://gitea.nouspiro.space/nou/libXISF";
49     license = licenses.gpl3Plus;
50     maintainers = with maintainers; [ panicgh ];
51     platforms = platforms.linux;
52   };