···1+{stdenv, fetchurl, libpulseaudio, alsaLib , pkgconfig, qt5}:
2+stdenv.mkDerivation rec {
3+ name = "unixcw-${version}";
4+ version = "3.5.1";
5+ src = fetchurl {
6+ url = "mirror://sourceforge/unixcw/unixcw_${version}.orig.tar.gz";
7+ sha256 ="5f3aacd8a26e16e6eff437c7ae1e9b389956fb137eeb3de24670ce05de479e7a";
8+ };
9+ patches = [
10+ ./remove-use-of-dlopen.patch
11+ ];
12+ buildInputs = [libpulseaudio alsaLib pkgconfig qt5.qtbase];
13+ CFLAGS ="-lasound -lpulse-simple";
14+15+ meta = with stdenv.lib; {
16+ description = "sound characters as Morse code on the soundcard or console speaker";
17+ longDescription = ''
18+ unixcw is a project providing libcw library and a set of programs
19+ using the library: cw, cwgen, cwcp and xcwcp.
20+ The programs are intended for people who want to learn receiving
21+ and sending Morse code.
22+ unixcw is developed and tested primarily on GNU/Linux system.
23+24+ cw reads characters from an input file, or from standard input,
25+ and sounds each valid character as Morse code on either the system sound card,
26+ or the system console speaker.
27+ After it sounds a character, cw echoes it to standard output.
28+ The input stream can contain embedded command strings.
29+ These change the parameters used when sounding the Morse code.
30+ cw reports any errors in embedded commands
31+ '';
32+ homepage = "http://unixcw.sourceforge.net";
33+ maintainers = [ maintainers.mafo ];
34+ license = licenses.gpl2;
35+ platforms=platforms.linux;
36+ };
37+}