nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 fftw,
6 gtk2,
7 pkg-config,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "rscw";
12 version = "0.1e";
13
14 src = fetchurl {
15 url = "https://www.pa3fwm.nl/software/${pname}/${pname}-${version}.tgz";
16 sha256 = "1hxwxmqc5jinr14ya1idigqigc8qhy1vimzcwy2vmwdjay2sqik2";
17 };
18
19 sourceRoot = ".";
20
21 nativeBuildInputs = [ pkg-config ];
22 buildInputs = [
23 gtk2
24 fftw
25 ];
26
27 installPhase = ''
28 install -D -m 0755 noisycw $out/bin/noisycw
29 install -D -m 0755 rs12tlmdec $out/bin/rs12tlmdec
30 install -D -m 0755 rscw $out/bin/rscw
31 install -D -m 0755 rscwx $out/bin/rscwx
32 '';
33
34 meta = with lib; {
35 description = "Receive CW through the soundcard";
36 homepage = "https://www.pa3fwm.nl/software/rscw/";
37 license = licenses.gpl2;
38 maintainers = with maintainers; [ earldouglas ];
39 platforms = platforms.linux;
40 };
41}