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,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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue