nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 52 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6 cmake, 7 pkg-config, 8 libbladeRF, 9 soapysdr, 10}: 11 12let 13 version = "0.4.2"; 14 15in 16stdenv.mkDerivation { 17 pname = "soapybladerf"; 18 inherit version; 19 20 src = fetchFromGitHub { 21 owner = "pothosware"; 22 repo = "SoapyBladeRF"; 23 rev = "soapy-bladerf-${version}"; 24 sha256 = "sha256-lhTiu+iCdlLTY5ceND+F8HzKf2K9afuTi3cme6nGEMo="; 25 }; 26 27 nativeBuildInputs = [ 28 cmake 29 pkg-config 30 ]; 31 buildInputs = [ 32 libbladeRF 33 soapysdr 34 ]; 35 36 patches = [ 37 (fetchpatch { 38 url = "https://github.com/pothosware/SoapyBladeRF/commit/f141b61624f24a56aa3bdf7b0cc61c9fa65c26a3.patch"; 39 hash = "sha256-szqHbSAHiK0F83bxYnrblEBi/U7tpD0AXotYV1eTFxU="; 40 }) 41 ]; 42 43 cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ]; 44 45 meta = { 46 homepage = "https://github.com/pothosware/SoapyBladeRF"; 47 description = "SoapySDR plugin for BladeRF devices"; 48 license = lib.licenses.lgpl21Only; 49 maintainers = with lib.maintainers; [ markuskowa ]; 50 platforms = lib.platforms.unix; 51 }; 52}