2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "wavrsocvt";
|
|
|
|
version = "1.0.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-02-02 18:25:31 +00:00
|
|
|
url = "https://bricxcc.sourceforge.net/wavrsocvt.tgz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "15qlvdfwbiclljj7075ycm78yzqahzrgl4ky8pymix5179acm05h";
|
|
|
|
};
|
|
|
|
|
|
|
|
unpackPhase = ''
|
2021-01-15 22:18:51 +00:00
|
|
|
tar -zxf $src
|
2021-12-06 16:07:01 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp wavrsocvt $out/bin
|
2021-12-06 16:07:01 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Convert .wav files into sound files for Lego NXT brick";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "wavrsocvt";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
2021-12-06 16:07:01 +00:00
|
|
|
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-24 23:36:52 +00:00
|
|
|
'';
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://bricxcc.sourceforge.net/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mpl11;
|
|
|
|
maintainers = with maintainers; [ leenaars ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|