nixpkgs/pkgs/applications/radio/unixcw/default.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

52 lines
1.5 KiB
Nix

{
lib,
mkDerivation,
fetchurl,
libpulseaudio,
alsa-lib,
pkg-config,
qtbase,
}:
mkDerivation rec {
pname = "unixcw";
version = "3.5.1";
src = fetchurl {
url = "mirror://sourceforge/unixcw/unixcw_${version}.orig.tar.gz";
sha256 = "5f3aacd8a26e16e6eff437c7ae1e9b389956fb137eeb3de24670ce05de479e7a";
};
patches = [
./remove-use-of-dlopen.patch
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libpulseaudio
alsa-lib
qtbase
];
CFLAGS = "-lasound -lpulse-simple";
meta = with lib; {
description = "sound characters as Morse code on the soundcard or console speaker";
longDescription = ''
unixcw is a project providing libcw library and a set of programs
using the library: cw, cwgen, cwcp and xcwcp.
The programs are intended for people who want to learn receiving
and sending Morse code.
unixcw is developed and tested primarily on GNU/Linux system.
cw reads characters from an input file, or from standard input,
and sounds each valid character as Morse code on either the system sound card,
or the system console speaker.
After it sounds a character, cw echoes it to standard output.
The input stream can contain embedded command strings.
These change the parameters used when sounding the Morse code.
cw reports any errors in embedded commands
'';
homepage = "https://unixcw.sourceforge.net";
maintainers = [ maintainers.mafo ];
license = licenses.gpl2;
platforms = platforms.linux;
};
}