mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 06:14:26 +03:00
uhd: 3.7.0 -> 3.9.3
This commit is contained in:
parent
c0a35241f0
commit
b2f92582fb
@ -1,4 +1,5 @@
|
||||
{ stdenv, fetchurl, cmake, pkgconfig, python, cheetahTemplate, orc, libusb1, boost }:
|
||||
{ stdenv, fetchurl, fetchFromGitHub, cmake, pkgconfig
|
||||
, python, pythonPackages, orc, libusb1, boost }:
|
||||
|
||||
# You need these udev rules to not have to run as root (copied from
|
||||
# ${uhd}/share/uhd/utils/uhd-usrp.rules):
|
||||
@ -8,29 +9,33 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "uhd-${version}";
|
||||
version = "3.7.0";
|
||||
version = "3.9.3";
|
||||
|
||||
# UHD seems to use three different version number styles: x.y.z, xxx_yyy_zzz
|
||||
# and xxx.yyy.zzz. Hrmpf...
|
||||
|
||||
src = fetchurl {
|
||||
name = "${name}.tar.gz";
|
||||
url = "https://github.com/EttusResearch/uhd/archive/release_003_007_000.tar.gz";
|
||||
sha256 = "0x9imfy63s6wlbilr2n82c15nd33ix0mbap0q1xwh2pj1mk4d5jk";
|
||||
src = fetchFromGitHub {
|
||||
owner = "EttusResearch";
|
||||
repo = "uhd";
|
||||
rev = "release_003_009_003";
|
||||
sha256 = "0nbm8nrjd0l8jj1wq0kkgd8pifzysdyc7pvraq16m0dc01mr638h";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
cmakeFlags = "-DLIBUSB_INCLUDE_DIRS=${libusb1}/include/libusb-1.0";
|
||||
|
||||
buildInputs = [ cmake pkgconfig python cheetahTemplate orc libusb1 boost ];
|
||||
nativeBuildInputs = [ cmake pkgconfig ];
|
||||
buildInputs = [ python pythonPackages.pyramid_mako orc libusb1 boost ];
|
||||
|
||||
# Build only the host software
|
||||
preConfigure = "cd host";
|
||||
|
||||
# Firmware images are downloaded (pre-built)
|
||||
uhdImagesName = "uhd-images_003.007.000-release";
|
||||
uhdImagesName = "uhd-images_003.007.003-release";
|
||||
uhdImagesSrc = fetchurl {
|
||||
url = "http://files.ettus.com/binaries/maint_images/archive/${uhdImagesName}.tar.gz";
|
||||
sha256 = "0vb0rc5ji8n6l6ycvd7pbazxzm0ihvkmqm77jflqrd3kky8r722d";
|
||||
sha256 = "1pv5c5902041494z0jfw623ca29pvylrw5klybbhklvn5wwlr6cv";
|
||||
};
|
||||
|
||||
postPhases = [ "installFirmware" ];
|
||||
@ -51,6 +56,6 @@ stdenv.mkDerivation rec {
|
||||
homepage = http://ettus-apps.sourcerepo.com/redmine/ettus/projects/uhd/wiki;
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.bjornfor ];
|
||||
maintainers = with maintainers; [ bjornfor fpletz ];
|
||||
};
|
||||
}
|
||||
|
@ -6328,9 +6328,7 @@ let
|
||||
|
||||
texi2html = callPackage ../development/tools/misc/texi2html { };
|
||||
|
||||
uhd = callPackage ../development/tools/misc/uhd {
|
||||
boost = boost155;
|
||||
};
|
||||
uhd = callPackage ../development/tools/misc/uhd { };
|
||||
|
||||
uisp = callPackage ../development/tools/misc/uisp { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user