···1+{ stdenv, fetchurl }:
2+3+stdenv.mkDerivation {
4+ name = "wavrsocvt-1.0.2.0";
5+6+ src = fetchurl {
7+ url = "http://bricxcc.sourceforge.net/wavrsocvt.tgz";
8+ sha256 = "15qlvdfwbiclljj7075ycm78yzqahzrgl4ky8pymix5179acm05h";
9+ };
10+11+ phases = [ "unpackPhase" "installPhase" ];
12+13+ unpackPhase = ''
14+ tar -zxf $src
15+ '';
16+17+ installPhase = ''
18+ mkdir -p $out/bin
19+ cp wavrsocvt $out/bin
20+ '';
21+22+ meta = with stdenv.lib; {
23+ description = "Convert .wav files into sound files for Lego NXT brick";
24+ longDescription = ''
25+ wavrsocvt is a command-line utility which can be used from a
26+ terminal window or script to convert .wav files into sound
27+ files for the NXT brick (.rso files). It can also convert the
28+ other direction (i.e., .rso -> .wav). It can produce RSO files
29+ with a sample rate between 2000 and 16000 (the min/max range of
30+ supported sample rates in the standard NXT firmware).
31+ You can then upload these with e.g. nxt-python.
32+ '';
33+ homepage = http://bricxcc.sourceforge.net/;
34+ license = licenses.mpl11;
35+ maintainers = with maintainers; [ leenaars ];
36+ platforms = with platforms; linux;
37+ };
38+}