mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:13:33 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "wavrsocvt-1.0.2.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://bricxcc.sourceforge.net/wavrsocvt.tgz";
|
|
sha256 = "15qlvdfwbiclljj7075ycm78yzqahzrgl4ky8pymix5179acm05h";
|
|
};
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
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";
|
|
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 = "http://bricxcc.sourceforge.net/";
|
|
license = licenses.mpl11;
|
|
maintainers = with maintainers; [ leenaars ];
|
|
platforms = with platforms; linux;
|
|
};
|
|
}
|