treewide: stdenv.lib -> lib
This commit is contained in:
parent
02ee14b9d5
commit
36c91cea1d
|
@ -8,7 +8,7 @@
|
||||||
import ./make-test-python.nix ({ pkgs, ... }:
|
import ./make-test-python.nix ({ pkgs, ... }:
|
||||||
{
|
{
|
||||||
name = "vault-postgresql";
|
name = "vault-postgresql";
|
||||||
meta = with pkgs.stdenv.lib.maintainers; {
|
meta = with pkgs.lib.maintainers; {
|
||||||
maintainers = [ lnl7 roberth ];
|
maintainers = [ lnl7 roberth ];
|
||||||
};
|
};
|
||||||
machine = { lib, pkgs, ... }: {
|
machine = { lib, pkgs, ... }: {
|
||||||
|
|
|
@ -229,26 +229,26 @@ class SPECTemplate(object):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def meta(self):
|
def meta(self):
|
||||||
out = ' meta = {\n'
|
out = ' meta = with lib; {\n'
|
||||||
out += ' homepage = ' + self.spec.sourceHeader['url'] + ';\n'
|
out += ' homepage = ' + self.spec.sourceHeader['url'] + ';\n'
|
||||||
out += ' description = "' + self.spec.sourceHeader['summary'] + '";\n'
|
out += ' description = "' + self.spec.sourceHeader['summary'] + '";\n'
|
||||||
out += ' license = stdenv.lib.licenses.' + self.spec.sourceHeader['license'] + ';\n'
|
out += ' license = lib.licenses.' + self.spec.sourceHeader['license'] + ';\n'
|
||||||
out += ' platforms = [ "i686-linux" "x86_64-linux" ];\n'
|
out += ' platforms = [ "i686-linux" "x86_64-linux" ];\n'
|
||||||
out += ' maintainers = with stdenv.lib.maintainers; [ ' + self.maintainer + ' ];\n'
|
out += ' maintainers = with lib.maintainers; [ ' + self.maintainer + ' ];\n'
|
||||||
out += ' };\n'
|
out += ' };\n'
|
||||||
out += '}\n'
|
out += '}\n'
|
||||||
return out
|
return out
|
||||||
|
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
head = '{stdenv, fetchurl, ' + ', '.join(self.getBuildInputs("ALL")) + '}:\n\n'
|
head = '{lib, stdenv, fetchurl, ' + ', '.join(self.getBuildInputs("ALL")) + '}:\n\n'
|
||||||
head += 'stdenv.mkDerivation {\n'
|
head += 'stdenv.mkDerivation {\n'
|
||||||
body = [ self.name, self.src, self.patch, self.buildInputs, self.configure, self.build, self.ocamlExtra, self.install, self.meta ]
|
body = [ self.name, self.src, self.patch, self.buildInputs, self.configure, self.build, self.ocamlExtra, self.install, self.meta ]
|
||||||
return head + '\n'.join(body)
|
return head + '\n'.join(body)
|
||||||
|
|
||||||
|
|
||||||
def getTemplate(self):
|
def getTemplate(self):
|
||||||
head = '{stdenv, buildRoot, fetchurl, ' + ', '.join(self.getBuildInputs("ALL")) + '}:\n\n'
|
head = '{lib, stdenv, buildRoot, fetchurl, ' + ', '.join(self.getBuildInputs("ALL")) + '}:\n\n'
|
||||||
head += 'let\n'
|
head += 'let\n'
|
||||||
head += ' buildRootInput = (import "${buildRoot}/usr/share/buildroot/buildRootInput.nix") { fetchurl=fetchurl; buildRoot=buildRoot; };\n'
|
head += ' buildRootInput = (import "${buildRoot}/usr/share/buildroot/buildRootInput.nix") { fetchurl=fetchurl; buildRoot=buildRoot; };\n'
|
||||||
head += 'in\n\n'
|
head += 'in\n\n'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenvNoLibs, buildPackages
|
{ lib, stdenvNoLibs, buildPackages
|
||||||
, gcc, glibc
|
, gcc, glibc
|
||||||
, libiberty
|
, libiberty
|
||||||
}:
|
}:
|
||||||
|
@ -128,7 +128,7 @@ stdenvNoLibs.mkDerivation rec {
|
||||||
"--disable-vtable-verify"
|
"--disable-vtable-verify"
|
||||||
|
|
||||||
"--with-system-zlib"
|
"--with-system-zlib"
|
||||||
] ++ stdenvNoLibs.lib.optional (stdenvNoLibs.hostPlatform.libc == "glibc")
|
] ++ lib.optional (stdenvNoLibs.hostPlatform.libc == "glibc")
|
||||||
"--with-glibc-version=${glibc.version}";
|
"--with-glibc-version=${glibc.version}";
|
||||||
|
|
||||||
configurePlatforms = [ "build" "host" ];
|
configurePlatforms = [ "build" "host" ];
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{stdenv, fetchurl, texinfo, texLive, perl}:
|
{lib, stdenv, fetchurl, texinfo, texLive, perl}:
|
||||||
let
|
let
|
||||||
s = # Generated upstream information
|
s = # Generated upstream information
|
||||||
rec {
|
rec {
|
||||||
|
@ -31,11 +31,11 @@ stdenv.mkDerivation {
|
||||||
cp -r doc/* "$out"/share/doc/asdf/
|
cp -r doc/* "$out"/share/doc/asdf/
|
||||||
ln -s "$out"/lib/common-lisp/{asdf/uiop,uiop}
|
ln -s "$out"/lib/common-lisp/{asdf/uiop,uiop}
|
||||||
'';
|
'';
|
||||||
meta = {
|
meta = with lib; {
|
||||||
inherit (s) version;
|
inherit (s) version;
|
||||||
description = "Standard software-system definition library for Common Lisp";
|
description = "Standard software-system definition library for Common Lisp";
|
||||||
license = stdenv.lib.licenses.mit ;
|
license = licenses.mit;
|
||||||
maintainers = [stdenv.lib.maintainers.raskin];
|
maintainers = [maintainers.raskin];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{stdenv, fetchurl, texinfo, texLive, perl}:
|
{lib, stdenv, fetchurl, texinfo, texLive, perl}:
|
||||||
let
|
let
|
||||||
s = # Generated upstream information
|
s = # Generated upstream information
|
||||||
rec {
|
rec {
|
||||||
|
@ -30,11 +30,11 @@ stdenv.mkDerivation {
|
||||||
cp -r doc/* "$out"/share/doc/asdf/
|
cp -r doc/* "$out"/share/doc/asdf/
|
||||||
ln -s "$out"/lib/common-lisp/{asdf/uiop,uiop}
|
ln -s "$out"/lib/common-lisp/{asdf/uiop,uiop}
|
||||||
'';
|
'';
|
||||||
meta = {
|
meta = with lib; {
|
||||||
inherit (s) version;
|
inherit (s) version;
|
||||||
description = "Standard software-system definition library for Common Lisp";
|
description = "Standard software-system definition library for Common Lisp";
|
||||||
license = stdenv.lib.licenses.mit ;
|
license = licenses.mit ;
|
||||||
maintainers = [stdenv.lib.maintainers.raskin];
|
maintainers = [maintainers.raskin];
|
||||||
platforms = stdenv.lib.platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{stdenv, fetchurl, texinfo, texLive, perl}:
|
{lib, stdenv, fetchurl, texinfo, texLive, perl}:
|
||||||
let
|
let
|
||||||
s = # Generated upstream information
|
s = # Generated upstream information
|
||||||
rec {
|
rec {
|
||||||
|
@ -31,11 +31,11 @@ stdenv.mkDerivation {
|
||||||
cp -r doc/* "$out"/share/doc/asdf/
|
cp -r doc/* "$out"/share/doc/asdf/
|
||||||
ln -s "$out"/lib/common-lisp/{asdf/uiop,uiop}
|
ln -s "$out"/lib/common-lisp/{asdf/uiop,uiop}
|
||||||
'';
|
'';
|
||||||
meta = {
|
meta = with lib; {
|
||||||
inherit (s) version;
|
inherit (s) version;
|
||||||
description = "Standard software-system definition library for Common Lisp";
|
description = "Standard software-system definition library for Common Lisp";
|
||||||
license = stdenv.lib.licenses.mit ;
|
license = licenses.mit ;
|
||||||
maintainers = [stdenv.lib.maintainers.raskin];
|
maintainers = [maintainers.raskin];
|
||||||
platforms = stdenv.lib.platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{stdenv, asdf, which, bash, lisp ? null}:
|
{lib, stdenv, asdf, which, bash, lisp ? null}:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "cl-wrapper-script";
|
name = "cl-wrapper-script";
|
||||||
|
|
||||||
|
@ -52,6 +52,6 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Script used to wrap Common Lisp implementations";
|
description = "Script used to wrap Common Lisp implementations";
|
||||||
maintainers = [stdenv.lib.maintainers.raskin];
|
maintainers = [lib.maintainers.raskin];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
args @ {stdenv, clwrapper, baseName, packageName ? baseName
|
args @ {lib, stdenv, clwrapper, baseName, packageName ? baseName
|
||||||
, parasites ? []
|
, parasites ? []
|
||||||
, buildSystems ? ([packageName] ++ parasites)
|
, buildSystems ? ([packageName] ++ parasites)
|
||||||
, version ? "latest"
|
, version ? "latest"
|
||||||
|
@ -89,7 +89,7 @@ basePackage = {
|
||||||
env -i \
|
env -i \
|
||||||
NIX_LISP="$NIX_LISP" \
|
NIX_LISP="$NIX_LISP" \
|
||||||
NIX_LISP_PRELAUNCH_HOOK='nix_lisp_run_single_form "(progn
|
NIX_LISP_PRELAUNCH_HOOK='nix_lisp_run_single_form "(progn
|
||||||
${stdenv.lib.concatMapStrings (system: ''
|
${lib.concatMapStrings (system: ''
|
||||||
(asdf:compile-system :${system})
|
(asdf:compile-system :${system})
|
||||||
(asdf:load-system :${system})
|
(asdf:load-system :${system})
|
||||||
(asdf:operate (quote asdf::compile-bundle-op) :${system})
|
(asdf:operate (quote asdf::compile-bundle-op) :${system})
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{stdenv, clwrapper, pkgs, sbcl, coreutils, nix, asdf}:
|
{lib, stdenv, clwrapper, pkgs, sbcl, coreutils, nix, asdf}:
|
||||||
let lispPackages = rec {
|
let lispPackages = rec {
|
||||||
inherit pkgs clwrapper stdenv;
|
inherit lib pkgs clwrapper stdenv;
|
||||||
nixLib = pkgs.lib;
|
nixLib = pkgs.lib;
|
||||||
callPackage = nixLib.callPackageWith lispPackages;
|
callPackage = nixLib.callPackageWith lispPackages;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{stdenv, fetchurl, pkgs, clwrapper}:
|
{lib, stdenv, fetchurl, pkgs, clwrapper}:
|
||||||
let quicklisp-to-nix-packages = rec {
|
let quicklisp-to-nix-packages = rec {
|
||||||
inherit stdenv fetchurl clwrapper pkgs quicklisp-to-nix-packages;
|
inherit lib stdenv fetchurl clwrapper pkgs quicklisp-to-nix-packages;
|
||||||
|
|
||||||
callPackage = pkgs.lib.callPackageWith quicklisp-to-nix-packages;
|
callPackage = pkgs.lib.callPackageWith quicklisp-to-nix-packages;
|
||||||
buildLispPackage = callPackage ./define-package.nix;
|
buildLispPackage = callPackage ./define-package.nix;
|
||||||
|
|
|
@ -110,7 +110,7 @@ rec {
|
||||||
*/
|
*/
|
||||||
replaceMaintainersField = stdenv: pkgs: maintainers: stdenv //
|
replaceMaintainersField = stdenv: pkgs: maintainers: stdenv //
|
||||||
{ mkDerivation = args:
|
{ mkDerivation = args:
|
||||||
stdenv.lib.recursiveUpdate
|
pkgs.lib.recursiveUpdate
|
||||||
(stdenv.mkDerivation args)
|
(stdenv.mkDerivation args)
|
||||||
{ meta.maintainers = maintainers; };
|
{ meta.maintainers = maintainers; };
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, mkDerivation, fetchFromGitHub, pkg-config, gcc-arm-embedded, bluez5
|
{ lib, stdenv, mkDerivation, fetchFromGitHub, pkg-config, gcc-arm-embedded, bluez5
|
||||||
, readline
|
, readline
|
||||||
|
|
||||||
, hardwarePlatform ? "PM3RDV4"
|
, hardwarePlatform ? "PM3RDV4"
|
||||||
|
@ -29,7 +29,7 @@ mkDerivation rec {
|
||||||
install -Dt $out/firmware bootrom/obj/bootrom.elf armsrc/obj/fullimage.elf
|
install -Dt $out/firmware bootrom/obj/bootrom.elf armsrc/obj/fullimage.elf
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "Client for proxmark3, powerful general purpose RFID tool";
|
description = "Client for proxmark3, powerful general purpose RFID tool";
|
||||||
homepage = "https://rfidresearchgroup.com/";
|
homepage = "https://rfidresearchgroup.com/";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
|
|
|
@ -25236,7 +25236,7 @@ in
|
||||||
}).overrideAttrs (oldAttrs: rec {
|
}).overrideAttrs (oldAttrs: rec {
|
||||||
pname = "vim-darwin";
|
pname = "vim-darwin";
|
||||||
meta = {
|
meta = {
|
||||||
platforms = stdenv.lib.platforms.darwin;
|
platforms = lib.platforms.darwin;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue