summary refs log tree commit diff
path: root/pkgs/development/libraries/glew
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/glew
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/glew')
-rw-r--r--pkgs/development/libraries/glew/1.10.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkgs/development/libraries/glew/1.10.nix b/pkgs/development/libraries/glew/1.10.nix
index a51b1060b8a..8fa77013e10 100644
--- a/pkgs/development/libraries/glew/1.10.nix
+++ b/pkgs/development/libraries/glew/1.10.nix
@@ -2,8 +2,6 @@
 , AGL, OpenGL
 }:
 
-with lib;
-
 stdenv.mkDerivation rec {
   pname = "glew";
   version = "1.10.0";
@@ -20,7 +18,7 @@ stdenv.mkDerivation rec {
 
   patchPhase = ''
     sed -i 's|lib64|lib|' config/Makefile.linux
-    ${optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
+    ${lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
     sed -i -e 's/\(INSTALL.*\)-s/\1/' Makefile
     ''}
   '';