diff options
author | Profpatsch <mail@profpatsch.de> | 2021-01-10 12:03:59 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2021-01-10 17:44:59 +0100 |
commit | 2497553b233694b20b07f2fc85b3b3f7bed53a39 (patch) | |
tree | aa0a7d7d14a3a1255e78e4342f2b0d7dd7114d2d /pkgs/top-level/haxe-packages.nix | |
parent | 329e70e0cd7c0de4772eec0dbd6b36bafd21adba (diff) | |
download | nixpkgs-2497553b233694b20b07f2fc85b3b3f7bed53a39.tar nixpkgs-2497553b233694b20b07f2fc85b3b3f7bed53a39.tar.gz nixpkgs-2497553b233694b20b07f2fc85b3b3f7bed53a39.tar.bz2 nixpkgs-2497553b233694b20b07f2fc85b3b3f7bed53a39.tar.lz nixpkgs-2497553b233694b20b07f2fc85b3b3f7bed53a39.tar.xz nixpkgs-2497553b233694b20b07f2fc85b3b3f7bed53a39.tar.zst nixpkgs-2497553b233694b20b07f2fc85b3b3f7bed53a39.zip |
toplevel: stdenv.lib -> lib
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
Diffstat (limited to 'pkgs/top-level/haxe-packages.nix')
-rw-r--r-- | pkgs/top-level/haxe-packages.nix | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/top-level/haxe-packages.nix b/pkgs/top-level/haxe-packages.nix index a3b4fd33256..66faa6f7cdb 100644 --- a/pkgs/top-level/haxe-packages.nix +++ b/pkgs/top-level/haxe-packages.nix @@ -1,10 +1,10 @@ -{ stdenv, fetchzip, fetchFromGitHub, haxe, neko, jdk, mono }: +{ stdenv, lib, fetchzip, fetchFromGitHub, haxe, neko, jdk, mono }: let self = haxePackages; haxePackages = with self; { - withCommas = stdenv.lib.replaceChars ["."] [","]; + withCommas = lib.replaceChars ["."] [","]; # simulate "haxelib dev $libname ." simulateHaxelibDev = libname: '' @@ -53,8 +53,8 @@ let meta = { homepage = "http://lib.haxe.org/p/${libname}"; - license = stdenv.lib.licenses.bsd2; - platforms = stdenv.lib.platforms.all; + license = lib.licenses.bsd2; + platforms = lib.platforms.all; description = throw "please write meta.description"; } // attrs.meta; }); @@ -67,7 +67,7 @@ let for f in $out/lib/haxe/${withCommas libname}/${withCommas version}/{,project/libs/nekoapi/}bin/Linux{,64}/*; do chmod +w "$f" patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) "$f" || true - patchelf --set-rpath ${ stdenv.lib.makeLibraryPath [ stdenv.cc.cc ] } "$f" || true + patchelf --set-rpath ${ lib.makeLibraryPath [ stdenv.cc.cc ] } "$f" || true done ''; meta.description = "Runtime support library for the Haxe C++ backend"; @@ -110,8 +110,8 @@ let installPhase = installLibHaxe { inherit libname version; }; meta = { homepage = "http://lib.haxe.org/p/${libname}"; - license = stdenv.lib.licenses.bsd2; - platforms = stdenv.lib.platforms.all; + license = lib.licenses.bsd2; + platforms = lib.platforms.all; description = "Extern definitions for node.js 6.9"; }; }; |