pkgs/tools: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-15 17:12:36 +07:00
parent 94f3683935
commit 8c5d37129f
916 changed files with 2510 additions and 2510 deletions
+6 -6
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, glib, which }:
{ lib, stdenv, fetchurl, pkgconfig, glib, which }:
stdenv.mkDerivation rec {
name = "nbd-3.20";
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
};
buildInputs = [ glib ]
++ stdenv.lib.optional (stdenv ? glibc) stdenv.glibc.linuxHeaders;
++ lib.optional (stdenv ? glibc) stdenv.glibc.linuxHeaders;
nativeBuildInputs = [ pkgconfig which ];
@@ -23,13 +23,13 @@ stdenv.mkDerivation rec {
# Glib calls `clock_gettime', which is in librt. Linking that library
# here ensures that a proper rpath is added to the executable so that
# it can be loaded at run-time.
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lrt -lpthread";
NIX_LDFLAGS = lib.optionalString stdenv.isLinux "-lrt -lpthread";
meta = {
homepage = "http://nbd.sourceforge.net";
description = "Map arbitrary files as block devices over the network";
license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.peti ];
platforms = stdenv.lib.platforms.linux;
license = lib.licenses.gpl2;
maintainers = [ lib.maintainers.peti ];
platforms = lib.platforms.linux;
};
}