2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2016-08-29 21:05:29 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "wavrsocvt-1.0.2.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://bricxcc.sourceforge.net/wavrsocvt.tgz";
|
|
|
|
sha256 = "15qlvdfwbiclljj7075ycm78yzqahzrgl4ky8pymix5179acm05h";
|
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
2021-01-01 13:46:40 +00:00
|
|
|
tar -zxf $src
|
2016-08-29 21:05:29 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp wavrsocvt $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-08-29 21:05:29 +01:00
|
|
|
description = "Convert .wav files into sound files for Lego NXT brick";
|
|
|
|
longDescription = ''
|
|
|
|
wavrsocvt is a command-line utility which can be used from a
|
|
|
|
terminal window or script to convert .wav files into sound
|
|
|
|
files for the NXT brick (.rso files). It can also convert the
|
|
|
|
other direction (i.e., .rso -> .wav). It can produce RSO files
|
|
|
|
with a sample rate between 2000 and 16000 (the min/max range of
|
|
|
|
supported sample rates in the standard NXT firmware).
|
|
|
|
You can then upload these with e.g. nxt-python.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://bricxcc.sourceforge.net/";
|
2016-08-29 21:05:29 +01:00
|
|
|
license = licenses.mpl11;
|
|
|
|
maintainers = with maintainers; [ leenaars ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|