summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/radio/suscan
diff options
context:
space:
mode:
authorGrigory Shipunov <blame@oxapentane.com>2022-10-08 02:29:07 +0200
committerGrigory Shipunov <blame@oxapentane.com>2022-10-08 02:29:07 +0200
commit49584052fedc12ce54c988402978aced61acfbf0 (patch)
tree09f1740edefa41b2b4f88ba053e4d7dc07d148a5 /pkgs/applications/radio/suscan
parente53592866269bf2bddc2bd13e82759e432b9776a (diff)
suscan: init at unstable-2022-07-05
Diffstat (limited to 'pkgs/applications/radio/suscan')
-rw-r--r--pkgs/applications/radio/suscan/default.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/applications/radio/suscan/default.nix b/pkgs/applications/radio/suscan/default.nix
new file mode 100644
index 000000000000..d2b13784a72c
--- /dev/null
+++ b/pkgs/applications/radio/suscan/default.nix
@@ -0,0 +1,50 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, cmake
+, pkg-config
+, fftwSinglePrec
+, libsndfile
+, sigutils
+, soapysdr-with-plugins
+, libxml2
+, volk
+}:
+
+stdenv.mkDerivation rec {
+ pname = "suscan";
+ version = "unstable-2022-07-05";
+
+ src = fetchFromGitHub {
+ owner = "BatchDrake";
+ repo = "suscan";
+ rev = "37dad542b97aff24654f0bb80fb8e85af7cb84ab";
+ sha256 = "sha256-h1ogtYjkqiHb1/NAJfJ0HQIvGnZM2K/PSP5nqLXUf9M=";
+ };
+
+ postPatch = ''
+ sed -i 's/fftw3 >= 3.0/fftw3f >= 3.0/' suscan.pc.in
+ '';
+
+ nativeBuildInputs = [
+ cmake
+ pkg-config
+ ];
+
+ buildInputs = [
+ fftwSinglePrec
+ libsndfile
+ sigutils
+ soapysdr-with-plugins
+ libxml2
+ volk
+ ];
+
+ meta = with lib; {
+ description = "Channel scanner based on sigutils library";
+ homepage = "https://github.com/BatchDrake/suscan";
+ license = licenses.gpl3;
+ platforms = platforms.all;
+ maintainers = with maintainers; [ polygon oxapentane ];
+ };
+}