From a63235871017932b07714e807166726e6084aaa3 Mon Sep 17 00:00:00 2001 From: Nicolas Benes Date: Mon, 17 Apr 2023 01:46:07 +0200 Subject: [PATCH] libxisf: init at 0.2.3 --- .../science/astronomy/libxisf/default.nix | 47 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 49 insertions(+) create mode 100644 pkgs/development/libraries/science/astronomy/libxisf/default.nix diff --git a/pkgs/development/libraries/science/astronomy/libxisf/default.nix b/pkgs/development/libraries/science/astronomy/libxisf/default.nix new file mode 100644 index 000000000000..e7e4bc98b0d8 --- /dev/null +++ b/pkgs/development/libraries/science/astronomy/libxisf/default.nix @@ -0,0 +1,47 @@ +{ lib +, stdenv +, fetchFromGitea +, cmake +, pkg-config +, lz4 +, pugixml +, zlib +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "libxisf"; + version = "0.2.3"; + + src = fetchFromGitea { + domain = "gitea.nouspiro.space"; + owner = "nou"; + repo = "libXISF"; + rev = "v${finalAttrs.version}"; + hash = "sha256-u5EYnRO2rUV8ofLL9qfACeVvVbWXEXpkqh2Q4OOxpaQ="; + }; + + nativeBuildInputs = [ + cmake + pkg-config + ]; + + cmakeFlags = [ + "-DUSE_BUNDLED_LIBS=OFF" + ] ++ lib.optional stdenv.hostPlatform.isStatic "-DBUILD_SHARED_LIBS=OFF"; + + buildInputs = [ + lz4 + pugixml + zlib + ]; + + doCheck = true; + + meta = with lib; { + description = "Library to load and write XISF format from PixInsight"; + homepage = "https://gitea.nouspiro.space/nou/libXISF"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ panicgh ]; + platforms = platforms.linux; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 337b9e9185c8..ff01c40ca9af 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22342,6 +22342,8 @@ with pkgs; libxdg_basedir = callPackage ../development/libraries/libxdg-basedir { }; + libxisf = callPackage ../development/libraries/science/astronomy/libxisf { }; + libxkbcommon = libxkbcommon_8; libxkbcommon_8 = callPackage ../development/libraries/libxkbcommon { }; libxkbcommon_7 = callPackage ../development/libraries/libxkbcommon/libxkbcommon_7.nix { };