about summary refs log tree commit diff
path: root/pkgs/applications/radio
diff options
context:
space:
mode:
authorJames Earl Douglas <james@earldouglas.com>2022-05-21 05:48:04 -0700
committerJames Earl Douglas <james@earldouglas.com>2022-05-21 14:05:14 -0700
commit949f4a227b5076751140c3df094dd63bc0b08f3f (patch)
tree1f7572131d0f0ab0e5364ac593d00d069984b037 /pkgs/applications/radio
parentc0fd7af59a465db0ac393c60969a0a1857b52ceb (diff)
downloadnixlib-949f4a227b5076751140c3df094dd63bc0b08f3f.tar
nixlib-949f4a227b5076751140c3df094dd63bc0b08f3f.tar.gz
nixlib-949f4a227b5076751140c3df094dd63bc0b08f3f.tar.bz2
nixlib-949f4a227b5076751140c3df094dd63bc0b08f3f.tar.lz
nixlib-949f4a227b5076751140c3df094dd63bc0b08f3f.tar.xz
nixlib-949f4a227b5076751140c3df094dd63bc0b08f3f.tar.zst
nixlib-949f4a227b5076751140c3df094dd63bc0b08f3f.zip
rscw: init at 0.1e
Diffstat (limited to 'pkgs/applications/radio')
-rw-r--r--pkgs/applications/radio/rscw/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/radio/rscw/default.nix b/pkgs/applications/radio/rscw/default.nix
new file mode 100644
index 000000000000..3c42b3b81330
--- /dev/null
+++ b/pkgs/applications/radio/rscw/default.nix
@@ -0,0 +1,37 @@
+{ lib
+, stdenv
+, fetchurl
+, fftw
+, gtk2
+, pkg-config
+}:
+
+stdenv.mkDerivation rec {
+  pname = "rscw";
+  version = "0.1e";
+
+  src = fetchurl {
+    url = "https://www.pa3fwm.nl/software/${pname}/${pname}-${version}.tgz";
+    sha256 = "1hxwxmqc5jinr14ya1idigqigc8qhy1vimzcwy2vmwdjay2sqik2";
+  };
+
+  setSourceRoot = "sourceRoot=`pwd`";
+
+  nativeBuildInputs = [ pkg-config ];
+  buildInputs = [ gtk2 fftw ];
+
+  installPhase = ''
+    install -D -m 0755 noisycw $out/bin/noisycw
+    install -D -m 0755 rs12tlmdec $out/bin/rs12tlmdec
+    install -D -m 0755 rscw $out/bin/rscw
+    install -D -m 0755 rscwx $out/bin/rscwx
+  '';
+
+  meta = with lib; {
+    description = "Receive CW through the soundcard";
+    homepage = "https://www.pa3fwm.nl/software/rscw/";
+    license = licenses.gpl2;
+    maintainers = with maintainers; [ earldouglas ];
+    platforms = platforms.linux;
+  };
+}