mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "wavrsocvt";
|
|
version = "1.0.2.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://bricxcc.sourceforge.net/wavrsocvt.tgz";
|
|
sha256 = "15qlvdfwbiclljj7075ycm78yzqahzrgl4ky8pymix5179acm05h";
|
|
};
|
|
|
|
unpackPhase = ''
|
|
tar -zxf $src
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp wavrsocvt $out/bin
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Convert .wav files into sound files for Lego NXT brick";
|
|
mainProgram = "wavrsocvt";
|
|
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.
|
|
'';
|
|
homepage = "https://bricxcc.sourceforge.net/";
|
|
license = licenses.mpl11;
|
|
maintainers = with maintainers; [ leenaars ];
|
|
platforms = with platforms; linux;
|
|
};
|
|
}
|