mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
Merge pull request #114586 from hjones2199/indi-full
This commit is contained in:
commit
2c0e6a0e69
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
eigen, zlib,
|
eigen, zlib,
|
||||||
|
|
||||||
cfitsio, indilib, xplanet, libnova, libraw, gsl, wcslib, stellarsolver
|
cfitsio, indi-full, xplanet, libnova, libraw, gsl, wcslib, stellarsolver
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
@ -37,11 +37,11 @@ mkDerivation rec {
|
|||||||
|
|
||||||
eigen zlib
|
eigen zlib
|
||||||
|
|
||||||
cfitsio indilib xplanet libnova libraw gsl wcslib stellarsolver
|
cfitsio indi-full xplanet libnova libraw gsl wcslib stellarsolver
|
||||||
];
|
];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DINDI_NIX_ROOT=${indilib}"
|
"-DINDI_NIX_ROOT=${indi-full}"
|
||||||
"-DXPLANET_NIX_ROOT=${xplanet}"
|
"-DXPLANET_NIX_ROOT=${xplanet}"
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ mkDerivation rec {
|
|||||||
The display includes up to 100 million stars, 13.000 deep-sky objects, all 8 planets, the Sun and Moon, and thousands of comets, asteroids, supernovae, and satellites.
|
The display includes up to 100 million stars, 13.000 deep-sky objects, all 8 planets, the Sun and Moon, and thousands of comets, asteroids, supernovae, and satellites.
|
||||||
For students and teachers, it supports adjustable simulation speeds in order to view phenomena that happen over long timescales, the KStars Astrocalculator to predict conjunctions, and many common astronomical calculations.
|
For students and teachers, it supports adjustable simulation speeds in order to view phenomena that happen over long timescales, the KStars Astrocalculator to predict conjunctions, and many common astronomical calculations.
|
||||||
'';
|
'';
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ timput hjones2199 ];
|
maintainers = with maintainers; [ timput hjones2199 ];
|
||||||
};
|
};
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, gtk3, wxGTK30-gtk3,
|
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, gtk3, wxGTK30-gtk3,
|
||||||
curl, gettext, glib, indilib, libnova, wrapGAppsHook }:
|
curl, gettext, glib, indi-full, libnova, wrapGAppsHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "phd2";
|
pname = "phd2";
|
||||||
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkg-config wrapGAppsHook ];
|
nativeBuildInputs = [ cmake pkg-config wrapGAppsHook ];
|
||||||
buildInputs = [ gtk3 wxGTK30-gtk3 curl gettext glib indilib libnova ];
|
buildInputs = [ gtk3 wxGTK30-gtk3 curl gettext glib indi-full libnova ];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DOPENSOURCE_ONLY=1"
|
"-DOPENSOURCE_ONLY=1"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{ lib, stdenv
|
{ stdenv
|
||||||
|
, lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, cmake
|
, cmake
|
||||||
, cfitsio
|
, cfitsio
|
||||||
@ -23,10 +24,6 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "sha256-WTRfV6f764tDGKnQVd1jeYN/qXa/VRTFK0mMalc+9aU=";
|
sha256 = "sha256-WTRfV6f764tDGKnQVd1jeYN/qXa/VRTFK0mMalc+9aU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
|
||||||
./udev-dir.patch
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
];
|
];
|
||||||
@ -43,6 +40,11 @@ stdenv.mkDerivation rec {
|
|||||||
fftw
|
fftw
|
||||||
];
|
];
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DCMAKE_INSTALL_LIBDIR=lib"
|
||||||
|
"-DUDEVRULES_INSTALL_DIR=lib/udev/rules.d"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://www.indilib.org/";
|
homepage = "https://www.indilib.org/";
|
||||||
description = "Implementation of the INDI protocol for POSIX operating systems";
|
description = "Implementation of the INDI protocol for POSIX operating systems";
|
||||||
|
63
pkgs/development/libraries/indilib/indi-3rdparty.nix
Normal file
63
pkgs/development/libraries/indilib/indi-3rdparty.nix
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, cmake
|
||||||
|
, cfitsio
|
||||||
|
, libusb1
|
||||||
|
, zlib
|
||||||
|
, boost
|
||||||
|
, libnova
|
||||||
|
, curl
|
||||||
|
, libjpeg
|
||||||
|
, gsl
|
||||||
|
, fftw
|
||||||
|
, indilib
|
||||||
|
, libgphoto2
|
||||||
|
, libraw
|
||||||
|
, libftdi1
|
||||||
|
, libdc1394
|
||||||
|
, gpsd
|
||||||
|
, ffmpeg
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "indi-3rdparty";
|
||||||
|
version = "1.8.8";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "indilib";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "18ii9qsghrvj8y4y6c7bx6kjradybnmyq8i5phj7pv4r8w91rq7g";
|
||||||
|
};
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DINDI_DATA_DIR=\${CMAKE_INSTALL_PREFIX}/share/indi"
|
||||||
|
"-DCMAKE_INSTALL_LIBDIR=lib"
|
||||||
|
"-DUDEVRULES_INSTALL_DIR=lib/udev/rules.d"
|
||||||
|
"-DRULES_INSTALL_DIR=lib/udev/rules.d"
|
||||||
|
"-DWITH_SX=off"
|
||||||
|
"-DWITH_SBIG=off"
|
||||||
|
"-DWITH_APOGEE=off"
|
||||||
|
"-DWITH_FISHCAMP=off"
|
||||||
|
"-DWITH_DSI=off"
|
||||||
|
"-DWITH_QHY=off"
|
||||||
|
"-DWITH_ARMADILLO=off"
|
||||||
|
"-DWITH_PENTAX=off"
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
indilib libnova curl cfitsio libusb1 zlib boost gsl gpsd
|
||||||
|
libjpeg libgphoto2 libraw libftdi1 libdc1394 ffmpeg fftw
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://www.indilib.org/";
|
||||||
|
description = "Third party drivers for the INDI astronomical software suite";
|
||||||
|
license = licenses.lgpl2Plus;
|
||||||
|
maintainers = with maintainers; [ hjones2199 ];
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
};
|
||||||
|
}
|
11
pkgs/development/libraries/indilib/indi-full.nix
Normal file
11
pkgs/development/libraries/indilib/indi-full.nix
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{ callPackage, indilib, indi-3rdparty }:
|
||||||
|
|
||||||
|
let
|
||||||
|
indi-with-drivers = ./indi-with-drivers.nix;
|
||||||
|
in
|
||||||
|
callPackage indi-with-drivers {
|
||||||
|
pkgName = "indi-full";
|
||||||
|
extraDrivers = [
|
||||||
|
indi-3rdparty
|
||||||
|
];
|
||||||
|
}
|
9
pkgs/development/libraries/indilib/indi-with-drivers.nix
Normal file
9
pkgs/development/libraries/indilib/indi-with-drivers.nix
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{ buildEnv, indilib ? indilib, extraDrivers ? null , pkgName ? "indi-with-drivers" }:
|
||||||
|
|
||||||
|
buildEnv {
|
||||||
|
name = pkgName;
|
||||||
|
paths = [
|
||||||
|
indilib
|
||||||
|
]
|
||||||
|
++ extraDrivers;
|
||||||
|
}
|
@ -1,11 +0,0 @@
|
|||||||
--- indi-1.8.6/CMakeLists.txt 2020-08-21 05:56:59.000000000 -0500
|
|
||||||
+++ CMakeLists.txt 2020-11-01 12:50:57.621293870 -0600
|
|
||||||
@@ -77,7 +77,7 @@
|
|
||||||
## the following are directories where stuff will be installed to
|
|
||||||
set(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include/")
|
|
||||||
set(PKGCONFIG_INSTALL_PREFIX "${CMAKE_INSTALL_LIBDIR}/pkgconfig/")
|
|
||||||
-set(UDEVRULES_INSTALL_DIR "/lib/udev/rules.d" CACHE STRING "Base directory for udev rules")
|
|
||||||
+set(UDEVRULES_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib/udev/rules.d" CACHE STRING "Base directory for udev rules")
|
|
||||||
|
|
||||||
set(PKG_CONFIG_LIBDIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
|
|
||||||
|
|
@ -14558,6 +14558,8 @@ in
|
|||||||
indicator-application-gtk3 = callPackage ../development/libraries/indicator-application/gtk3.nix { };
|
indicator-application-gtk3 = callPackage ../development/libraries/indicator-application/gtk3.nix { };
|
||||||
|
|
||||||
indilib = callPackage ../development/libraries/indilib { };
|
indilib = callPackage ../development/libraries/indilib { };
|
||||||
|
indi-3rdparty = callPackage ../development/libraries/indilib/indi-3rdparty.nix { };
|
||||||
|
indi-full = callPackage ../development/libraries/indilib/indi-full.nix { };
|
||||||
|
|
||||||
inih = callPackage ../development/libraries/inih { };
|
inih = callPackage ../development/libraries/inih { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user