Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
37 lines
851 B
Nix
37 lines
851 B
Nix
{ 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";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
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;
|
|
};
|
|
}
|