Merge pull request #124341 from NixOS/staging-next-21.05
[21.05] Staging next
This commit is contained in:
commit
75f90eedcf
|
@ -18,13 +18,13 @@ in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "imagemagick";
|
pname = "imagemagick";
|
||||||
version = "7.0.11-9";
|
version = "7.0.11-13";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ImageMagick";
|
owner = "ImageMagick";
|
||||||
repo = "ImageMagick";
|
repo = "ImageMagick";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-eL9zFrgkLb3pS8/UlQB5+p50UG8j3Q7TNDwcO/3BuXo=";
|
sha256 = "sha256-6dYc636m1OeRqIPv5NFz/K8OUvl6sgEQKjfvTngR2Ms=";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" "doc" ]; # bin/ isn't really big
|
outputs = [ "out" "dev" "doc" ]; # bin/ isn't really big
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
, curl, openssl, zlib, expat, perlPackages, python3, gettext, cpio
|
, curl, openssl, zlib, expat, perlPackages, python3, gettext, cpio
|
||||||
, gnugrep, gnused, gawk, coreutils # needed at runtime by git-filter-branch etc
|
, gnugrep, gnused, gawk, coreutils # needed at runtime by git-filter-branch etc
|
||||||
, openssh, pcre2
|
, openssh, pcre2
|
||||||
, asciidoctor, texinfo, xmlto, docbook2x, docbook_xsl, docbook_xsl_ns, docbook_xml_dtd_45
|
, asciidoc, texinfo, xmlto, docbook2x, docbook_xsl, docbook_xml_dtd_45
|
||||||
, libxslt, tcl, tk, makeWrapper, libiconv
|
, libxslt, tcl, tk, makeWrapper, libiconv
|
||||||
, svnSupport, subversionClient, perlLibs, smtpPerlLibs
|
, svnSupport, subversionClient, perlLibs, smtpPerlLibs
|
||||||
, perlSupport ? stdenv.buildPlatform == stdenv.hostPlatform
|
, perlSupport ? stdenv.buildPlatform == stdenv.hostPlatform
|
||||||
|
@ -68,8 +68,8 @@ stdenv.mkDerivation {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ gettext perlPackages.perl makeWrapper ]
|
nativeBuildInputs = [ gettext perlPackages.perl makeWrapper ]
|
||||||
++ lib.optionals withManual [ asciidoctor texinfo xmlto docbook2x
|
++ lib.optionals withManual [ asciidoc texinfo xmlto docbook2x
|
||||||
docbook_xsl docbook_xsl_ns docbook_xml_dtd_45 libxslt ];
|
docbook_xsl docbook_xml_dtd_45 libxslt ];
|
||||||
buildInputs = [curl openssl zlib expat cpio libiconv]
|
buildInputs = [curl openssl zlib expat cpio libiconv]
|
||||||
++ lib.optionals perlSupport [ perlPackages.perl ]
|
++ lib.optionals perlSupport [ perlPackages.perl ]
|
||||||
++ lib.optionals guiSupport [tcl tk]
|
++ lib.optionals guiSupport [tcl tk]
|
||||||
|
@ -148,7 +148,7 @@ stdenv.mkDerivation {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install git-subtree.
|
# Install git-subtree.
|
||||||
make -C contrib/subtree install ${lib.optionalString withManual "USE_ASCIIDOCTOR=1 install-doc"}
|
make -C contrib/subtree install ${lib.optionalString withManual "install-doc"}
|
||||||
rm -rf contrib/subtree
|
rm -rf contrib/subtree
|
||||||
|
|
||||||
# Install contrib stuff.
|
# Install contrib stuff.
|
||||||
|
@ -233,7 +233,7 @@ stdenv.mkDerivation {
|
||||||
'')
|
'')
|
||||||
|
|
||||||
+ lib.optionalString withManual ''# Install man pages
|
+ lib.optionalString withManual ''# Install man pages
|
||||||
make -j $NIX_BUILD_CORES -l $NIX_BUILD_CORES USE_ASCIIDOCTOR=1 PERL_PATH="${buildPackages.perl}/bin/perl" cmd-list.made install install-html \
|
make -j $NIX_BUILD_CORES -l $NIX_BUILD_CORES PERL_PATH="${buildPackages.perl}/bin/perl" cmd-list.made install install-html \
|
||||||
-C Documentation ''
|
-C Documentation ''
|
||||||
|
|
||||||
+ (if guiSupport then ''
|
+ (if guiSupport then ''
|
||||||
|
|
|
@ -6,7 +6,7 @@ var_templates_list=(
|
||||||
accumulateRoles
|
accumulateRoles
|
||||||
|
|
||||||
for var in "${var_templates_list[@]}"; do
|
for var in "${var_templates_list[@]}"; do
|
||||||
mangleVarList "$var" ${role_suffixes[@]+"${role_suffixes[@]}"}
|
mangleVarListGeneric ":" "$var" ${role_suffixes[@]+"${role_suffixes[@]}"}
|
||||||
done
|
done
|
||||||
|
|
||||||
export NIX_PKG_CONFIG_WRAPPER_FLAGS_SET_@suffixSalt@=1
|
export NIX_PKG_CONFIG_WRAPPER_FLAGS_SET_@suffixSalt@=1
|
||||||
|
|
|
@ -13,7 +13,9 @@ accumulateRoles() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
mangleVarList() {
|
mangleVarListGeneric() {
|
||||||
|
local sep="$1"
|
||||||
|
shift
|
||||||
local var="$1"
|
local var="$1"
|
||||||
shift
|
shift
|
||||||
local -a role_suffixes=("$@")
|
local -a role_suffixes=("$@")
|
||||||
|
@ -25,11 +27,15 @@ mangleVarList() {
|
||||||
for suffix in "${role_suffixes[@]}"; do
|
for suffix in "${role_suffixes[@]}"; do
|
||||||
local inputVar="${var}${suffix}"
|
local inputVar="${var}${suffix}"
|
||||||
if [ -v "$inputVar" ]; then
|
if [ -v "$inputVar" ]; then
|
||||||
export ${outputVar}+="${!outputVar:+ }${!inputVar}"
|
export ${outputVar}+="${!outputVar:+$sep}${!inputVar}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mangleVarList() {
|
||||||
|
mangleVarListGeneric " " "$@"
|
||||||
|
}
|
||||||
|
|
||||||
mangleVarBool() {
|
mangleVarBool() {
|
||||||
local var="$1"
|
local var="$1"
|
||||||
shift
|
shift
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, llvm_meta, fetch, cmake, libxml2, libllvm, version, clang-tools-extra_src, python3
|
{ lib, stdenv, llvm_meta, fetch, substituteAll, cmake, libxml2, libllvm, version, clang-tools-extra_src, python3
|
||||||
, buildLlvmTools
|
, buildLlvmTools
|
||||||
, fixDarwinDylibNames
|
, fixDarwinDylibNames
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
|
@ -46,6 +46,10 @@ let
|
||||||
# https://reviews.llvm.org/D51899
|
# https://reviews.llvm.org/D51899
|
||||||
./compiler-rt-baremetal.patch
|
./compiler-rt-baremetal.patch
|
||||||
./gnu-install-dirs.patch
|
./gnu-install-dirs.patch
|
||||||
|
(substituteAll {
|
||||||
|
src = ../../clang-6-10-LLVMgold-path.patch;
|
||||||
|
libllvmLibdir = "${libllvm.lib}/lib";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -64,12 +68,7 @@ let
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" "python" ];
|
outputs = [ "out" "lib" "dev" "python" ];
|
||||||
|
|
||||||
# Clang expects to find LLVMgold in its own prefix
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
if [ -e ${libllvm.lib}/lib/LLVMgold.so ]; then
|
|
||||||
ln -sv ${libllvm.lib}/lib/LLVMgold.so $lib/lib
|
|
||||||
fi
|
|
||||||
|
|
||||||
ln -sv $out/bin/clang $out/bin/cpp
|
ln -sv $out/bin/clang $out/bin/cpp
|
||||||
|
|
||||||
# Move libclang to 'lib' output
|
# Move libclang to 'lib' output
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, llvm_meta, fetch, fetchpatch, cmake, libxml2, libllvm, version, clang-tools-extra_src, python3
|
{ lib, stdenv, llvm_meta, fetch, fetchpatch, substituteAll, cmake, libxml2, libllvm, version, clang-tools-extra_src, python3
|
||||||
, buildLlvmTools
|
, buildLlvmTools
|
||||||
, fixDarwinDylibNames
|
, fixDarwinDylibNames
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
|
@ -57,6 +57,10 @@ let
|
||||||
excludes = [ "docs/*" "test/*" ];
|
excludes = [ "docs/*" "test/*" ];
|
||||||
sha256 = "0gxgmi0qbm89mq911dahallhi8m6wa9vpklklqmxafx4rplrr8ph";
|
sha256 = "0gxgmi0qbm89mq911dahallhi8m6wa9vpklklqmxafx4rplrr8ph";
|
||||||
})
|
})
|
||||||
|
(substituteAll {
|
||||||
|
src = ../../clang-11-12-LLVMgold-path.patch;
|
||||||
|
libllvmLibdir = "${libllvm.lib}/lib";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -75,12 +79,7 @@ let
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" "python" ];
|
outputs = [ "out" "lib" "dev" "python" ];
|
||||||
|
|
||||||
# Clang expects to find LLVMgold in its own prefix
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
if [ -e ${libllvm.lib}/lib/LLVMgold.so ]; then
|
|
||||||
ln -sv ${libllvm.lib}/lib/LLVMgold.so $lib/lib
|
|
||||||
fi
|
|
||||||
|
|
||||||
ln -sv $out/bin/clang $out/bin/cpp
|
ln -sv $out/bin/clang $out/bin/cpp
|
||||||
|
|
||||||
# Move libclang to 'lib' output
|
# Move libclang to 'lib' output
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, llvm_meta, fetch, cmake, libxml2, libllvm, version, clang-tools-extra_src, python3
|
{ lib, stdenv, llvm_meta, fetch, substituteAll, cmake, libxml2, libllvm, version, clang-tools-extra_src, python3
|
||||||
, buildLlvmTools
|
, buildLlvmTools
|
||||||
, fixDarwinDylibNames
|
, fixDarwinDylibNames
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
|
@ -44,6 +44,10 @@ let
|
||||||
./purity.patch
|
./purity.patch
|
||||||
# https://reviews.llvm.org/D51899
|
# https://reviews.llvm.org/D51899
|
||||||
./gnu-install-dirs.patch
|
./gnu-install-dirs.patch
|
||||||
|
(substituteAll {
|
||||||
|
src = ../../clang-11-12-LLVMgold-path.patch;
|
||||||
|
libllvmLibdir = "${libllvm.lib}/lib";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -59,12 +63,7 @@ let
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" "python" ];
|
outputs = [ "out" "lib" "dev" "python" ];
|
||||||
|
|
||||||
# Clang expects to find LLVMgold in its own prefix
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
if [ -e ${libllvm.lib}/lib/LLVMgold.so ]; then
|
|
||||||
ln -sv ${libllvm.lib}/lib/LLVMgold.so $lib/lib
|
|
||||||
fi
|
|
||||||
|
|
||||||
ln -sv $out/bin/clang $out/bin/cpp
|
ln -sv $out/bin/clang $out/bin/cpp
|
||||||
|
|
||||||
# Move libclang to 'lib' output
|
# Move libclang to 'lib' output
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
diff --git a/lib/Driver/ToolChains/CommonArgs.cpp b/lib/Driver/ToolChains/CommonArgs.cpp
|
||||||
|
index 00bd60bc24bb..17416b0bd3c0 100644
|
||||||
|
--- a/lib/Driver/ToolChains/CommonArgs.cpp
|
||||||
|
+++ b/lib/Driver/ToolChains/CommonArgs.cpp
|
||||||
|
@@ -376,8 +376,7 @@ void tools::AddGoldPlugin(const ToolChain &ToolChain, const ArgList &Args,
|
||||||
|
// as gold requires -plugin to come before any -plugin-opt that -Wl might
|
||||||
|
// forward.
|
||||||
|
CmdArgs.push_back("-plugin");
|
||||||
|
- std::string Plugin =
|
||||||
|
- ToolChain.getDriver().Dir + "/../lib" CLANG_LIBDIR_SUFFIX "/LLVMgold.so";
|
||||||
|
+ std::string Plugin = "@libllvmLibdir@" "/LLVMgold.so";
|
||||||
|
CmdArgs.push_back(Args.MakeArgString(Plugin));
|
||||||
|
|
||||||
|
// Try to pass driver level flags relevant to LTO code generation down to
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, llvm_meta, fetch, cmake, libxml2, libllvm, version, clang-tools-extra_src, python3
|
{ lib, stdenv, llvm_meta, fetch, substituteAll, cmake, libxml2, libllvm, version, clang-tools-extra_src, python3
|
||||||
, buildLlvmTools
|
, buildLlvmTools
|
||||||
, fixDarwinDylibNames
|
, fixDarwinDylibNames
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
|
@ -43,6 +43,10 @@ let
|
||||||
patches = [
|
patches = [
|
||||||
./purity.patch
|
./purity.patch
|
||||||
./gnu-install-dirs.patch
|
./gnu-install-dirs.patch
|
||||||
|
(substituteAll {
|
||||||
|
src = ./LLVMgold-path.patch;
|
||||||
|
libllvmLibdir = "${libllvm.lib}/lib";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -58,12 +62,7 @@ let
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" "python" ];
|
outputs = [ "out" "lib" "dev" "python" ];
|
||||||
|
|
||||||
# Clang expects to find LLVMgold in its own prefix
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
if [ -e ${libllvm.lib}/lib/LLVMgold.so ]; then
|
|
||||||
ln -sv ${libllvm.lib}/lib/LLVMgold.so $lib/lib
|
|
||||||
fi
|
|
||||||
|
|
||||||
ln -sv $out/bin/clang $out/bin/cpp
|
ln -sv $out/bin/clang $out/bin/cpp
|
||||||
|
|
||||||
# Move libclang to 'lib' output
|
# Move libclang to 'lib' output
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, llvm_meta, fetch, cmake, libxml2, libllvm, version, clang-tools-extra_src, python3
|
{ lib, stdenv, llvm_meta, fetch, substituteAll, cmake, libxml2, libllvm, version, clang-tools-extra_src, python3
|
||||||
, buildLlvmTools
|
, buildLlvmTools
|
||||||
, fixDarwinDylibNames
|
, fixDarwinDylibNames
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
|
@ -43,6 +43,10 @@ let
|
||||||
patches = [
|
patches = [
|
||||||
./purity.patch
|
./purity.patch
|
||||||
./gnu-install-dirs.patch
|
./gnu-install-dirs.patch
|
||||||
|
(substituteAll {
|
||||||
|
src = ../../clang-6-10-LLVMgold-path.patch;
|
||||||
|
libllvmLibdir = "${libllvm.lib}/lib";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -58,12 +62,7 @@ let
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" "python" ];
|
outputs = [ "out" "lib" "dev" "python" ];
|
||||||
|
|
||||||
# Clang expects to find LLVMgold in its own prefix
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
if [ -e ${libllvm.lib}/lib/LLVMgold.so ]; then
|
|
||||||
ln -sv ${libllvm.lib}/lib/LLVMgold.so $lib/lib
|
|
||||||
fi
|
|
||||||
|
|
||||||
ln -sv $out/bin/clang $out/bin/cpp
|
ln -sv $out/bin/clang $out/bin/cpp
|
||||||
|
|
||||||
# Move libclang to 'lib' output
|
# Move libclang to 'lib' output
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, llvm_meta, fetch, cmake, libxml2, libllvm, version, clang-tools-extra_src, python3
|
{ lib, stdenv, llvm_meta, fetch, substituteAll, cmake, libxml2, libllvm, version, clang-tools-extra_src, python3
|
||||||
, buildLlvmTools
|
, buildLlvmTools
|
||||||
, fixDarwinDylibNames
|
, fixDarwinDylibNames
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
|
@ -52,6 +52,10 @@ let
|
||||||
# needed for our bootstrapping to not interfere with C.
|
# needed for our bootstrapping to not interfere with C.
|
||||||
./unwindlib.patch
|
./unwindlib.patch
|
||||||
./gnu-install-dirs.patch
|
./gnu-install-dirs.patch
|
||||||
|
(substituteAll {
|
||||||
|
src = ../../clang-6-10-LLVMgold-path.patch;
|
||||||
|
libllvmLibdir = "${libllvm.lib}/lib";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -70,12 +74,7 @@ let
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" "python" ];
|
outputs = [ "out" "lib" "dev" "python" ];
|
||||||
|
|
||||||
# Clang expects to find LLVMgold in its own prefix
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
if [ -e ${libllvm.lib}/lib/LLVMgold.so ]; then
|
|
||||||
ln -sv ${libllvm.lib}/lib/LLVMgold.so $lib/lib
|
|
||||||
fi
|
|
||||||
|
|
||||||
ln -sv $out/bin/clang $out/bin/cpp
|
ln -sv $out/bin/clang $out/bin/cpp
|
||||||
|
|
||||||
# Move libclang to 'lib' output
|
# Move libclang to 'lib' output
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, llvm_meta, fetch, cmake, libxml2, libllvm, version, clang-tools-extra_src, python3
|
{ lib, stdenv, llvm_meta, fetch, substituteAll, cmake, libxml2, libllvm, version, clang-tools-extra_src, python3
|
||||||
, buildLlvmTools
|
, buildLlvmTools
|
||||||
, fixDarwinDylibNames
|
, fixDarwinDylibNames
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
|
@ -59,6 +59,10 @@ let
|
||||||
# make clang -xhip use $PATH to find executables
|
# make clang -xhip use $PATH to find executables
|
||||||
./HIP-use-PATH-8.patch
|
./HIP-use-PATH-8.patch
|
||||||
./gnu-install-dirs.patch
|
./gnu-install-dirs.patch
|
||||||
|
(substituteAll {
|
||||||
|
src = ../../clang-6-10-LLVMgold-path.patch;
|
||||||
|
libllvmLibdir = "${libllvm.lib}/lib";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -77,12 +81,7 @@ let
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" "python" ];
|
outputs = [ "out" "lib" "dev" "python" ];
|
||||||
|
|
||||||
# Clang expects to find LLVMgold in its own prefix
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
if [ -e ${libllvm.lib}/lib/LLVMgold.so ]; then
|
|
||||||
ln -sv ${libllvm.lib}/lib/LLVMgold.so $lib/lib
|
|
||||||
fi
|
|
||||||
|
|
||||||
ln -sv $out/bin/clang $out/bin/cpp
|
ln -sv $out/bin/clang $out/bin/cpp
|
||||||
|
|
||||||
# Move libclang to 'lib' output
|
# Move libclang to 'lib' output
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, llvm_meta, fetch, cmake, libxml2, libllvm, version, clang-tools-extra_src, python3
|
{ lib, stdenv, llvm_meta, fetch, substituteAll, cmake, libxml2, libllvm, version, clang-tools-extra_src, python3
|
||||||
, buildLlvmTools
|
, buildLlvmTools
|
||||||
, fixDarwinDylibNames
|
, fixDarwinDylibNames
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
|
@ -52,6 +52,10 @@ let
|
||||||
# make clang -xhip use $PATH to find executables
|
# make clang -xhip use $PATH to find executables
|
||||||
./HIP-use-PATH-9.patch
|
./HIP-use-PATH-9.patch
|
||||||
./gnu-install-dirs.patch
|
./gnu-install-dirs.patch
|
||||||
|
(substituteAll {
|
||||||
|
src = ../../clang-6-10-LLVMgold-path.patch;
|
||||||
|
libllvmLibdir = "${libllvm.lib}/lib";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -70,12 +74,7 @@ let
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" "python" ];
|
outputs = [ "out" "lib" "dev" "python" ];
|
||||||
|
|
||||||
# Clang expects to find LLVMgold in its own prefix
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
if [ -e ${libllvm.lib}/lib/LLVMgold.so ]; then
|
|
||||||
ln -sv ${libllvm.lib}/lib/LLVMgold.so $lib/lib
|
|
||||||
fi
|
|
||||||
|
|
||||||
ln -sv $out/bin/clang $out/bin/cpp
|
ln -sv $out/bin/clang $out/bin/cpp
|
||||||
|
|
||||||
# Move libclang to 'lib' output
|
# Move libclang to 'lib' output
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/lib/Driver/ToolChains/CommonArgs.cpp b/lib/Driver/ToolChains/CommonArgs.cpp
|
||||||
|
index 6b6e276b8ce7..7896542a1202 100644
|
||||||
|
--- a/lib/Driver/ToolChains/CommonArgs.cpp
|
||||||
|
+++ b/lib/Driver/ToolChains/CommonArgs.cpp
|
||||||
|
@@ -409,7 +409,7 @@ void tools::addLTOOptions(const ToolChain &ToolChain, const ArgList &Args,
|
||||||
|
|
||||||
|
SmallString<1024> Plugin;
|
||||||
|
llvm::sys::path::native(
|
||||||
|
- Twine(D.Dir) + "/../lib" CLANG_LIBDIR_SUFFIX "/LLVMgold" + Suffix,
|
||||||
|
+ Twine("@libllvmLibdir@" "/LLVMgold") + Suffix,
|
||||||
|
Plugin);
|
||||||
|
CmdArgs.push_back(Args.MakeArgString(Plugin));
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
diff --git a/lib/Driver/ToolChains/CommonArgs.cpp b/lib/Driver/ToolChains/CommonArgs.cpp
|
||||||
|
index 37ec73468570..b73e75aa6e59 100644
|
||||||
|
--- a/lib/Driver/ToolChains/CommonArgs.cpp
|
||||||
|
+++ b/lib/Driver/ToolChains/CommonArgs.cpp
|
||||||
|
@@ -370,8 +370,8 @@ void tools::AddGoldPlugin(const ToolChain &ToolChain, const ArgList &Args,
|
||||||
|
#endif
|
||||||
|
|
||||||
|
SmallString<1024> Plugin;
|
||||||
|
- llvm::sys::path::native(Twine(ToolChain.getDriver().Dir) +
|
||||||
|
- "/../lib" CLANG_LIBDIR_SUFFIX "/LLVMgold" +
|
||||||
|
+ llvm::sys::path::native(Twine("@libllvmLibdir@"
|
||||||
|
+ "/LLVMgold") +
|
||||||
|
Suffix,
|
||||||
|
Plugin);
|
||||||
|
CmdArgs.push_back(Args.MakeArgString(Plugin));
|
|
@ -15,21 +15,22 @@
|
||||||
, CoreFoundation, Security
|
, CoreFoundation, Security
|
||||||
, pkgsBuildTarget, pkgsBuildBuild, pkgsBuildHost
|
, pkgsBuildTarget, pkgsBuildBuild, pkgsBuildHost
|
||||||
, makeRustPlatform
|
, makeRustPlatform
|
||||||
, llvmPackages_11, llvm_11
|
, llvmPackages_11
|
||||||
|
, llvmPackages_12, llvm_12
|
||||||
} @ args:
|
} @ args:
|
||||||
|
|
||||||
import ./default.nix {
|
import ./default.nix {
|
||||||
rustcVersion = "1.52.1";
|
rustcVersion = "1.52.1";
|
||||||
rustcSha256 = "sha256-Om8jom0Oj4erv78yxc19qgwLcdCYar78Vrml+/vQv5g=";
|
rustcSha256 = "sha256-Om8jom0Oj4erv78yxc19qgwLcdCYar78Vrml+/vQv5g=";
|
||||||
|
|
||||||
llvmSharedForBuild = pkgsBuildBuild.llvmPackages_11.libllvm.override { enableSharedLibraries = true; };
|
llvmSharedForBuild = pkgsBuildBuild.llvmPackages_12.libllvm.override { enableSharedLibraries = true; };
|
||||||
llvmSharedForHost = pkgsBuildHost.llvmPackages_11.libllvm.override { enableSharedLibraries = true; };
|
llvmSharedForHost = pkgsBuildHost.llvmPackages_12.libllvm.override { enableSharedLibraries = true; };
|
||||||
llvmSharedForTarget = pkgsBuildTarget.llvmPackages_11.libllvm.override { enableSharedLibraries = true; };
|
llvmSharedForTarget = pkgsBuildTarget.llvmPackages_12.libllvm.override { enableSharedLibraries = true; };
|
||||||
|
|
||||||
llvmBootstrapForDarwin = llvmPackages_11;
|
llvmBootstrapForDarwin = llvmPackages_11;
|
||||||
|
|
||||||
# For use at runtime
|
# For use at runtime
|
||||||
llvmShared = llvm_11.override { enableSharedLibraries = true; };
|
llvmShared = llvm_12.override { enableSharedLibraries = true; };
|
||||||
|
|
||||||
# Note: the version MUST be one version prior to the version we're
|
# Note: the version MUST be one version prior to the version we're
|
||||||
# building
|
# building
|
||||||
|
@ -55,4 +56,4 @@ import ./default.nix {
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
(builtins.removeAttrs args [ "fetchpatch" "pkgsBuildHost" "llvmPackages_11" "llvm_11"])
|
(builtins.removeAttrs args [ "fetchpatch" "pkgsBuildHost" "llvmPackages_11" "llvmPackages_12" "llvm_12"])
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, autoreconfHook
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook
|
||||||
, asciidoctor, pkg-config, xmlto, docbook_xsl, docbook_xml_dtd_45, libxslt
|
, asciidoc, pkg-config, xmlto, docbook_xsl, docbook_xml_dtd_45, libxslt
|
||||||
, json_c, kmod, which, util-linux, udev, keyutils
|
, json_c, kmod, which, util-linux, udev, keyutils
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
|
||||||
outputs = [ "out" "lib" "man" "dev" ];
|
outputs = [ "out" "lib" "man" "dev" ];
|
||||||
|
|
||||||
nativeBuildInputs =
|
nativeBuildInputs =
|
||||||
[ autoreconfHook asciidoctor pkg-config xmlto docbook_xml_dtd_45 docbook_xsl libxslt
|
[ autoreconfHook asciidoc pkg-config xmlto docbook_xml_dtd_45 docbook_xsl libxslt
|
||||||
which
|
which
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@ stdenv.mkDerivation rec {
|
||||||
configureFlags =
|
configureFlags =
|
||||||
[ "--without-bash"
|
[ "--without-bash"
|
||||||
"--without-systemd"
|
"--without-systemd"
|
||||||
|
"--disable-asciidoctor" # depends on ruby 2.7, use asciidoc instead
|
||||||
];
|
];
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, lib, fetchurl
|
{ stdenv, lib, fetchurl, fetchpatch
|
||||||
, zlib, xz, libintl, python, gettext, ncurses, findXMLCatalogs
|
, zlib, xz, libintl, python, gettext, ncurses, findXMLCatalogs
|
||||||
, pythonSupport ? enableShared && stdenv.buildPlatform == stdenv.hostPlatform
|
, pythonSupport ? enableShared && stdenv.buildPlatform == stdenv.hostPlatform
|
||||||
, icuSupport ? false, icu ? null
|
, icuSupport ? false, icu ? null
|
||||||
|
@ -27,6 +27,13 @@ stdenv.mkDerivation rec {
|
||||||
# https://github.com/NixOS/nixpkgs/pull/63174
|
# https://github.com/NixOS/nixpkgs/pull/63174
|
||||||
# https://github.com/NixOS/nixpkgs/pull/72342
|
# https://github.com/NixOS/nixpkgs/pull/72342
|
||||||
./utf8-xmlErrorFuncHandler.patch
|
./utf8-xmlErrorFuncHandler.patch
|
||||||
|
|
||||||
|
# Work around lxml API misuse.
|
||||||
|
# https://gitlab.gnome.org/GNOME/libxml2/issues/255
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://gitlab.gnome.org/GNOME/libxml2/commit/85b1792e37b131e7a51af98a37f92472e8de5f3f.patch";
|
||||||
|
sha256 = "epqlNs2S0Zczox3KyCB6R2aJKh87lXydlZ0x6tLHweE=";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
outputs = [ "bin" "dev" "out" "man" "doc" ]
|
outputs = [ "bin" "dev" "out" "man" "doc" ]
|
||||||
|
|
|
@ -47,11 +47,6 @@ buildPythonPackage rec {
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
|
||||||
# https://github.com/NixOS/nixpkgs/issues/124165
|
|
||||||
"test_bridge_getdevicestatus"
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "pywemo" ];
|
pythonImportsCheck = [ "pywemo" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -1,11 +1,21 @@
|
||||||
{ lib, stdenv, fetchurl, autoreconfHook, fuse, curl, pkg-config, glib, zlib }:
|
{ lib, stdenv, fetchurl, autoreconfHook, fuse, curl, pkg-config, glib, zlib }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
name = "curlftpfs-0.9.2";
|
pname = "curlftpfs";
|
||||||
|
version = "0.9.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/curlftpfs/curlftpfs-0.9.2.tar.gz";
|
url = "mirror://sourceforge/curlftpfs/curlftpfs-${version}.tar.gz";
|
||||||
sha256 = "0n397hmv21jsr1j7zx3m21i7ryscdhkdsyqpvvns12q7qwwlgd2f";
|
sha256 = "0n397hmv21jsr1j7zx3m21i7ryscdhkdsyqpvvns12q7qwwlgd2f";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# This removes AC_FUNC_MALLOC and AC_FUNC_REALLOC from configure.ac because
|
||||||
|
# it is known to cause problems. Search online for "rpl_malloc" and
|
||||||
|
# "rpl_realloc" to find out more.
|
||||||
|
./fix-rpl_malloc.patch
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||||
buildInputs = [ fuse curl glib zlib ];
|
buildInputs = [ fuse curl glib zlib ];
|
||||||
|
|
||||||
|
@ -24,7 +34,7 @@ stdenv.mkDerivation {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Filesystem for accessing FTP hosts based on FUSE and libcurl";
|
description = "Filesystem for accessing FTP hosts based on FUSE and libcurl";
|
||||||
homepage = "http://curlftpfs.sourceforge.net";
|
homepage = "http://curlftpfs.sourceforge.net";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2Only;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
diff -Naur a/configure.ac b/configure.ac
|
||||||
|
--- a/configure.ac 2008-04-23 20:37:42.000000000 +0900
|
||||||
|
+++ b/configure.ac 2021-05-16 01:28:24.000000000 +0900
|
||||||
|
@@ -46,9 +46,7 @@
|
||||||
|
|
||||||
|
# Checks for library functions.
|
||||||
|
AC_FUNC_CHOWN
|
||||||
|
-AC_FUNC_MALLOC
|
||||||
|
AC_FUNC_MKTIME
|
||||||
|
-AC_FUNC_REALLOC
|
||||||
|
AC_FUNC_SELECT_ARGTYPES
|
||||||
|
AC_FUNC_STRFTIME
|
||||||
|
AC_FUNC_UTIME_NULL
|
|
@ -11606,7 +11606,7 @@ in
|
||||||
};
|
};
|
||||||
rust_1_52 = callPackage ../development/compilers/rust/1_52.nix {
|
rust_1_52 = callPackage ../development/compilers/rust/1_52.nix {
|
||||||
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
|
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
|
||||||
llvm_11 = llvmPackages_11.libllvm;
|
llvm_12 = llvmPackages_12.libllvm;
|
||||||
};
|
};
|
||||||
rust = rust_1_52;
|
rust = rust_1_52;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue