mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
gnuradio-osmosdr: new package
This is a Gnuradio block for OsmoSDR and rtl-sdr. http://sdr.osmocom.org/trac/wiki/GrOsmoSDR
This commit is contained in:
parent
b9d7780ced
commit
24d9bc576a
2 changed files with 37 additions and 0 deletions
35
pkgs/applications/misc/gnuradio-osmosdr/default.nix
Normal file
35
pkgs/applications/misc/gnuradio-osmosdr/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ stdenv, fetchgit, cmake, pkgconfig, boost, gnuradio, rtl-sdr, uhd
|
||||
, makeWrapper
|
||||
, pythonSupport ? true, python, swig
|
||||
}:
|
||||
|
||||
assert pythonSupport -> python != null && swig != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gnuradio-osmosdr-${version}";
|
||||
version = "0.1.0";
|
||||
|
||||
src = fetchgit {
|
||||
url = "git://git.osmocom.org/gr-osmosdr";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "112zfvnr6fjvhdc06ihi2sb0dp441qy7jq8rvr81nbyv3r8jspj4";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
cmake pkgconfig boost gnuradio rtl-sdr uhd makeWrapper
|
||||
] ++ stdenv.lib.optionals pythonSupport [ python swig ];
|
||||
|
||||
postInstall = ''
|
||||
for prog in "$out"/bin/*; do
|
||||
wrapProgram "$prog" --set PYTHONPATH $PYTHONPATH:$(toPythonPath "$out")
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Gnuradio block for OsmoSDR and rtl-sdr";
|
||||
homepage = http://sdr.osmocom.org/trac/wiki/GrOsmoSDR;
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.bjornfor ];
|
||||
};
|
||||
}
|
|
@ -7930,6 +7930,8 @@ let
|
|||
fftw = fftwFloat;
|
||||
};
|
||||
|
||||
gnuradio-osmosdr = callPackage ../applications/misc/gnuradio-osmosdr { };
|
||||
|
||||
goldendict = callPackage ../applications/misc/goldendict { };
|
||||
|
||||
google-musicmanager = callPackage ../applications/audio/google-musicmanager { };
|
||||
|
|
Loading…
Reference in a new issue