summary refs log tree commit diff
path: root/pkgs/development/libraries/lame
diff options
context:
space:
mode:
authorShawn8901 <shawn8901@googlemail.com>2023-01-26 18:31:02 +0100
committerShawn8901 <shawn8901@googlemail.com>2023-01-26 18:31:02 +0100
commita59dda942cbe3d40c1ae424d4d8a6db715cac0d5 (patch)
treec4d7e17a260da0a29c9690de071787d3ca62b3d2 /pkgs/development/libraries/lame
parentaedc95590cdc13e99441684b7aca81cdbfa542ad (diff)
downloadnixpkgs-a59dda942cbe3d40c1ae424d4d8a6db715cac0d5.tar
nixpkgs-a59dda942cbe3d40c1ae424d4d8a6db715cac0d5.tar.gz
nixpkgs-a59dda942cbe3d40c1ae424d4d8a6db715cac0d5.tar.bz2
nixpkgs-a59dda942cbe3d40c1ae424d4d8a6db715cac0d5.tar.lz
nixpkgs-a59dda942cbe3d40c1ae424d4d8a6db715cac0d5.tar.xz
nixpkgs-a59dda942cbe3d40c1ae424d4d8a6db715cac0d5.tar.zst
nixpkgs-a59dda942cbe3d40c1ae424d4d8a6db715cac0d5.zip
treewide: remove global with lib; statements in pkgs/development
Diffstat (limited to 'pkgs/development/libraries/lame')
-rw-r--r--pkgs/development/libraries/lame/default.nix21
1 files changed, 10 insertions, 11 deletions
diff --git a/pkgs/development/libraries/lame/default.nix b/pkgs/development/libraries/lame/default.nix
index 674defc42e2..506be919322 100644
--- a/pkgs/development/libraries/lame/default.nix
+++ b/pkgs/development/libraries/lame/default.nix
@@ -11,7 +11,6 @@
 , debugSupport ? false # Debugging (disables optimizations)
 }:
 
-with lib;
 stdenv.mkDerivation rec {
   pname = "lame";
   version = "3.100";
@@ -25,24 +24,24 @@ stdenv.mkDerivation rec {
   outputMan = "out";
 
   nativeBuildInputs = [ ]
-    ++ optional nasmSupport nasm;
+    ++ lib.optional nasmSupport nasm;
 
   buildInputs = [ ]
     #++ optional efenceSupport libefence
     #++ optional mp3xSupport gtk1
-    ++ optional sndfileFileIOSupport libsndfile;
+    ++ lib.optional sndfileFileIOSupport libsndfile;
 
   configureFlags = [
-    (enableFeature nasmSupport "nasm")
-    (enableFeature cpmlSupport "cpml")
+    (lib.enableFeature nasmSupport "nasm")
+    (lib.enableFeature cpmlSupport "cpml")
     #(enableFeature efenceSupport "efence")
     (if sndfileFileIOSupport then "--with-fileio=sndfile" else "--with-fileio=lame")
-    (enableFeature analyzerHooksSupport "analyzer-hooks")
-    (enableFeature decoderSupport "decoder")
-    (enableFeature frontendSupport "frontend")
-    (enableFeature frontendSupport "dynamic-frontends")
+    (lib.enableFeature analyzerHooksSupport "analyzer-hooks")
+    (lib.enableFeature decoderSupport "decoder")
+    (lib.enableFeature frontendSupport "frontend")
+    (lib.enableFeature frontendSupport "dynamic-frontends")
     #(enableFeature mp3xSupport "mp3x")
-    (enableFeature mp3rtpSupport "mp3rtp")
+    (lib.enableFeature mp3rtpSupport "mp3rtp")
     (if debugSupport then "--enable-debug=alot" else "")
   ];
 
@@ -52,7 +51,7 @@ stdenv.mkDerivation rec {
     sed -i '/lame_init_old/d' include/libmp3lame.sym
   '';
 
-  meta = {
+  meta = with lib; {
     description = "A high quality MPEG Audio Layer III (MP3) encoder";
     homepage    = "http://lame.sourceforge.net";
     license     = licenses.lgpl2;