treewide: stdenvNoCC.lib -> lib
This commit is contained in:
parent
db4cede416
commit
02ee14b9d5
|
@ -1,6 +1,6 @@
|
||||||
{stdenvNoCC, git, git-lfs, cacert}: let
|
{lib, stdenvNoCC, git, git-lfs, cacert}: let
|
||||||
urlToName = url: rev: let
|
urlToName = url: rev: let
|
||||||
inherit (stdenvNoCC.lib) removeSuffix splitString last;
|
inherit (lib) removeSuffix splitString last;
|
||||||
base = last (splitString ":" (baseNameOf (removeSuffix "/" url)));
|
base = last (splitString ":" (baseNameOf (removeSuffix "/" url)));
|
||||||
|
|
||||||
matched = builtins.match "(.*).git" base;
|
matched = builtins.match "(.*).git" base;
|
||||||
|
@ -56,7 +56,7 @@ stdenvNoCC.mkDerivation {
|
||||||
fetcher = ./nix-prefetch-git; # This must be a string to ensure it's called with bash.
|
fetcher = ./nix-prefetch-git; # This must be a string to ensure it's called with bash.
|
||||||
|
|
||||||
nativeBuildInputs = [ git ]
|
nativeBuildInputs = [ git ]
|
||||||
++ stdenvNoCC.lib.optionals fetchLFS [ git-lfs ];
|
++ lib.optionals fetchLFS [ git-lfs ];
|
||||||
|
|
||||||
outputHashAlgo = "sha256";
|
outputHashAlgo = "sha256";
|
||||||
outputHashMode = "recursive";
|
outputHashMode = "recursive";
|
||||||
|
@ -66,7 +66,7 @@ stdenvNoCC.mkDerivation {
|
||||||
|
|
||||||
GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
||||||
|
|
||||||
impureEnvVars = stdenvNoCC.lib.fetchers.proxyImpureEnvVars ++ [
|
impureEnvVars = lib.fetchers.proxyImpureEnvVars ++ [
|
||||||
"GIT_PROXY_COMMAND" "SOCKS_SERVER"
|
"GIT_PROXY_COMMAND" "SOCKS_SERVER"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenvNoCC, mercurial }:
|
{ lib, stdenvNoCC, mercurial }:
|
||||||
{ name ? null
|
{ name ? null
|
||||||
, url
|
, url
|
||||||
, rev ? null
|
, rev ? null
|
||||||
|
@ -16,7 +16,7 @@ stdenvNoCC.mkDerivation {
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
nativeBuildInputs = [mercurial];
|
nativeBuildInputs = [mercurial];
|
||||||
|
|
||||||
impureEnvVars = stdenvNoCC.lib.fetchers.proxyImpureEnvVars;
|
impureEnvVars = lib.fetchers.proxyImpureEnvVars;
|
||||||
|
|
||||||
subrepoClause = if fetchSubrepos then "S" else "";
|
subrepoClause = if fetchSubrepos then "S" else "";
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# You can specify some extra mirrors and a cache DB via options
|
# You can specify some extra mirrors and a cache DB via options
|
||||||
{stdenvNoCC, monotone, defaultDBMirrors ? [], cacheDB ? "./mtn-checkout.db"}:
|
{lib, stdenvNoCC, monotone, defaultDBMirrors ? [], cacheDB ? "./mtn-checkout.db"}:
|
||||||
# dbs is a list of strings
|
# dbs is a list of strings
|
||||||
# each is an url for sync
|
# each is an url for sync
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ stdenvNoCC.mkDerivation {
|
||||||
dbs = defaultDBMirrors ++ dbs;
|
dbs = defaultDBMirrors ++ dbs;
|
||||||
inherit branch cacheDB name selector;
|
inherit branch cacheDB name selector;
|
||||||
|
|
||||||
impureEnvVars = stdenvNoCC.lib.fetchers.proxyImpureEnvVars;
|
impureEnvVars = lib.fetchers.proxyImpureEnvVars;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenvNoCC, gitRepo, cacert, copyPathsToStore }:
|
{ lib, stdenvNoCC, gitRepo, cacert, copyPathsToStore }:
|
||||||
|
|
||||||
{ name, manifest, rev ? "HEAD", sha256
|
{ name, manifest, rev ? "HEAD", sha256
|
||||||
# Optional parameters:
|
# Optional parameters:
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
assert repoRepoRev != "" -> repoRepoURL != "";
|
assert repoRepoRev != "" -> repoRepoURL != "";
|
||||||
assert createMirror -> !useArchive;
|
assert createMirror -> !useArchive;
|
||||||
|
|
||||||
with stdenvNoCC.lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
extraRepoInitFlags = [
|
extraRepoInitFlags = [
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenvNoCC, runCommand, awscli }:
|
{ lib, stdenvNoCC, runCommand, awscli }:
|
||||||
|
|
||||||
{ s3url
|
{ s3url
|
||||||
, name ? builtins.baseNameOf s3url
|
, name ? builtins.baseNameOf s3url
|
||||||
|
@ -16,7 +16,7 @@ let
|
||||||
AWS_SESSION_TOKEN = session_token;
|
AWS_SESSION_TOKEN = session_token;
|
||||||
};
|
};
|
||||||
|
|
||||||
credentialAttrs = stdenvNoCC.lib.optionalAttrs (credentials != null) (mkCredentials credentials);
|
credentialAttrs = lib.optionalAttrs (credentials != null) (mkCredentials credentials);
|
||||||
in runCommand name ({
|
in runCommand name ({
|
||||||
nativeBuildInputs = [ awscli ];
|
nativeBuildInputs = [ awscli ];
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenvNoCC, buildPackages
|
{ lib, stdenvNoCC, buildPackages
|
||||||
, subversion, glibcLocales, sshSupport ? true, openssh ? null
|
, subversion, glibcLocales, sshSupport ? true, openssh ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
assert sshSupport -> openssh != null;
|
assert sshSupport -> openssh != null;
|
||||||
|
|
||||||
let
|
let
|
||||||
repoName = with stdenvNoCC.lib;
|
repoName = with lib;
|
||||||
let
|
let
|
||||||
fst = head;
|
fst = head;
|
||||||
snd = l: head (tail l);
|
snd = l: head (tail l);
|
||||||
|
@ -39,7 +39,7 @@ stdenvNoCC.mkDerivation {
|
||||||
name = name_;
|
name = name_;
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
nativeBuildInputs = [ subversion glibcLocales ]
|
nativeBuildInputs = [ subversion glibcLocales ]
|
||||||
++ stdenvNoCC.lib.optional sshSupport openssh;
|
++ lib.optional sshSupport openssh;
|
||||||
|
|
||||||
SVN_SSH = if sshSupport then "${buildPackages.openssh}/bin/ssh" else null;
|
SVN_SSH = if sshSupport then "${buildPackages.openssh}/bin/ssh" else null;
|
||||||
|
|
||||||
|
@ -49,6 +49,6 @@ stdenvNoCC.mkDerivation {
|
||||||
|
|
||||||
inherit url rev ignoreExternals ignoreKeywords;
|
inherit url rev ignoreExternals ignoreKeywords;
|
||||||
|
|
||||||
impureEnvVars = stdenvNoCC.lib.fetchers.proxyImpureEnvVars;
|
impureEnvVars = lib.fetchers.proxyImpureEnvVars;
|
||||||
inherit preferLocalBuild;
|
inherit preferLocalBuild;
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,7 +83,7 @@ in stdenvNoCC.mkDerivation rec {
|
||||||
builder = ./make-initrd.sh;
|
builder = ./make-initrd.sh;
|
||||||
|
|
||||||
nativeBuildInputs = [ perl cpio ]
|
nativeBuildInputs = [ perl cpio ]
|
||||||
++ stdenvNoCC.lib.optional makeUInitrd ubootTools;
|
++ lib.optional makeUInitrd ubootTools;
|
||||||
|
|
||||||
compress = "${_compressorExecutable} ${lib.escapeShellArgs _compressorArgsReal}";
|
compress = "${_compressorExecutable} ${lib.escapeShellArgs _compressorArgsReal}";
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Fetches a chicken egg from henrietta using `chicken-install -r'
|
# Fetches a chicken egg from henrietta using `chicken-install -r'
|
||||||
# See: http://wiki.call-cc.org/chicken-projects/egg-index-4.html
|
# See: http://wiki.call-cc.org/chicken-projects/egg-index-4.html
|
||||||
|
|
||||||
{ stdenvNoCC, chicken }:
|
{ lib, stdenvNoCC, chicken }:
|
||||||
{ name, version, md5 ? "", sha256 ? "" }:
|
{ name, version, md5 ? "", sha256 ? "" }:
|
||||||
|
|
||||||
if md5 != "" then
|
if md5 != "" then
|
||||||
|
@ -20,6 +20,6 @@ stdenvNoCC.mkDerivation {
|
||||||
|
|
||||||
eggName = name;
|
eggName = name;
|
||||||
|
|
||||||
impureEnvVars = stdenvNoCC.lib.fetchers.proxyImpureEnvVars;
|
impureEnvVars = lib.fetchers.proxyImpureEnvVars;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Fetches a chicken egg from henrietta using `chicken-install -r'
|
# Fetches a chicken egg from henrietta using `chicken-install -r'
|
||||||
# See: http://wiki.call-cc.org/chicken-projects/egg-index-5.html
|
# See: http://wiki.call-cc.org/chicken-projects/egg-index-5.html
|
||||||
|
|
||||||
{ stdenvNoCC, chicken }:
|
{ lib, stdenvNoCC, chicken }:
|
||||||
{ name, version, md5 ? "", sha256 ? "" }:
|
{ name, version, md5 ? "", sha256 ? "" }:
|
||||||
|
|
||||||
if md5 != "" then
|
if md5 != "" then
|
||||||
|
@ -20,6 +20,6 @@ stdenvNoCC.mkDerivation {
|
||||||
|
|
||||||
eggName = name;
|
eggName = name;
|
||||||
|
|
||||||
impureEnvVars = stdenvNoCC.lib.fetchers.proxyImpureEnvVars;
|
impureEnvVars = lib.fetchers.proxyImpureEnvVars;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenvNoCC, fetchurl, qemu, expect, writeScript, writeScriptBin, ncurses, bash, coreutils }:
|
{ lib, stdenvNoCC, fetchurl, qemu, expect, writeScript, writeScriptBin, ncurses, bash, coreutils }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ stdenvNoCC.mkDerivation rec {
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenvNoCC.lib; {
|
meta = with lib; {
|
||||||
description = "A C/C++ Compiler (binary distribution)";
|
description = "A C/C++ Compiler (binary distribution)";
|
||||||
homepage = "http://www.openwatcom.org/";
|
homepage = "http://www.openwatcom.org/";
|
||||||
license = licenses.watcom;
|
license = licenses.watcom;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ stdenvNoCC, buildPackages, makeRustPlatform }:
|
{ lib, stdenvNoCC, buildPackages, makeRustPlatform }:
|
||||||
|
|
||||||
let
|
let
|
||||||
rpath = stdenvNoCC.lib.makeLibraryPath [
|
rpath = lib.makeLibraryPath [
|
||||||
buildPackages.stdenv.cc.libc
|
buildPackages.stdenv.cc.libc
|
||||||
"$out"
|
"$out"
|
||||||
];
|
];
|
||||||
|
@ -30,7 +30,7 @@ let
|
||||||
"{}" \;
|
"{}" \;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta.platforms = with stdenvNoCC.lib; platforms.redox ++ platforms.linux;
|
meta.platforms = with lib; platforms.redox ++ platforms.linux;
|
||||||
};
|
};
|
||||||
|
|
||||||
redoxRustPlatform = buildPackages.makeRustPlatform {
|
redoxRustPlatform = buildPackages.makeRustPlatform {
|
||||||
|
@ -68,7 +68,7 @@ redoxRustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
cargoSha256 = "1fzz7ba3ga57x1cbdrcfrdwwjr70nh4skrpxp4j2gak2c3scj6rz";
|
cargoSha256 = "1fzz7ba3ga57x1cbdrcfrdwwjr70nh4skrpxp4j2gak2c3scj6rz";
|
||||||
|
|
||||||
meta = with stdenvNoCC.lib; {
|
meta = with lib; {
|
||||||
homepage = "https://gitlab.redox-os.org/redox-os/relibc";
|
homepage = "https://gitlab.redox-os.org/redox-os/relibc";
|
||||||
description = "C Library in Rust for Redox and Linux";
|
description = "C Library in Rust for Redox and Linux";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{ stdenv
|
{ lib
|
||||||
|
, stdenv
|
||||||
, callPackage
|
, callPackage
|
||||||
, stdenvNoCC
|
, stdenvNoCC
|
||||||
, fetchurl
|
, fetchurl
|
||||||
|
@ -135,7 +136,7 @@ in stdenvNoCC.mkDerivation {
|
||||||
ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/libcblas${shlibExt}
|
ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/libcblas${shlibExt}
|
||||||
ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/liblapack${shlibExt}
|
ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/liblapack${shlibExt}
|
||||||
ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/liblapacke${shlibExt}
|
ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/liblapacke${shlibExt}
|
||||||
'' + stdenvNoCC.lib.optionalString stdenvNoCC.hostPlatform.isLinux ''
|
'' + lib.optionalString stdenvNoCC.hostPlatform.isLinux ''
|
||||||
ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/libblas${shlibExt}".3"
|
ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/libblas${shlibExt}".3"
|
||||||
ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/libcblas${shlibExt}".3"
|
ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/libcblas${shlibExt}".3"
|
||||||
ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/liblapack${shlibExt}".3"
|
ln -s $out/lib/libmkl_rt${shlibExt} $out/lib/liblapack${shlibExt}".3"
|
||||||
|
@ -145,7 +146,7 @@ in stdenvNoCC.mkDerivation {
|
||||||
# fixDarwinDylibName fails for libmkl_cdft_core.dylib because the
|
# fixDarwinDylibName fails for libmkl_cdft_core.dylib because the
|
||||||
# larger updated load commands do not fit. Use install_name_tool
|
# larger updated load commands do not fit. Use install_name_tool
|
||||||
# explicitly and ignore the error.
|
# explicitly and ignore the error.
|
||||||
postFixup = stdenvNoCC.lib.optionalString stdenvNoCC.isDarwin ''
|
postFixup = lib.optionalString stdenvNoCC.isDarwin ''
|
||||||
for f in $out/lib/*.dylib; do
|
for f in $out/lib/*.dylib; do
|
||||||
install_name_tool -id $out/lib/$(basename $f) $f || true
|
install_name_tool -id $out/lib/$(basename $f) $f || true
|
||||||
done
|
done
|
||||||
|
@ -160,7 +161,7 @@ in stdenvNoCC.mkDerivation {
|
||||||
|
|
||||||
passthru.tests.pkg-config = callPackage ./test { };
|
passthru.tests.pkg-config = callPackage ./test { };
|
||||||
|
|
||||||
meta = with stdenvNoCC.lib; {
|
meta = with lib; {
|
||||||
description = "Intel Math Kernel Library";
|
description = "Intel Math Kernel Library";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Intel Math Kernel Library (Intel MKL) optimizes code with minimal effort
|
Intel Math Kernel Library (Intel MKL) optimizes code with minimal effort
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenvNoCC, fetchzip }:
|
{ lib, stdenvNoCC, fetchzip }:
|
||||||
|
|
||||||
let
|
let
|
||||||
mspgccVersion = "6_1_1_0";
|
mspgccVersion = "6_1_1_0";
|
||||||
|
@ -19,7 +19,7 @@ in stdenvNoCC.mkDerivation rec {
|
||||||
touch $out/lib/lib
|
touch $out/lib/lib
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenvNoCC.lib; {
|
meta = with lib; {
|
||||||
description = ''
|
description = ''
|
||||||
Development headers and linker scripts for TI MSP430 microcontrollers
|
Development headers and linker scripts for TI MSP430 microcontrollers
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue