tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
soapysdr-with-plugins: add darwin support
Weijia Wang
3 years ago
097babd4
a989aa46
+52
-20
8 changed files
expand all
collapse all
unified
split
pkgs
applications
radio
limesuite
default.nix
soapyairspy
default.nix
soapyaudio
default.nix
soapybladerf
default.nix
soapyhackrf
default.nix
soapyremote
default.nix
soapyuhd
default.nix
top-level
all-packages.nix
+6
-3
pkgs/applications/radio/limesuite/default.nix
···
1
1
{ lib, stdenv, fetchFromGitHub, cmake
2
2
-
, sqlite, wxGTK30-gtk3, libusb1, soapysdr
2
2
+
, sqlite, wxGTK32, libusb1, soapysdr
3
3
, mesa_glu, libX11, gnuplot, fltk
4
4
+
, GLUT
4
5
} :
5
6
6
7
stdenv.mkDerivation rec {
···
23
24
buildInputs = [
24
25
libusb1
25
26
sqlite
26
26
-
wxGTK30-gtk3
27
27
+
wxGTK32
27
28
fltk
28
29
gnuplot
29
30
libusb1
30
31
soapysdr
31
32
mesa_glu
32
33
libX11
34
34
+
] ++ lib.optionals stdenv.isDarwin [
35
35
+
GLUT
33
36
];
34
37
35
38
postInstall = ''
···
42
45
homepage = "https://github.com/myriadrf/LimeSuite";
43
46
license = licenses.asl20;
44
47
maintainers = with maintainers; [ markuskowa ];
45
45
-
platforms = platforms.linux;
48
48
+
platforms = platforms.unix;
46
49
};
47
50
}
48
51
+4
-2
pkgs/applications/radio/soapyairspy/default.nix
···
1
1
{ lib, stdenv, fetchFromGitHub, cmake
2
2
, airspy, soapysdr
3
3
+
, libobjc, IOKit, Security
3
4
} :
4
5
5
6
stdenv.mkDerivation rec {
···
14
15
};
15
16
16
17
nativeBuildInputs = [ cmake ];
17
17
-
buildInputs = [ airspy soapysdr ];
18
18
+
buildInputs = [ airspy soapysdr ]
19
19
+
++ lib.optionals stdenv.isDarwin [ libobjc IOKit Security ];
18
20
19
21
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
20
22
···
23
25
description = "SoapySDR plugin for Airspy devices";
24
26
license = licenses.mit;
25
27
maintainers = with maintainers; [ markuskowa ];
26
26
-
platforms = platforms.linux;
28
28
+
platforms = platforms.unix;
27
29
};
28
30
}
+5
-2
pkgs/applications/radio/soapyaudio/default.nix
···
1
1
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
2
2
, hamlib, rtaudio, alsa-lib, libpulseaudio, libjack2, libusb1, soapysdr
3
3
+
, Accelerate, CoreAudio
3
4
} :
4
5
5
6
stdenv.mkDerivation rec {
···
14
15
};
15
16
16
17
nativeBuildInputs = [ cmake pkg-config ];
17
17
-
buildInputs = [ hamlib rtaudio alsa-lib libpulseaudio libjack2 libusb1 soapysdr ];
18
18
+
buildInputs = [ hamlib rtaudio libjack2 libusb1 soapysdr ]
19
19
+
++ lib.optionals stdenv.isLinux [ alsa-lib libpulseaudio ]
20
20
+
++ lib.optionals stdenv.isDarwin [ Accelerate CoreAudio ];
18
21
19
22
cmakeFlags = [
20
23
"-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/"
···
26
29
description = "SoapySDR plugin for amateur radio and audio devices";
27
30
license = licenses.mit;
28
31
maintainers = with maintainers; [ numinit ];
29
29
-
platforms = platforms.linux;
32
32
+
platforms = platforms.unix;
30
33
};
31
34
}
+4
-2
pkgs/applications/radio/soapybladerf/default.nix
···
1
1
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
2
2
, libbladeRF, soapysdr
3
3
+
, libobjc, IOKit, Security
3
4
} :
4
5
5
6
let
···
17
18
};
18
19
19
20
nativeBuildInputs = [ cmake pkg-config ];
20
20
-
buildInputs = [ libbladeRF soapysdr ];
21
21
+
buildInputs = [ libbladeRF soapysdr ]
22
22
+
++ lib.optionals stdenv.isDarwin [ libobjc IOKit Security ];
21
23
22
24
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
23
25
···
27
29
description = "SoapySDR plugin for BladeRF devices";
28
30
license = licenses.lgpl21Only;
29
31
maintainers = with maintainers; [ markuskowa ];
30
30
-
platforms = platforms.linux;
32
32
+
platforms = platforms.unix;
31
33
};
32
34
}
+4
-2
pkgs/applications/radio/soapyhackrf/default.nix
···
1
1
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
2
2
, hackrf, soapysdr
3
3
+
, libobjc, IOKit, Security
3
4
} :
4
5
5
6
let
···
17
18
};
18
19
19
20
nativeBuildInputs = [ cmake pkg-config ];
20
20
-
buildInputs = [ hackrf soapysdr ];
21
21
+
buildInputs = [ hackrf soapysdr ]
22
22
+
++ lib.optionals stdenv.isDarwin [ libobjc IOKit Security ];
21
23
22
24
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
23
25
···
26
28
description = "SoapySDR plugin for HackRF devices";
27
29
license = licenses.mit;
28
30
maintainers = with maintainers; [ markuskowa ];
29
29
-
platforms = platforms.linux;
31
31
+
platforms = platforms.unix;
30
32
};
31
33
}
+3
-1
pkgs/applications/radio/soapyremote/default.nix
···
19
19
20
20
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
21
21
22
22
+
NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [ "-include sys/select.h" ];
23
23
+
22
24
meta = with lib; {
23
25
homepage = "https://github.com/pothosware/SoapyRemote";
24
26
description = "SoapySDR plugin for remote access to SDRs";
25
27
license = licenses.boost;
26
28
maintainers = with maintainers; [ markuskowa ];
27
27
-
platforms = platforms.linux;
29
29
+
platforms = platforms.unix;
28
30
};
29
31
}
+4
-2
pkgs/applications/radio/soapyuhd/default.nix
···
1
1
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
2
2
, uhd, boost, soapysdr
3
3
+
, libobjc, IOKit, Security
3
4
} :
4
5
5
6
stdenv.mkDerivation rec {
···
14
15
};
15
16
16
17
nativeBuildInputs = [ cmake pkg-config ];
17
17
-
buildInputs = [ uhd boost soapysdr ];
18
18
+
buildInputs = [ uhd boost soapysdr ]
19
19
+
++ lib.optionals stdenv.isDarwin [ libobjc IOKit Security ];
18
20
19
21
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
20
22
···
27
29
description = "SoapySDR plugin for UHD devices";
28
30
license = licenses.gpl3Only;
29
31
maintainers = with maintainers; [ markuskowa ];
30
30
-
platforms = platforms.linux;
32
32
+
platforms = platforms.unix;
31
33
};
32
34
}
+22
-6
pkgs/top-level/all-packages.nix
···
8805
8805
8806
8806
lidarr = callPackage ../servers/lidarr { };
8807
8807
8808
8808
-
limesuite = callPackage ../applications/radio/limesuite { };
8808
8808
+
limesuite = callPackage ../applications/radio/limesuite {
8809
8809
+
inherit (darwin.apple_sdk.frameworks) GLUT;
8810
8810
+
};
8809
8811
8810
8812
limesurvey = callPackage ../servers/limesurvey { };
8811
8813
···
21912
21914
21913
21915
snowcrash = callPackage ../tools/security/snowcrash { };
21914
21916
21915
21915
-
soapyairspy = callPackage ../applications/radio/soapyairspy { };
21917
21917
+
soapyairspy = callPackage ../applications/radio/soapyairspy {
21918
21918
+
inherit (darwin) libobjc;
21919
21919
+
inherit (darwin.apple_sdk.frameworks) IOKit Security;
21920
21920
+
};
21916
21921
21917
21917
-
soapyaudio = callPackage ../applications/radio/soapyaudio { };
21922
21922
+
soapyaudio = callPackage ../applications/radio/soapyaudio {
21923
21923
+
inherit (darwin.apple_sdk.frameworks) Accelerate CoreAudio;
21924
21924
+
};
21918
21925
21919
21919
-
soapybladerf = callPackage ../applications/radio/soapybladerf { };
21926
21926
+
soapybladerf = callPackage ../applications/radio/soapybladerf {
21927
21927
+
inherit (darwin) libobjc;
21928
21928
+
inherit (darwin.apple_sdk.frameworks) IOKit Security;
21929
21929
+
};
21920
21930
21921
21921
-
soapyhackrf = callPackage ../applications/radio/soapyhackrf { };
21931
21931
+
soapyhackrf = callPackage ../applications/radio/soapyhackrf {
21932
21932
+
inherit (darwin) libobjc;
21933
21933
+
inherit (darwin.apple_sdk.frameworks) IOKit Security;
21934
21934
+
};
21922
21935
21923
21936
soapysdr = callPackage ../applications/radio/soapysdr { };
21924
21937
···
21944
21957
inherit (darwin.apple_sdk.frameworks) IOKit Security;
21945
21958
};
21946
21959
21947
21947
-
soapyuhd = callPackage ../applications/radio/soapyuhd { };
21960
21960
+
soapyuhd = callPackage ../applications/radio/soapyuhd {
21961
21961
+
inherit (darwin) libobjc;
21962
21962
+
inherit (darwin.apple_sdk.frameworks) IOKit Security;
21963
21963
+
};
21948
21964
21949
21965
social-engineer-toolkit = callPackage ../tools/security/social-engineer-toolkit { };
21950
21966