mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 05:14:45 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
39 lines
1.1 KiB
Nix
39 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;
|
|
};
|
|
}
|