Merge branch 'master' into nix-2.0

This commit is contained in:
Vladimír Čunát
2018-03-03 18:02:35 +01:00
1616 changed files with 22967 additions and 28019 deletions
@@ -58,7 +58,7 @@ let
else if (with targetPlatform; isArm && isLinux) then "${libc_lib}/lib/ld-linux*.so.3"
else if targetPlatform.system == "aarch64-linux" then "${libc_lib}/lib/ld-linux-aarch64.so.1"
else if targetPlatform.system == "powerpc-linux" then "${libc_lib}/lib/ld.so.1"
else if targetPlatform.system == "mips64el-linux" then "${libc_lib}/lib/ld.so.1"
else if targetPlatform.isMips then "${libc_lib}/lib/ld.so.1"
else if targetPlatform.isDarwin then "/usr/lib/dyld"
else if stdenv.lib.hasSuffix "pc-gnu" targetPlatform.config then "ld.so.1"
else null;
@@ -171,13 +171,20 @@ stdenv.mkDerivation {
else if targetPlatform.isWindows then "pe"
else "elf" + toString targetPlatform.parsed.cpu.bits;
endianPrefix = if targetPlatform.isBigEndian then "big" else "little";
sep = optionalString (!targetPlatform.isMips) "-";
arch =
/**/ if targetPlatform.isAarch64 then endianPrefix + "aarch64"
else if targetPlatform.isArm then endianPrefix + "arm"
else if targetPlatform.isx86_64 then "x86-64"
else if targetPlatform.isi686 then "i386"
else if targetPlatform.isMips then {
"mips" = "btsmipn32"; # n32 variant
"mipsel" = "ltsmipn32"; # n32 variant
"mips64" = "btsmip";
"mips64el" = "ltsmip";
}.${targetPlatform.parsed.cpu.name}
else throw "unknown emulation for platform: " + targetPlatform.config;
in targetPlatform.platform.bfdEmulation or (fmt + "-" + arch);
in targetPlatform.platform.bfdEmulation or (fmt + sep + arch);
depsTargetTargetPropagated = extraPackages;
@@ -1,5 +1,5 @@
{ stdenv, pkgconfig, curl, darwin, libiconv, libgit2, libssh2,
openssl, sqlite, zlib, dbus_libs, dbus_glib, gdk_pixbuf, cairo, python3,
openssl, sqlite, zlib, dbus_libs, dbus-glib, gdk_pixbuf, cairo, python3,
libsodium, postgresql, ... }:
let
@@ -45,13 +45,13 @@ in
buildInputs = [ pkgconfig dbus_libs ];
};
gobject-sys = attrs: {
buildInputs = [ dbus_glib ];
buildInputs = [ dbus-glib ];
};
gio-sys = attrs: {
buildInputs = [ dbus_glib ];
buildInputs = [ dbus-glib ];
};
gdk-pixbuf-sys = attrs: {
buildInputs = [ dbus_glib ];
buildInputs = [ dbus-glib ];
};
gdk-pixbuf = attrs: {
buildInputs = [ gdk_pixbuf ];
+2
View File
@@ -21,6 +21,8 @@ stdenv.mkDerivation {
export CARGO_HOME=$(mktemp -d cargo-home.XXX)
${cargoUpdateHook}
cargo vendor
cp -ar vendor $out
@@ -1,14 +0,0 @@
# | Discard the context of a string while ensuring that expected path
# validity invariants hold.
#
# This relies on import-from-derivation, but it is only useful in
# contexts where the string is going to be used in an
# import-from-derivation anyway.
#
# safeDiscardStringContext : String → String
{ writeText }: s:
builtins.seq
(import (writeText
"discard.nix"
"${builtins.substring 0 0 s}null\n"))
(builtins.unsafeDiscardStringContext s)
File diff suppressed because it is too large Load Diff