uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
|
|
@ -0,0 +1,56 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, cfitsio
|
||||
, libusb1
|
||||
, zlib
|
||||
, boost
|
||||
, libnova
|
||||
, curl
|
||||
, libjpeg
|
||||
, gsl
|
||||
, fftw
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "indilib";
|
||||
version = "1.9.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "indilib";
|
||||
repo = "indi";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-mj9rnPn85Fbc7Y8qRndqPVANzBrk3al+vDJagLTDJ04=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
curl
|
||||
cfitsio
|
||||
libusb1
|
||||
zlib
|
||||
boost
|
||||
libnova
|
||||
libjpeg
|
||||
gsl
|
||||
fftw
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_INSTALL_LIBDIR=lib"
|
||||
"-DUDEVRULES_INSTALL_DIR=lib/udev/rules.d"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.indilib.org/";
|
||||
description = "Implementation of the INDI protocol for POSIX operating systems";
|
||||
changelog = "https://github.com/indilib/indi/releases/tag/v${version}";
|
||||
license = licenses.lgpl2Plus;
|
||||
maintainers = with maintainers; [ hjones2199 ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,79 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, cmake
|
||||
, cfitsio
|
||||
, libusb1
|
||||
, zlib
|
||||
, boost
|
||||
, libnova
|
||||
, curl
|
||||
, libjpeg
|
||||
, gsl
|
||||
, fftw
|
||||
, indilib
|
||||
, libgphoto2
|
||||
, libraw
|
||||
, libftdi1
|
||||
, libdc1394
|
||||
, gpsd
|
||||
, ffmpeg
|
||||
, version
|
||||
, src
|
||||
, withFirmware ? false
|
||||
, firmware ? null
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "indi-3rdparty";
|
||||
|
||||
inherit version src;
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
buildInputs = [
|
||||
indilib libnova curl cfitsio libusb1 zlib boost gsl gpsd
|
||||
libjpeg libgphoto2 libraw libftdi1 libdc1394 ffmpeg fftw
|
||||
] ++ lib.optionals withFirmware [
|
||||
firmware
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
for f in indi-qsi/CMakeLists.txt \
|
||||
indi-dsi/CMakeLists.txt \
|
||||
indi-armadillo-platypus/CMakeLists.txt \
|
||||
indi-orion-ssg3/CMakeLists.txt
|
||||
do
|
||||
substituteInPlace $f \
|
||||
--replace "/lib/udev/rules.d" "lib/udev/rules.d" \
|
||||
--replace "/etc/udev/rules.d" "lib/udev/rules.d" \
|
||||
--replace "/lib/firmware" "lib/firmware"
|
||||
done
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
"-DINDI_DATA_DIR=share/indi"
|
||||
"-DCMAKE_INSTALL_LIBDIR=lib"
|
||||
"-DUDEVRULES_INSTALL_DIR=lib/udev/rules.d"
|
||||
"-DRULES_INSTALL_DIR=lib/udev/rules.d"
|
||||
# Pentax, Atik, and SX cmakelists are currently broken
|
||||
"-DWITH_PENTAX=off"
|
||||
"-DWITH_ATIK=off"
|
||||
"-DWITH_SX=off"
|
||||
] ++ lib.optionals (!withFirmware) [
|
||||
"-DWITH_APOGEE=off"
|
||||
"-DWITH_DSI=off"
|
||||
"-DWITH_QHY=off"
|
||||
"-DWITH_ARMADILLO=off"
|
||||
"-DWITH_FISHCAMP=off"
|
||||
"-DWITH_SBIG=off"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.indilib.org/";
|
||||
description = "Third party drivers for the INDI astronomical software suite";
|
||||
changelog = "https://github.com/indilib/indi-3rdparty/releases/tag/v${version}";
|
||||
license = licenses.lgpl2Plus;
|
||||
maintainers = with maintainers; [ hjones2199 ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, cmake
|
||||
, cfitsio
|
||||
, libusb1
|
||||
, zlib
|
||||
, boost
|
||||
, libnova
|
||||
, curl
|
||||
, libjpeg
|
||||
, gsl
|
||||
, fftw
|
||||
, indilib
|
||||
, libgphoto2
|
||||
, libraw
|
||||
, libftdi1
|
||||
, libdc1394
|
||||
, gpsd
|
||||
, ffmpeg
|
||||
, version
|
||||
, src
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "indi-firmware";
|
||||
|
||||
inherit version src;
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
buildInputs = [
|
||||
indilib libnova curl cfitsio libusb1 zlib boost gsl gpsd
|
||||
libjpeg libgphoto2 libraw libftdi1 libdc1394 ffmpeg fftw
|
||||
];
|
||||
|
||||
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"
|
||||
"-DFIRMWARE_INSTALL_DIR=\${CMAKE_INSTALL_PREFIX}/lib/firmware"
|
||||
"-DCONF_DIR=etc"
|
||||
"-DBUILD_LIBS=1"
|
||||
"-DWITH_PENTAX=off"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
for f in libfishcamp/CMakeLists.txt libsbig/CMakeLists.txt
|
||||
do
|
||||
substituteInPlace $f --replace "/lib/firmware" "lib/firmware"
|
||||
done
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
rm $out/lib/udev/rules.d/99-fli.rules
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.indilib.org/";
|
||||
description = "Third party firmware for the INDI astronomical software suite";
|
||||
changelog = "https://github.com/indilib/indi-3rdparty/releases/tag/v${version}";
|
||||
license = licenses.lgpl2Plus;
|
||||
maintainers = with maintainers; [ hjones2199 ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
{ stdenv, lib, callPackage, fetchFromGitHub, indilib }:
|
||||
|
||||
let
|
||||
indi-version = "1.9.3";
|
||||
indi-3rdparty-src = fetchFromGitHub {
|
||||
owner = "indilib";
|
||||
repo = "indi-3rdparty";
|
||||
rev = "v${indi-version}";
|
||||
sha256 = "sha256-TBccdheBEO48uIXd6tya6dytkzxaHg2+YancBkcL3bw=";
|
||||
};
|
||||
indi-firmware = callPackage ./indi-firmware.nix {
|
||||
version = indi-version;
|
||||
src = indi-3rdparty-src;
|
||||
};
|
||||
indi-3rdparty = callPackage ./indi-3rdparty.nix {
|
||||
version = indi-version;
|
||||
src = indi-3rdparty-src;
|
||||
withFirmware = stdenv.isx86_64;
|
||||
firmware = indi-firmware;
|
||||
};
|
||||
in
|
||||
callPackage ./indi-with-drivers.nix {
|
||||
pname = "indi-full";
|
||||
version = indi-version;
|
||||
extraDrivers = [
|
||||
indi-3rdparty
|
||||
] ++ lib.optionals stdenv.isx86_64 [
|
||||
indi-firmware
|
||||
];
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
{ buildEnv, indilib ? indilib, pname ? "indi-with-drivers", version ? null, extraDrivers ? null }:
|
||||
|
||||
buildEnv {
|
||||
name = "${pname}-${version}";
|
||||
paths = [
|
||||
indilib
|
||||
]
|
||||
++ extraDrivers;
|
||||
inherit (indilib) meta;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue