Merge pull request #336 from nix-community/no-stdenv-lib

don't use deprecated stdenv.lib
This commit is contained in:
Jörg Thalheim 2021-03-04 10:29:32 +00:00 committed by GitHub
commit a6b4cf695e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -187,7 +187,7 @@ Each repository should return a set of Nix derivations:
In this example `hello-nur` would be a directory containing a `default.nix`:
```nix
{ stdenv, fetchurl }:
{ stdenv, fetchurl, lib }:
stdenv.mkDerivation rec {
pname = "hello";
@ -205,7 +205,7 @@ stdenv.mkDerivation rec {
# fails due to patch
doCheck = false;
meta = with stdenv.lib; {
meta = with lib; {
description = "A program that produces a familiar, friendly greeting";
longDescription = ''
GNU Hello is a program that prints "Hello, world!" when you run it.

View file

@ -9,7 +9,7 @@ python3Packages.buildPythonApplication {
doCheck = true;
makeWrapperArgs = [
"--prefix" "PATH" ":" "${stdenv.lib.makeBinPath [ nix-prefetch-git git nix ]}"
"--prefix" "PATH" ":" "${pkgs.lib.makeBinPath [ nix-prefetch-git git nix ]}"
"--set" "LOCALE_ARCHIVE" "${glibcLocales}/lib/locale/locale-archive"
];
}