summary refs log tree commit diff
path: root/pkgs/applications/misc/soapyremote/default.nix
blob: d10b09f99a8d211feb04df717c1e3a22923525e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchFromGitHub, cmake, soapysdr }:

let
  version = "0.4.3";

in stdenv.mkDerivation {
  name = "soapyremote-${version}";

  src = fetchFromGitHub {
    owner = "pothosware";
    repo = "SoapyRemote";
    rev = "d07f43863b1ef79252f8029cfb5947220f21311d";
    sha256 = "0i101dfqq0aawybv0qyjgsnhk39dc4q6z6ys2gsvwjhpf3d48aw0";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ soapysdr ];

  cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];

  meta = with stdenv.lib; {
    homepage = https://github.com/pothosware/SoapyRemote;
    description = "SoapySDR plugin for remote access to SDRs";
    license = licenses.boost;
    maintainers = with maintainers; [ markuskowa ];
    platforms = platforms.linux;
  };
}