pkgs/development/interpreters: stdenv.lib -> lib
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ cargo, fetchFromGitHub, makeWrapper, pkg-config, rustPlatform, stdenv, gcc, Security, cmake }:
|
||||
{ cargo, fetchFromGitHub, makeWrapper, pkg-config, rustPlatform, lib, stdenv, gcc, Security, cmake }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "evcxr";
|
||||
@@ -16,11 +16,11 @@ rustPlatform.buildRustPackage rec {
|
||||
RUST_SRC_PATH = "${rustPlatform.rustLibSrc}";
|
||||
|
||||
nativeBuildInputs = [ pkg-config makeWrapper cmake ];
|
||||
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
|
||||
buildInputs = lib.optional stdenv.isDarwin Security;
|
||||
postInstall = let
|
||||
wrap = exe: ''
|
||||
wrapProgram $out/bin/${exe} \
|
||||
--prefix PATH : ${stdenv.lib.makeBinPath [ cargo gcc ]} \
|
||||
--prefix PATH : ${lib.makeBinPath [ cargo gcc ]} \
|
||||
--set-default RUST_SRC_PATH "$RUST_SRC_PATH"
|
||||
'';
|
||||
in ''
|
||||
@@ -29,7 +29,7 @@ rustPlatform.buildRustPackage rec {
|
||||
rm $out/bin/testing_runtime
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "An evaluation context for Rust";
|
||||
homepage = "https://github.com/google/evcxr";
|
||||
license = licenses.asl20;
|
||||
|
||||
Reference in New Issue
Block a user