mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03: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
38 lines
1.0 KiB
Nix
38 lines
1.0 KiB
Nix
{ lib, stdenv, fetchurl, unzip, lv2 }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "molot-lite";
|
|
version = "unstable-2014-04-23";
|
|
|
|
src = fetchurl {
|
|
# fetchzip does not accept urls that do not end with .zip.
|
|
url = "https://sourceforge.net/p/molot/code/ci/c4eddc426f8d5821e8ebcf1d67265365e4c8c52a/tree/molot_src.zip?format=raw";
|
|
sha256 = "1c47dwfgrmn9459px8s5zikcqyr0777v226qzcxlr6azlcjwr51b";
|
|
};
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
buildInputs = [ lv2 ];
|
|
|
|
unpackPhase = ''
|
|
unzip $src
|
|
'';
|
|
|
|
buildPhase = ''
|
|
make -C Molot_Mono_Lite
|
|
make -C Molot_Stereo_Lite
|
|
'';
|
|
|
|
installPhase = ''
|
|
make install INSTALL_DIR=$out/lib/lv2 -C Molot_Mono_Lite
|
|
make install INSTALL_DIR=$out/lib/lv2 -C Molot_Stereo_Lite
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Stereo and mono audio signal dynamic range compressor in LV2 format";
|
|
homepage = "https://sourceforge.net/projects/molot/";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = [ maintainers.magnetophon ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|