···11+{stdenv, fetchurl, libpulseaudio, alsaLib , pkgconfig, qt5}:
22+stdenv.mkDerivation rec {
33+ name = "unixcw-${version}";
44+ version = "3.5.1";
55+ src = fetchurl {
66+ url = "mirror://sourceforge/unixcw/unixcw_${version}.orig.tar.gz";
77+ sha256 ="5f3aacd8a26e16e6eff437c7ae1e9b389956fb137eeb3de24670ce05de479e7a";
88+ };
99+ patches = [
1010+ ./remove-use-of-dlopen.patch
1111+ ];
1212+ buildInputs = [libpulseaudio alsaLib pkgconfig qt5.qtbase];
1313+ CFLAGS ="-lasound -lpulse-simple";
1414+1515+ meta = with stdenv.lib; {
1616+ description = "sound characters as Morse code on the soundcard or console speaker";
1717+ longDescription = ''
1818+ unixcw is a project providing libcw library and a set of programs
1919+ using the library: cw, cwgen, cwcp and xcwcp.
2020+ The programs are intended for people who want to learn receiving
2121+ and sending Morse code.
2222+ unixcw is developed and tested primarily on GNU/Linux system.
2323+2424+ cw reads characters from an input file, or from standard input,
2525+ and sounds each valid character as Morse code on either the system sound card,
2626+ or the system console speaker.
2727+ After it sounds a character, cw echoes it to standard output.
2828+ The input stream can contain embedded command strings.
2929+ These change the parameters used when sounding the Morse code.
3030+ cw reports any errors in embedded commands
3131+ '';
3232+ homepage = "http://unixcw.sourceforge.net";
3333+ maintainers = [ maintainers.mafo ];
3434+ license = licenses.gpl2;
3535+ platforms=platforms.linux;
3636+ };
3737+}