Merge remote-tracking branch 'origin/staging' into staging-next

This commit is contained in:
Jonathan Ringer 2021-05-22 19:23:14 -07:00
commit b9b9cdb87c
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0
69 changed files with 519 additions and 336 deletions

View File

@ -302,6 +302,12 @@
githubId = 4296804; githubId = 4296804;
name = "Alex Franchuk"; name = "Alex Franchuk";
}; };
agbrooks = {
email = "andrewgrantbrooks@gmail.com";
github = "agbrooks";
githubId = 19290901;
name = "Andrew Brooks";
};
aherrmann = { aherrmann = {
email = "andreash87@gmx.ch"; email = "andreash87@gmx.ch";
github = "aherrmann"; github = "aherrmann";

View File

@ -10,18 +10,18 @@
, darwin , darwin
}: }:
rustPlatform.buildRustPackage.override { stdenv = stdenv; } rec { rustPlatform.buildRustPackage rec {
pname = "openethereum"; pname = "openethereum";
version = "3.2.5"; version = "3.2.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "openethereum"; owner = "openethereum";
repo = "openethereum"; repo = "openethereum";
rev = "v${version}"; rev = "v${version}";
sha256 = "1g48fkznvr9fs3j9zy2d9pcwnahmyghxg2b9bsn2mxpyczmfqrki"; sha256 = "0lxps3cyg8dzb9qr1kg91s9jc3mnm6hxybwcbhva38pcq4yc40xc";
}; };
cargoSha256 = "02nlm5ariv4dr6b3rckzs7hw1xrl83yvhimrzb0g5l0j0sxh1nhc"; cargoSha256 = "08yrpls3szmw6vy2c4d6b1k907ga0809ylvyx0zb6f8mp8z7ahl2";
nativeBuildInputs = [ cmake pkg-config ]; nativeBuildInputs = [ cmake pkg-config ];

View File

@ -40,7 +40,7 @@ in stdenv.mkDerivation rec {
] ++ lib.optional guiSupport makeWrapper; ] ++ lib.optional guiSupport makeWrapper;
buildInputs = [ boehmgc readline ] buildInputs = [ boehmgc readline ]
++ lib.optional guiSupport tk ++ lib.optionals guiSupport [ tk tcl.tclPackageHook tcllib ]
++ lib.optional miSupport json_c ++ lib.optional miSupport json_c
++ lib.optional nbdSupport libnbd ++ lib.optional nbdSupport libnbd
++ lib.optional textStylingSupport gettext ++ lib.optional textStylingSupport gettext
@ -57,11 +57,6 @@ in stdenv.mkDerivation rec {
doCheck = !isCross; doCheck = !isCross;
checkInputs = lib.optionals (!isCross) [ dejagnu ]; checkInputs = lib.optionals (!isCross) [ dejagnu ];
postFixup = lib.optionalString guiSupport ''
wrapProgram "$out/bin/poke-gui" \
--prefix TCLLIBPATH ' ' ${tcllib}/lib/tcllib${tcllib.version}
'';
meta = with lib; { meta = with lib; {
description = "Interactive, extensible editor for binary data"; description = "Interactive, extensible editor for binary data";
homepage = "http://www.jemarch.net/poke"; homepage = "http://www.jemarch.net/poke";

View File

@ -18,13 +18,13 @@ in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "imagemagick"; pname = "imagemagick";
version = "7.0.11-9"; version = "7.0.11-12";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ImageMagick"; owner = "ImageMagick";
repo = "ImageMagick"; repo = "ImageMagick";
rev = version; rev = version;
sha256 = "sha256-eL9zFrgkLb3pS8/UlQB5+p50UG8j3Q7TNDwcO/3BuXo="; sha256 = "sha256-vTCfpHcja0z/aplcunUDlg/90EbfrR/xQ9bzdG0n2RY=";
}; };
outputs = [ "out" "dev" "doc" ]; # bin/ isn't really big outputs = [ "out" "dev" "doc" ]; # bin/ isn't really big

View File

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "k9s"; pname = "k9s";
version = "0.24.8"; version = "0.24.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "derailed"; owner = "derailed";
repo = "k9s"; repo = "k9s";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-6RGm2uiYvsdpWdhNwDTw4z1O6uNErkWTuyOiwKIvXOY="; sha256 = "sha256-9/P6OaSZDJ98EQ9DM4Oib0T1sC1K3WxUXh4IQU3qXbs=";
}; };
buildFlagsArray = '' buildFlagsArray = ''
@ -18,7 +18,7 @@ buildGoModule rec {
-X github.com/derailed/k9s/cmd.commit=${src.rev} -X github.com/derailed/k9s/cmd.commit=${src.rev}
''; '';
vendorSha256 = "sha256-lzxGTubm+qQes5QKaamfmSkXs4qquHHjIhts8YmKlYI="; vendorSha256 = "sha256-hqmymxP4zK8GVqOxzB6vRfFyo+VIeI1suBu64/oEVig=";
doCheck = false; doCheck = false;

View File

@ -17,14 +17,14 @@ let
}; };
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "14.31.38"; version = "14.31.39";
pname = "jmol"; pname = "jmol";
src = let src = let
baseVersion = "${lib.versions.major version}.${lib.versions.minor version}"; baseVersion = "${lib.versions.major version}.${lib.versions.minor version}";
in fetchurl { in fetchurl {
url = "mirror://sourceforge/jmol/Jmol/Version%20${baseVersion}/Jmol%20${version}/Jmol-${version}-binary.tar.gz"; url = "mirror://sourceforge/jmol/Jmol/Version%20${baseVersion}/Jmol%20${version}/Jmol-${version}-binary.tar.gz";
sha256 = "sha256-yXJ1KtTH3bi24GFiVXu8zzQkreDkqbCxgm7fVoSJepg="; sha256 = "sha256-ss+QvBsmivqNdjXW45Sv9h/JXuZpryCGmRTsUgcDlRE=";
}; };
patchPhase = '' patchPhase = ''

View File

@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-uNDJIBlt2K4pFS+nRI5ROh+nxYiHG3heP7/Ae0KgX7k="; sha256 = "sha256-uNDJIBlt2K4pFS+nRI5ROh+nxYiHG3heP7/Ae0KgX7k=";
}; };
nativeBuildInputs = [ installShellFiles tcl ]; nativeBuildInputs = [ installShellFiles tcl tcllib ];
buildInputs = [ zlib openssl readline sqlite which ed ] buildInputs = [ zlib openssl readline sqlite which ed ]
++ lib.optional stdenv.isDarwin libiconv; ++ lib.optional stdenv.isDarwin libiconv;
@ -36,10 +36,6 @@ stdenv.mkDerivation rec {
configureFlags = [ "--disable-internal-sqlite" ] configureFlags = [ "--disable-internal-sqlite" ]
++ lib.optional withJson "--json"; ++ lib.optional withJson "--json";
preCheck = ''
export TCLLIBPATH="${tcllib}/lib/tcllib${tcllib.version}"
'';
preBuild = '' preBuild = ''
export USER=nonexistent-but-specified-user export USER=nonexistent-but-specified-user
''; '';

View File

@ -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 ''

View File

@ -2,13 +2,13 @@
buildKodiBinaryAddon rec { buildKodiBinaryAddon rec {
pname = "inputstream-adaptive"; pname = "inputstream-adaptive";
namespace = "inputstream.adaptive"; namespace = "inputstream.adaptive";
version = "2.6.14"; version = "2.6.15";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "xbmc"; owner = "xbmc";
repo = "inputstream.adaptive"; repo = "inputstream.adaptive";
rev = "${version}-${rel}"; rev = "${version}-${rel}";
sha256 = "sha256-5hYB9J4syY+2XOTdg9h7xLk8MMEG88EETIgkUmz4KOU="; sha256 = "sha256-Q4MaHIUM/ixAKyTklwuXCu7t/po+q5ZT+YpYf1n+PkA=";
}; };
extraNativeBuildInputs = [ gtest ]; extraNativeBuildInputs = [ gtest ];

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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));
}

View File

@ -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));

View File

@ -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"])

View File

@ -1,6 +1,6 @@
{ lib, stdenv, fetchFromGitHub, makeWrapper }: { lib, stdenv, fetchFromGitHub, makeWrapper }:
let let
version = "0.9.1"; version = "0.10";
name = "chibi-scheme-${version}"; name = "chibi-scheme-${version}";
in in
stdenv.mkDerivation { stdenv.mkDerivation {
@ -18,7 +18,7 @@ stdenv.mkDerivation {
owner = "ashinn"; owner = "ashinn";
repo = "chibi-scheme"; repo = "chibi-scheme";
rev = version; rev = version;
sha256 = "0nd63i924ifh39cba1hd4sbi6vh1cb73v97nrn4bf8rrjh3k8pdi"; sha256 = "sha256-7vDxcnXhq1wJSLFHGxtwh+H+KWxh6B0JXSMPzSmQFXo=";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];

View File

@ -7,7 +7,7 @@ pipBuildPhase() {
mkdir -p dist mkdir -p dist
echo "Creating a wheel..." echo "Creating a wheel..."
@pythonInterpreter@ -m pip wheel --no-index --no-deps --no-clean --no-build-isolation --wheel-dir dist . @pythonInterpreter@ -m pip wheel --verbose --no-index --no-deps --no-clean --no-build-isolation --wheel-dir dist .
echo "Finished creating a wheel..." echo "Finished creating a wheel..."
runHook postBuild runHook postBuild

View File

@ -12,7 +12,7 @@ let
opString = lib.optionalString; opString = lib.optionalString;
patchSet = import ./rvm-patchsets.nix { inherit fetchFromGitHub; }; patchSet = import ./rvm-patchsets.nix { inherit fetchFromGitHub; };
config = import ./config.nix { inherit fetchFromSavannah; }; config = import ./config.nix { inherit fetchFromSavannah; };
rubygems = import ./rubygems { inherit stdenv lib fetchurl; }; rubygems = import ./rubygems { inherit stdenv lib fetchurl fetchpatch; };
# Contains the ruby version heuristics # Contains the ruby version heuristics
rubyVersion = import ./ruby-version.nix { inherit lib; }; rubyVersion = import ./ruby-version.nix { inherit lib; };

View File

@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl }: { stdenv, lib, fetchurl, fetchpatch }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "rubygems"; name = "rubygems";
@ -13,6 +13,12 @@ stdenv.mkDerivation rec {
./0001-add-post-extract-hook.patch ./0001-add-post-extract-hook.patch
./0002-binaries-with-env-shebang.patch ./0002-binaries-with-env-shebang.patch
./0003-gem-install-default-to-user.patch ./0003-gem-install-default-to-user.patch
# Ensure tmp directory are not left behind
# https://github.com/rubygems/rubygems/pull/4610
(fetchpatch {
url = "https://github.com/rubygems/rubygems/commit/2c2ffde6e4a9f7f571d38af687034fb8507a833d.patch";
sha256 = "sha256-bs2dXALKiJvMgk7lKjMx0NzGqlEqDYBBO35UrzNifms=";
})
]; ];
installPhase = '' installPhase = ''

View File

@ -1,55 +1,67 @@
{ lib, stdenv { lib, stdenv, callPackage, makeSetupHook, makeWrapper
# Version specific stuff # Version specific stuff
, release, version, src , release, version, src
, ... , ...
}: }:
stdenv.mkDerivation { let
pname = "tcl"; baseInterp =
inherit version; stdenv.mkDerivation {
pname = "tcl";
inherit version src;
inherit src; outputs = [ "out" "man" ];
outputs = [ "out" "man" ]; setOutputFlags = false;
setOutputFlags = false; preConfigure = ''
cd unix
'';
preConfigure = '' configureFlags = [
cd unix "--enable-threads"
''; # Note: using $out instead of $man to prevent a runtime dependency on $man.
"--mandir=${placeholder "out"}/share/man"
"--enable-man-symlinks"
# Don't install tzdata because NixOS already has a more up-to-date copy.
"--with-tzdata=no"
"tcl_cv_strtod_unbroken=ok"
] ++ lib.optional stdenv.is64bit "--enable-64bit";
configureFlags = [ enableParallelBuilding = true;
"--enable-threads"
# Note: using $out instead of $man to prevent a runtime dependency on $man.
"--mandir=${placeholder "out"}/share/man"
"--enable-man-symlinks"
# Don't install tzdata because NixOS already has a more up-to-date copy.
"--with-tzdata=no"
"tcl_cv_strtod_unbroken=ok"
] ++ lib.optional stdenv.is64bit "--enable-64bit";
enableParallelBuilding = true; postInstall = let
dllExtension = stdenv.hostPlatform.extensions.sharedLibrary;
in ''
make install-private-headers
ln -s $out/bin/tclsh${release} $out/bin/tclsh
ln -s $out/lib/libtcl${release}${dllExtension} $out/lib/libtcl${dllExtension}
'';
postInstall = let meta = with lib; {
dllExtension = stdenv.hostPlatform.extensions.sharedLibrary; description = "The Tcl scripting language";
in '' homepage = "https://www.tcl.tk/";
make install-private-headers license = licenses.tcltk;
ln -s $out/bin/tclsh${release} $out/bin/tclsh platforms = platforms.all;
ln -s $out/lib/libtcl${release}${dllExtension} $out/lib/libtcl${dllExtension} maintainers = with maintainers; [ agbrooks ];
''; };
meta = with lib; { passthru = rec {
description = "The Tcl scripting language"; inherit release version;
homepage = "https://www.tcl.tk/"; libPrefix = "tcl${release}";
license = licenses.tcltk; libdir = "lib/${libPrefix}";
platforms = platforms.all; tclPackageHook = callPackage ({}: makeSetupHook {
maintainers = with maintainers; [ vrthra ]; name = "tcl-package-hook";
}; deps = [ makeWrapper ];
} ./tcl-package-hook.sh) {};
};
};
passthru = rec { mkTclDerivation = callPackage ./mk-tcl-derivation.nix { tcl = baseInterp; };
inherit release version;
libPrefix = "tcl${release}"; in baseInterp.overrideAttrs (self: {
libdir = "lib/${libPrefix}"; passthru = self.passthru // {
}; inherit mkTclDerivation;
} };
})

View File

@ -0,0 +1,69 @@
# Generic builder for tcl packages/applications, generally based on mk-python-derivation.nix
{ tcl
, lib
, makeWrapper
, runCommand
, writeScript
}:
{ buildInputs ? []
, nativeBuildInputs ? []
, propagatedBuildInputs ? []
, checkInputs ? []
# true if we should skip the configuration phase altogether
, dontConfigure ? false
# Extra flags passed to configure step
, configureFlags ? []
# Whether or not we should add common Tcl-related configure flags
, addTclConfigureFlags ? true
, meta ? {}
, passthru ? {}
, doCheck ? true
, ... } @ attrs:
let
inherit (tcl) stdenv;
inherit (lib) getBin optionalAttrs optionals;
defaultTclPkgConfigureFlags = [
"--with-tcl=${tcl}/lib"
"--with-tclinclude=${tcl}/include"
"--exec-prefix=\${out}"
];
self = (stdenv.mkDerivation ((builtins.removeAttrs attrs [
"addTclConfigureFlags" "checkPhase" "checkInputs" "doCheck"
]) // {
buildInputs = buildInputs ++ [ makeWrapper tcl.tclPackageHook ];
nativeBuildInputs = nativeBuildInputs ++ [ tcl ];
propagatedBuildInputs = propagatedBuildInputs ++ [ tcl ];
TCLSH = "${getBin tcl}/bin/tclsh";
# Run tests after install, at which point we've done all TCLLIBPATH setup
doCheck = false;
doInstallCheck = attrs.doCheck or ((attrs ? doInstallCheck) && attrs.doInstallCheck);
installCheckInputs = checkInputs ++ (optionals (attrs ? installCheckInputs) attrs.installCheckInputs);
# Add typical values expected by TEA for configureFlags
configureFlags =
if (!dontConfigure && addTclConfigureFlags)
then (configureFlags ++ defaultTclPkgConfigureFlags)
else configureFlags;
meta = {
platforms = tcl.meta.platforms;
} // meta;
} // optionalAttrs (attrs?checkPhase) {
installCheckPhase = attrs.checkPhase;
}
));
in lib.extendDerivation true passthru self

View File

@ -0,0 +1,74 @@
# This hook ensures that we do the following in post-fixup:
# * wrap any installed executables with a wrapper that configures TCLLIBPATH
# * write a setup hook that extends the TCLLIBPATH of any anti-dependencies
# Add a directory to TCLLIBPATH, provided that it exists
_addToTclLibPath() {
local tclPkg="$1"
if [[ -z "$tclPkg" ]]; then
return
fi
if [[ ! -d "$tclPkg" ]]; then
>&2 echo "can't add $tclPkg to TCLLIBPATH; that directory doesn't exist"
exit 1
fi
if [[ "$tclPkg" == *" "* ]]; then
tclPkg="{$tclPkg}"
fi
if [[ -z "${TCLLIBPATH-}" ]]; then
export TCLLIBPATH="$tclPkg"
else
if [[ "$TCLLIBPATH" != *"$tclPkg "* && "$TCLLIBPATH" != *"$tclPkg" ]]; then
export TCLLIBPATH="${TCLLIBPATH} $tclPkg"
fi
fi
}
# Locate any directory containing an installed pkgIndex file
findInstalledTclPkgs() {
local -r newLibDir="${!outputLib}/lib"
if [[ ! -d "$newLibDir" ]]; then
>&2 echo "Assuming no loadable tcl packages installed ($newLibDir does not exist)"
return
fi
echo "$(find "$newLibDir" -name pkgIndex.tcl -exec dirname {} \;)"
}
# Wrap any freshly-installed binaries and set up their TCLLIBPATH
wrapTclBins() {
if [[ -z "${TCLLIBPATH-}" ]]; then
echo "skipping automatic Tcl binary wrapping (nothing to do)"
return
fi
local -r tclBinsDir="${!outputBin}/bin"
if [[ ! -d "$tclBinsDir" ]]; then
echo "No outputBin found, not using any TCLLIBPATH wrapper"
return
fi
find "$tclBinsDir" -type f -executable -print |
while read -r someBin; do
echo "Adding TCLLIBPATH wrapper for $someBin"
wrapProgram "$someBin" --prefix TCLLIBPATH ' ' "$TCLLIBPATH"
done
}
# Generate hook to adjust TCLLIBPATH in anti-dependencies
writeTclLibPathHook() {
local -r hookPath="${!outputLib}/nix-support/setup-hook"
mkdir -p "$(dirname "$hookPath")"
typeset -f _addToTclLibPath >> "$hookPath"
local -r tclPkgs=$(findInstalledTclPkgs)
while IFS= read -r tclPkg; do
echo "_addToTclLibPath \"$tclPkg\"" >> "$hookPath"
_addToTclLibPath "$tclPkg" true
done <<< "$tclPkgs"
}
postFixupHooks+=(writeTclLibPathHook)
postFixupHooks+=(wrapTclBins)

View File

@ -8,7 +8,7 @@
, tk , tk
}: }:
stdenv.mkDerivation rec { tcl.mkTclDerivation rec {
pname = "tclreadline"; pname = "tclreadline";
version = "2.3.8"; version = "2.3.8";
@ -26,7 +26,6 @@ stdenv.mkDerivation rec {
]; ];
buildInputs = [ buildInputs = [
readline readline
tcl
tk tk
]; ];
@ -35,7 +34,6 @@ stdenv.mkDerivation rec {
configureFlags = [ configureFlags = [
"--enable-tclshrl" "--enable-tclshrl"
"--enable-wishrl" "--enable-wishrl"
"--with-tcl=${tcl}/lib"
"--with-tk=${tk}/lib" "--with-tk=${tk}/lib"
"--with-readline-includes=${readline.dev}/include/readline" "--with-readline-includes=${readline.dev}/include/readline"
"--with-libtool=${libtool}" "--with-libtool=${libtool}"

View File

@ -1,5 +1,6 @@
{ lib, stdenv, fetchurl, meson, ninja, gettext, pkg-config, glib { lib, stdenv, fetchurl, meson, ninja, gettext, pkg-config, glib
, fixDarwinDylibNames, gobject-introspection, gnome , fixDarwinDylibNames, gobject-introspection, gnome
, withIntrospection ? stdenv.buildPlatform == stdenv.hostPlatform
}: }:
let let
@ -17,8 +18,9 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
nativeBuildInputs = [ meson ninja pkg-config gettext gobject-introspection glib ] nativeBuildInputs = [ meson ninja pkg-config gettext glib ]
++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames; ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames
++ lib.optional withIntrospection gobject-introspection;
propagatedBuildInputs = [ propagatedBuildInputs = [
# Required by atk.pc # Required by atk.pc
@ -31,6 +33,10 @@ stdenv.mkDerivation rec {
./fix_pc.patch ./fix_pc.patch
]; ];
mesonFlags = [
"-Dintrospection=${lib.boolToString withIntrospection}"
];
doCheck = true; doCheck = true;
passthru = { passthru = {

View File

@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, tcl }: { lib, fetchurl, tcl, tk }:
stdenv.mkDerivation rec { tcl.mkTclDerivation rec {
pname = "bwidget"; pname = "bwidget";
version = "1.9.14"; version = "1.9.14";
@ -10,21 +10,17 @@ stdenv.mkDerivation rec {
}; };
dontBuild = true; dontBuild = true;
propagatedBuildInputs = [ tk ];
installPhase = '' installPhase = ''
mkdir -p "$out/lib/${passthru.libPrefix}" mkdir -p "$out/lib/bwidget${version}"
cp -R *.tcl lang images "$out/lib/${passthru.libPrefix}" cp -R *.tcl lang images "$out/lib/bwidget${version}"
''; '';
passthru = {
libPrefix = "bwidget${version}";
};
buildInputs = [ tcl ];
meta = { meta = {
homepage = "https://sourceforge.net/projects/tcllib"; homepage = "https://sourceforge.net/projects/tcllib";
description = "High-level widget set for Tcl/Tk"; description = "High-level widget set for Tcl/Tk";
maintainers = with lib.maintainers; [ agbrooks ];
license = lib.licenses.tcltk; license = lib.licenses.tcltk;
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
}; };

View File

@ -10,14 +10,14 @@ assert useVulkan -> withExamples;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "dav1d"; pname = "dav1d";
version = "0.8.2"; version = "0.9.0";
src = fetchFromGitLab { src = fetchFromGitLab {
domain = "code.videolan.org"; domain = "code.videolan.org";
owner = "videolan"; owner = "videolan";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "0plmnxpz66yv3nqv1kgbyyfnwfqi9dqs0zbsdj488i6464a1m6si"; sha256 = "0ki3wlyaqr80gl1srbbd18dd5bs1sl9icxym8ar62abpvgzxl5yk";
}; };
nativeBuildInputs = [ meson ninja nasm pkg-config ]; nativeBuildInputs = [ meson ninja nasm pkg-config ];

View File

@ -3,11 +3,11 @@
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "dbus-glib-0.110"; name = "dbus-glib-0.112";
src = fetchurl { src = fetchurl {
url = "${meta.homepage}/releases/dbus-glib/${name}.tar.gz"; url = "${meta.homepage}/releases/dbus-glib/${name}.tar.gz";
sha256 = "09g8swvc95bk1z6j8sw463p2v0dqmgm2zjfndf7i8sbcyq67dr3w"; sha256 = "sha256-fVUNzN/NKG4ziVUBgp7Zce62XGFOc6rbSgiu73GbFDo=";
}; };
outputs = [ "out" "dev" "devdoc" ]; outputs = [ "out" "dev" "devdoc" ];
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = "https://dbus.freedesktop.org"; homepage = "https://dbus.freedesktop.org";
license = with lib.licenses; [ afl21 gpl2 ]; license = with lib.licenses; [ afl21 gpl2Plus ];
description = "Obsolete glib bindings for D-Bus lightweight IPC mechanism"; description = "Obsolete glib bindings for D-Bus lightweight IPC mechanism";
maintainers = [ ]; maintainers = [ ];
platforms = lib.platforms.unix; platforms = lib.platforms.unix;

View File

@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, writeText, tcl }: { lib, stdenv, fetchurl, writeText, tcl }:
stdenv.mkDerivation rec { tcl.mkTclDerivation rec {
pname = "incrtcl"; pname = "incrtcl";
version = "4.2.0"; version = "4.2.0";
@ -9,18 +9,12 @@ stdenv.mkDerivation rec {
sha256 = "0w28v0zaraxcq1s9pa6cihqqwqvvwfgz275lks7w4gl7hxjxmasw"; sha256 = "0w28v0zaraxcq1s9pa6cihqqwqvvwfgz275lks7w4gl7hxjxmasw";
}; };
buildInputs = [ tcl ];
configureFlags = [ "--with-tcl=${tcl}/lib" ];
enableParallelBuilding = true; enableParallelBuilding = true;
patchPhase = '' patchPhase = ''
substituteInPlace configure --replace "\''${TCL_SRC_DIR}/generic" "${tcl}/include" substituteInPlace configure --replace "\''${TCL_SRC_DIR}/generic" "${tcl}/include"
''; '';
preConfigure = ''
configureFlags="--exec_prefix=$prefix $configureFlags"
'';
postInstall = '' postInstall = ''
rmdir $out/bin rmdir $out/bin
mv $out/lib/itcl${version}/* $out/lib mv $out/lib/itcl${version}/* $out/lib

View File

@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, tcl, tk, incrtcl }: { lib, stdenv, fetchurl, tcl, tk, incrtcl }:
stdenv.mkDerivation rec { tcl.mkTclDerivation rec {
pname = "itk-tcl"; pname = "itk-tcl";
version = "4.1.0"; version = "4.1.0";
@ -9,11 +9,10 @@ stdenv.mkDerivation rec {
sha256 = "1iy964jfgsfnc1agk1w6bbm44x18ily8d4wmr7cc9z9f4acn2r6s"; sha256 = "1iy964jfgsfnc1agk1w6bbm44x18ily8d4wmr7cc9z9f4acn2r6s";
}; };
buildInputs = [ tcl tk incrtcl ]; buildInputs = [ tk incrtcl ];
enableParallelBuilding = true; enableParallelBuilding = true;
configureFlags = [ configureFlags = [
"--with-tcl=${tcl}/lib"
"--with-tk=${tk}/lib" "--with-tk=${tk}/lib"
"--with-itcl=${incrtcl}/lib" "--with-itcl=${incrtcl}/lib"
"--with-tkinclude=${tk.dev}/include" "--with-tkinclude=${tk.dev}/include"

View File

@ -5,11 +5,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libdrm"; pname = "libdrm";
version = "2.4.105"; version = "2.4.106";
src = fetchurl { src = fetchurl {
url = "https://dri.freedesktop.org/${pname}/${pname}-${version}.tar.xz"; url = "https://dri.freedesktop.org/${pname}/${pname}-${version}.tar.xz";
sha256 = "0iiamypwdfiz250ki120nh598r48yyacmnndb4mkximdgi5h478x"; sha256 = "1m3vwpabjg3az84vmyxi96jyd7rrqm6qkhk1gq41w5wv89aarn4j";
}; };
outputs = [ "out" "dev" "bin" ]; outputs = [ "out" "dev" "bin" ];

View File

@ -4,11 +4,11 @@ assert enableCapabilities -> stdenv.isLinux;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libgcrypt"; pname = "libgcrypt";
version = "1.9.2"; version = "1.9.3";
src = fetchurl { src = fetchurl {
url = "mirror://gnupg/libgcrypt/${pname}-${version}.tar.bz2"; url = "mirror://gnupg/libgcrypt/${pname}-${version}.tar.bz2";
sha256 = "sha256-ssENCRUTsnHkcXcnRgex/7o9lbGIu/qHl/lIrskFPFo="; sha256 = "sha256-l+vk+U4vfjW3UhlM4VoPPGYyTg/2ryZlm7+1/y7DKP0=";
}; };
outputs = [ "out" "dev" "info" ]; outputs = [ "out" "dev" "info" ];
@ -58,6 +58,7 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
homepage = "https://www.gnu.org/software/libgcrypt/"; homepage = "https://www.gnu.org/software/libgcrypt/";
changelog = "https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=blob;f=NEWS;hb=refs/tags/${pname}-${version}";
description = "General-purpose cryptographic library"; description = "General-purpose cryptographic library";
license = licenses.lgpl2Plus; license = licenses.lgpl2Plus;
platforms = platforms.all; platforms = platforms.all;

View File

@ -8,13 +8,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libjpeg-turbo"; pname = "libjpeg-turbo";
version = "2.0.6"; version = "2.1.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "libjpeg-turbo"; owner = "libjpeg-turbo";
repo = "libjpeg-turbo"; repo = "libjpeg-turbo";
rev = version; rev = version;
sha256 = "0njdxfmyk8smj8bbd6fs3lxjaq3lybivwgg16gpnbiyl984dpi9b"; sha256 = "sha256-Ma3Q/zMJPjsQmoaYJtVbHJOx65AfGLWJYi2iRFm3l5s=";
}; };
# This is needed by freeimage # This is needed by freeimage

View File

@ -1,11 +1,11 @@
{ buildPackages, lib, stdenv, fetchurl, gettext, libgpgerror }: { buildPackages, lib, stdenv, fetchurl, gettext, libgpgerror }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libksba-1.5.0"; name = "libksba-1.5.1";
src = fetchurl { src = fetchurl {
url = "mirror://gnupg/libksba/${name}.tar.bz2"; url = "mirror://gnupg/libksba/${name}.tar.bz2";
sha256 = "1fm0mf3wq9fmyi1rmc1vk2fafn6liiw2mgxml3g7ybbb44lz2jmf"; sha256 = "sha256-sPTGXk5EfZojSfa4wOd6KL6VMeRUi6AsVF0fRtx7+SE=";
}; };
outputs = [ "out" "dev" "info" ]; outputs = [ "out" "dev" "info" ];

View File

@ -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 = ''

View File

@ -15,13 +15,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libqmi"; pname = "libqmi";
version = "1.28.2"; version = "1.28.4";
outputs = [ "out" "dev" "devdoc" ]; outputs = [ "out" "dev" "devdoc" ];
src = fetchurl { src = fetchurl {
url = "https://www.freedesktop.org/software/libqmi/${pname}-${version}.tar.xz"; url = "https://www.freedesktop.org/software/libqmi/${pname}-${version}.tar.xz";
sha256 = "jIw+5xmHTSUpvOmzWwKP5DWzbwA5eaNg060JOESdt4M="; sha256 = "sha256-OxTNKrUiGnrbs5/tFu9pdTjqHHkwiCGtLRm1BeHarqA=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libsass"; pname = "libsass";
version = "3.6.4"; version = "3.6.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sass"; owner = "sass";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "074kvacdan85h4qrvsk97575ys9xgkc044gplz3m6vn4a8pcl2rn"; sha256 = "1cxj6r85d5f3qxdwzxrmkx8z875hig4cr8zsi30w6vj23cyds3l2";
# Remove unicode file names which leads to different checksums on HFS+ # Remove unicode file names which leads to different checksums on HFS+
# vs. other filesystems because of unicode normalisation. # vs. other filesystems because of unicode normalisation.
extraPostFetch = '' extraPostFetch = ''

View File

@ -1,8 +1,8 @@
{ lib, stdenv, fetchFromGitHub, meson, ninja, glib, pkg-config, udev, libgudev, doxygen }: { lib, stdenv, fetchFromGitHub, meson, ninja, glib, pkg-config, udev, libgudev, doxygen, python3 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libwacom"; pname = "libwacom";
version = "1.9"; version = "1.10";
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
@ -10,10 +10,10 @@ stdenv.mkDerivation rec {
owner = "linuxwacom"; owner = "linuxwacom";
repo = "libwacom"; repo = "libwacom";
rev = "libwacom-${version}"; rev = "libwacom-${version}";
sha256 = "sha256-o1xCSrWKPzz1GePEVB1jgx2cGzRtw0I6c4wful08Vx4="; sha256 = "sha256-Q7b54AMAxdIzN7TUuhIdlrXaVtj2szV4n3y9bAE0LsU=";
}; };
nativeBuildInputs = [ pkg-config meson ninja doxygen ]; nativeBuildInputs = [ pkg-config meson ninja doxygen python3 ];
mesonFlags = [ "-Dtests=disabled" ]; mesonFlags = [ "-Dtests=disabled" ];

View File

@ -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" ]

View File

@ -5,7 +5,6 @@
, llvmPackages, libffi, libomxil-bellagio, libva-minimal , llvmPackages, libffi, libomxil-bellagio, libva-minimal
, libelf, libvdpau , libelf, libvdpau
, libglvnd , libglvnd
, enableRadv ? true
, galliumDrivers ? ["auto"] , galliumDrivers ? ["auto"]
, driDrivers ? ["auto"] , driDrivers ? ["auto"]
, vulkanDrivers ? ["auto"] , vulkanDrivers ? ["auto"]
@ -32,7 +31,7 @@ with lib;
let let
# Release calendar: https://www.mesa3d.org/release-calendar.html # Release calendar: https://www.mesa3d.org/release-calendar.html
# Release frequency: https://www.mesa3d.org/releasing.html#schedule # Release frequency: https://www.mesa3d.org/releasing.html#schedule
version = "21.0.1"; version = "21.0.3";
branch = versions.major version; branch = versions.major version;
self = stdenv.mkDerivation { self = stdenv.mkDerivation {
@ -46,7 +45,7 @@ self = stdenv.mkDerivation {
"ftp://ftp.freedesktop.org/pub/mesa/${version}/mesa-${version}.tar.xz" "ftp://ftp.freedesktop.org/pub/mesa/${version}/mesa-${version}.tar.xz"
"ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz" "ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz"
]; ];
sha256 = "1fqj2xhhd1ary0pfg31jq6fqcnd6qgyrw1445nmz554k8n2ck7rp"; sha256 = "0awiyvicvcn3b18x0vx5ik3ly0k3k51ivz2ljj8pnx6ms95nyp2n";
}; };
prePatch = "patchShebangs ."; prePatch = "patchShebangs .";

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, perl, which { lib, stdenv, fetchFromGitHub, perl, which
# Most packages depending on openblas expect integer width to match # Most packages depending on openblas expect integer width to match
# pointer width, but some expect to use 32-bit integers always # pointer width, but some expect to use 32-bit integers always
# (for compatibility with reference BLAS). # (for compatibility with reference BLAS).
@ -116,7 +116,7 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "openblas"; pname = "openblas";
version = "0.3.13"; version = "0.3.15";
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
@ -124,19 +124,9 @@ stdenv.mkDerivation rec {
owner = "xianyi"; owner = "xianyi";
repo = "OpenBLAS"; repo = "OpenBLAS";
rev = "v${version}"; rev = "v${version}";
sha256 = "14jxh0v3jfbw4mfjx4mcz4dd51lyq7pqvh9k8dg94539ypzjr2lj"; sha256 = "1qjr02cqncv20abdp1yzr55n7smhx6h9chqvb0xbp18byynvj87w";
}; };
# apply https://github.com/xianyi/OpenBLAS/pull/3060 to fix a crash on arm
# remove this when updating to 0.3.14 or newer
patches = [
(fetchpatch {
name = "label-get_cpu_ftr-as-volatile.patch";
url = "https://github.com/xianyi/OpenBLAS/commit/6fe0f1fab9d6a7f46d71d37ebb210fbf56924fbc.diff";
sha256 = "06gwh73k4sas1ap2fi3jvpifbjkys2vhmnbj4mzrsvj279ljsfdk";
})
];
inherit blas64; inherit blas64;
# Some hardening features are disabled due to sporadic failures in # Some hardening features are disabled due to sporadic failures in

View File

@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, tcl }: { lib, fetchurl, tcl }:
stdenv.mkDerivation rec { tcl.mkTclDerivation rec {
pname = "tcllib"; pname = "tcllib";
version = "1.20"; version = "1.20";
@ -9,12 +9,6 @@ stdenv.mkDerivation rec {
sha256 = "0wax281h6ksz974a5qpfgf9y34lmlpd8i87lkm1w94ybbd3rgc73"; sha256 = "0wax281h6ksz974a5qpfgf9y34lmlpd8i87lkm1w94ybbd3rgc73";
}; };
passthru = {
libPrefix = "tcllib${version}";
};
buildInputs = [ tcl ];
meta = { meta = {
homepage = "https://sourceforge.net/projects/tcllib/"; homepage = "https://sourceforge.net/projects/tcllib/";
description = "Tcl-only library of standard routines for Tcl"; description = "Tcl-only library of standard routines for Tcl";

View File

@ -1,33 +1,24 @@
{ lib, stdenv, fetchurl, tcl, openssl }: { lib, fetchurl, tcl, openssl }:
stdenv.mkDerivation rec { tcl.mkTclDerivation rec {
pname = "tcltls"; pname = "tcltls";
version = "1.6.7"; version = "1.7.21";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/tls/tls${version}-src.tar.gz"; url = "https://core.tcl-lang.org/tcltls/uv/tcltls-${version}.tar.gz";
sha256 = "1f53sfcnrridjl5ayrq1xrqkahs8khf8c3d0m2brndbhahzdw6ai"; sha256 = "0xf1rfsnn4k9j1bd2a1p8ir0xr4a3phgr9lcgbazh4084l2y8sl0";
}; };
buildInputs = [ tcl openssl ]; buildInputs = [ openssl ];
configureFlags = [ configureFlags = [
"--with-tcl=${tcl}/lib"
"--with-tclinclude=${tcl}/include"
"--with-ssl-dir=${openssl.dev}" "--with-ssl-dir=${openssl.dev}"
]; ];
preConfigure = ''
configureFlags="--exec_prefix=$prefix $configureFlags"
'';
passthru = {
libPrefix = "tls${version}";
};
meta = { meta = {
homepage = "http://tls.sourceforge.net/"; homepage = "https://core.tcl-lang.org/tcltls/index";
description = "An OpenSSL / RSA-bsafe Tcl extension"; description = "An OpenSSL / RSA-bsafe Tcl extension";
maintainers = [ lib.maintainers.agbrooks ];
license = lib.licenses.tcltk; license = lib.licenses.tcltk;
platforms = lib.platforms.unix; platforms = lib.platforms.unix;
}; };

View File

@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, tcl }: { lib, fetchurl, tcl }:
stdenv.mkDerivation rec { tcl.mkTclDerivation rec {
name = "tclx-${version}.${patch}"; name = "tclx-${version}.${patch}";
version = "8.4"; version = "8.4";
patch = "1"; patch = "1";
@ -10,13 +10,10 @@ stdenv.mkDerivation rec {
sha256 = "1v2qwzzidz0is58fd1p7wfdbscxm3ip2wlbqkj5jdhf6drh1zd59"; sha256 = "1v2qwzzidz0is58fd1p7wfdbscxm3ip2wlbqkj5jdhf6drh1zd59";
}; };
passthru = { # required in order for tclx to properly detect tclx.tcl at runtime
libPrefix = ""; # Using tclx${version} did not work postInstall = ''
}; ln -s $prefix/lib/tclx${version} $prefix/lib/tclx${version}/tclx${version}
'';
buildInputs = [ tcl ];
configureFlags = [ "--with-tcl=${tcl}/lib" "--exec-prefix=\${prefix}" ];
meta = { meta = {
homepage = "http://tclx.sourceforge.net/"; homepage = "http://tclx.sourceforge.net/";

View File

@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, tcl, tk, fetchpatch } : { lib, stdenv, fetchurl, tcl, tk, fetchpatch } :
stdenv.mkDerivation { tcl.mkTclDerivation {
version = "8.4.3"; version = "8.4.3";
pname = "tix"; pname = "tix";
src = fetchurl { src = fetchurl {
@ -20,7 +20,7 @@ stdenv.mkDerivation {
sha256 = "1jaz0l22xj7x1k4rb9ia6i1psnbwk4pblgq4gfvya7gg7fbb7r36"; sha256 = "1jaz0l22xj7x1k4rb9ia6i1psnbwk4pblgq4gfvya7gg7fbb7r36";
}) })
; ;
buildInputs = [ tcl tk ]; buildInputs = [ tk ];
# the configure script expects to find the location of the sources of # the configure script expects to find the location of the sources of
# tcl and tk in {tcl,tk}Config.sh # tcl and tk in {tcl,tk}Config.sh
# In fact, it only needs some private headers. We copy them in # In fact, it only needs some private headers. We copy them in
@ -34,8 +34,8 @@ stdenv.mkDerivation {
ln -s $i private_headers/generic; ln -s $i private_headers/generic;
done; done;
''; '';
addTclConfigureFlags = false;
configureFlags = [ configureFlags = [
"--with-tclinclude=${tcl}/include"
"--with-tclconfig=." "--with-tclconfig=."
"--with-tkinclude=${tk.dev}/include" "--with-tkinclude=${tk.dev}/include"
"--with-tkconfig=." "--with-tkconfig=."
@ -52,4 +52,3 @@ stdenv.mkDerivation {
]; ];
}; };
} }

View File

@ -2,7 +2,7 @@
, enableAqua ? stdenv.isDarwin, darwin , enableAqua ? stdenv.isDarwin, darwin
, ... }: , ... }:
stdenv.mkDerivation { tcl.mkTclDerivation {
name = "tk-${tcl.version}"; name = "tk-${tcl.version}";
inherit src patches; inherit src patches;
@ -33,14 +33,13 @@ stdenv.mkDerivation {
configureFlags = [ configureFlags = [
"--enable-threads" "--enable-threads"
"--with-tcl=${tcl}/lib"
] ++ lib.optional stdenv.is64bit "--enable-64bit" ] ++ lib.optional stdenv.is64bit "--enable-64bit"
++ lib.optional enableAqua "--enable-aqua"; ++ lib.optional enableAqua "--enable-aqua";
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = lib.optional enableAqua (with darwin.apple_sdk.frameworks; [ Cocoa ]); buildInputs = lib.optional enableAqua (with darwin.apple_sdk.frameworks; [ Cocoa ]);
propagatedBuildInputs = [ tcl libXft ]; propagatedBuildInputs = [ libXft ];
doCheck = false; # fails. can't find itself doCheck = false; # fails. can't find itself

View File

@ -1,15 +1,29 @@
{ lib, stdenv, fetchurl, wayland-scanner }: { lib, stdenv, fetchurl
, pkg-config
, meson, ninja, wayland-scanner
, python3, wayland
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "wayland-protocols"; pname = "wayland-protocols";
version = "1.21"; version = "1.21";
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
src = fetchurl { src = fetchurl {
url = "https://wayland.freedesktop.org/releases/${pname}-${version}.tar.xz"; url = "https://wayland.freedesktop.org/releases/${pname}-${version}.tar.xz";
sha256 = "1rfdlkzz67qsb955zqb8jbw3m22pl6ppvrvfq8bqiqcb5n24b6dr"; sha256 = "1rfdlkzz67qsb955zqb8jbw3m22pl6ppvrvfq8bqiqcb5n24b6dr";
}; };
nativeBuildInputs = [ wayland-scanner ]; postPatch = lib.optionalString doCheck ''
patchShebangs tests/
'';
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [ meson ninja wayland-scanner ];
checkInputs = [ python3 wayland ];
mesonFlags = [ "-Dtests=${lib.boolToString doCheck}" ];
meta = { meta = {
description = "Wayland protocol extensions"; description = "Wayland protocol extensions";

View File

@ -10,13 +10,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "importlib-metadata"; pname = "importlib-metadata";
version = "3.7.3"; version = "4.0.1";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
pname = "importlib_metadata"; pname = "importlib_metadata";
inherit version; inherit version;
sha256 = "742add720a20d0467df2f444ae41704000f50e1234f46174b51f9c6031a1bd71"; sha256 = "sha256-jFARluSfud9d9DgzvbHkMo9khHdj7IpQcDFItzeE1YE=";
}; };
nativeBuildInputs = [ setuptools-scm ]; nativeBuildInputs = [ setuptools-scm ];

View File

@ -1,5 +1,6 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, pythonOlder
, fetchPypi , fetchPypi
, marshmallow , marshmallow
, sqlalchemy , sqlalchemy
@ -9,11 +10,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "marshmallow-sqlalchemy"; pname = "marshmallow-sqlalchemy";
version = "0.24.2"; version = "0.25.0";
disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "ee3ead3b83de6608c6850ff60515691b0dc556ca226680f8a82b9f785cdb71b1"; sha256 = "0i39ckrixh1w9fmkm0wl868gvza72j5la0x6dd0cij9shf1iyjgi";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -21,6 +23,10 @@ buildPythonPackage rec {
sqlalchemy sqlalchemy
]; ];
pythonImportsCheck = [
"marshmallow_sqlalchemy"
];
checkInputs = [ checkInputs = [
pytest-lazy-fixture pytest-lazy-fixture
pytestCheckHook pytestCheckHook
@ -28,7 +34,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
homepage = "https://github.com/marshmallow-code/marshmallow-sqlalchemy"; homepage = "https://github.com/marshmallow-code/marshmallow-sqlalchemy";
description = "SQLAlchemy integration with marshmallow "; description = "SQLAlchemy integration with marshmallow";
license = licenses.mit; license = licenses.mit;
}; };

View File

@ -1,27 +1,40 @@
{ lib, buildPythonPackage, fetchPypi, { lib
dateutil, simplejson, isPy27 , buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytestCheckHook
, pytz
, simplejson
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "marshmallow"; pname = "marshmallow";
version = "3.10.0"; version = "3.11.1";
disabled = isPy27; disabled = pythonOlder "3.5";
meta = { src = fetchFromGitHub {
homepage = "https://github.com/marshmallow-code/marshmallow"; owner = "marshmallow-code";
repo = pname;
rev = version;
sha256 = "1ypm142y3giaqydc7fkigm9r057yp2sd1ng5zr2x3w3wbbj5yfm6";
};
pythonImportsCheck = [
"marshmallow"
];
checkInputs = [
pytestCheckHook
pytz
simplejson
];
meta = with lib; {
description = '' description = ''
A lightweight library for converting complex objects to and from A lightweight library for converting complex objects to and from
simple Python datatypes. simple Python datatypes.
''; '';
license = lib.licenses.mit; homepage = "https://github.com/marshmallow-code/marshmallow";
license = licenses.mit;
}; };
src = fetchPypi {
inherit pname version;
sha256 = "4ab2fdb7f36eb61c3665da67a7ce281c8900db08d72ba6bf0e695828253581f7";
};
propagatedBuildInputs = [ dateutil simplejson ];
doCheck = false;
} }

View File

@ -1,4 +1,11 @@
{ stdenv, lib, fetchPypi, buildPythonPackage, isPy3k, isPy35, fetchpatch { stdenv
, lib
, fetchPypi
, buildPythonPackage
, isPy3k
, pythonOlder
, greenlet
, importlib-metadata
, mock , mock
, pysqlite ? null , pysqlite ? null
, pytestCheckHook , pytestCheckHook
@ -7,19 +14,17 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "SQLAlchemy"; pname = "SQLAlchemy";
version = "1.3.23"; version = "1.4.15";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "6fca33672578666f657c131552c4ef8979c1606e494f78cd5199742dfb26918b"; sha256 = "1rj9h3mcxrgh5q8qvz7m39diyil27l5mldr49mgz6xfibk3h1w8g";
}; };
patches = [ propagatedBuildInputs = [
# fix test_pyodbc_extra_connect_azure test failure greenlet
(fetchpatch { ] ++ lib.optionals (pythonOlder "3.8") [
url = "https://github.com/sqlalchemy/sqlalchemy/commit/7293b3dc0e9eb3dae84ffd831494b85355df8e73.patch"; importlib-metadata
sha256 = "1z61lzxamz74771ddlqmbxba1dcr77f016vqfcmb44dxb228w2db";
})
]; ];
checkInputs = [ checkInputs = [
@ -28,7 +33,9 @@ buildPythonPackage rec {
mock mock
] ++ lib.optional (!isPy3k) pysqlite; ] ++ lib.optional (!isPy3k) pysqlite;
pytestFlagsArray = [ "-n auto" ]; pytestFlagsArray = [
"-n auto"
];
postInstall = '' postInstall = ''
sed -e 's:--max-worker-restart=5::g' -i setup.cfg sed -e 's:--max-worker-restart=5::g' -i setup.cfg
@ -37,8 +44,10 @@ buildPythonPackage rec {
dontUseSetuptoolsCheck = true; dontUseSetuptoolsCheck = true;
# disable mem-usage tests on mac, has trouble serializing pickle files # disable mem-usage tests on mac, has trouble serializing pickle files
disabledTests = lib.optionals isPy35 [ "exception_persistent_flush_py3k "] disabledTests = lib.optionals stdenv.isDarwin [
++ lib.optionals stdenv.isDarwin [ "MemUsageWBackendTest" "MemUsageTest" ]; "MemUsageWBackendTest"
"MemUsageTest"
];
meta = with lib; { meta = with lib; {
homepage = "http://www.sqlalchemy.org/"; homepage = "http://www.sqlalchemy.org/";

View File

@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "just"; pname = "just";
version = "0.9.1"; version = "0.9.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "casey"; owner = "casey";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-5W/5HgXjDmr2JGYGy5FPmCNIuAagmzEHnskDUg+FzjY="; sha256 = "sha256-rcHS0QchUzgcSVIw01x0p1lU/q2CqC5QAwLSFuBTPtE=";
}; };
cargoSha256 = "sha256-4lLWtj/MLaSZU7nC4gVn7TyhaLtO1FUSinQejocpiuY="; cargoSha256 = "sha256-LZL95AFzbWhdWPGjJr7lZORtVOUdz8lno0T8xSkblHU=";
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];

View File

@ -5,7 +5,7 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "cargo-c"; pname = "cargo-c";
version = "0.8.0"; version = "0.8.1";
src = stdenv.mkDerivation rec { src = stdenv.mkDerivation rec {
name = "${pname}-source-${version}"; name = "${pname}-source-${version}";
@ -14,11 +14,11 @@ rustPlatform.buildRustPackage rec {
owner = "lu-zero"; owner = "lu-zero";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "1rvbikhbqsfa2sh79kapqg4yz19r1yhqfykl6cf4yjg6vawkwfw1"; sha256 = "0fd0xql5cbqgmir2z3ah91iasaq9133wmi5bnhiy3dv7drcqv4rc";
}; };
cargoLock = fetchurl { cargoLock = fetchurl {
url = "https://github.com/lu-zero/${pname}/releases/download/v${version}/Cargo.lock"; url = "https://github.com/lu-zero/${pname}/releases/download/v${version}/Cargo.lock";
sha256 = "17cdac8ym59jwjxs3k4isazknhrlr6lw0j0r76n5xf0dd7apfgcs"; sha256 = "1xlh3h77rxhqyr1nkqyanb120lwdks6fklh202camqpmznd763g5";
}; };
installPhase = '' installPhase = ''
@ -28,7 +28,7 @@ rustPlatform.buildRustPackage rec {
''; '';
}; };
cargoSha256 = "0pxakfiidxfczh3harnjhb1zv340r812jxzwam8z2kyw3mkyhh8z"; cargoSha256 = "0b952xkg0l31laqlhsv3cqdag7v15k9na6xr6q9y8xwy1fjh9gzv";
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] buildInputs = [ openssl ]

View File

@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, tcl, tk, libX11, zlib, makeWrapper, makeDesktopItem }: { lib, fetchurl, tcl, tk, libX11, zlib, makeWrapper, makeDesktopItem }:
stdenv.mkDerivation rec { tcl.mkTclDerivation rec {
pname = "scid-vs-pc"; pname = "scid-vs-pc";
version = "4.21"; version = "4.21";
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
buildInputs = [ tcl tk libX11 zlib ]; buildInputs = [ tk libX11 zlib ];
prePatch = '' prePatch = ''
sed -i -e '/^ *set headerPath *{/a ${tcl}/include ${tk}/include' \ sed -i -e '/^ *set headerPath *{/a ${tcl}/include ${tk}/include' \
@ -49,7 +49,6 @@ stdenv.mkDerivation rec {
for cmd in $out/bin/* ; do for cmd in $out/bin/* ; do
wrapProgram "$cmd" \ wrapProgram "$cmd" \
--set TCLLIBPATH "${tcl}/${tcl.libdir}" \
--set TK_LIBRARY "${tk}/lib/${tk.libPrefix}" --set TK_LIBRARY "${tk}/lib/${tk.libPrefix}"
done done
''; '';
@ -79,4 +78,3 @@ stdenv.mkDerivation rec {
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View File

@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, tcl, tk, libX11, zlib, makeWrapper }: { lib, fetchurl, tcl, tk, libX11, zlib, makeWrapper }:
stdenv.mkDerivation { tcl.mkTclDerivation {
pname = "scid"; pname = "scid";
version = "4.3"; version = "4.3";
@ -10,7 +10,7 @@ stdenv.mkDerivation {
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
buildInputs = [ tcl tk libX11 zlib ]; buildInputs = [ tk libX11 zlib ];
prePatch = '' prePatch = ''
sed -i -e '/^ *set headerPath *{/a ${tcl}/include ${tk}/include' \ sed -i -e '/^ *set headerPath *{/a ${tcl}/include ${tk}/include' \
@ -45,13 +45,13 @@ stdenv.mkDerivation {
for cmd in $out/bin/* for cmd in $out/bin/*
do do
wrapProgram "$cmd" \ wrapProgram "$cmd" \
--set TCLLIBPATH "${tcl}/${tcl.libdir}" \
--set TK_LIBRARY "${tk}/lib/${tk.libPrefix}" --set TK_LIBRARY "${tk}/lib/${tk.libPrefix}"
done done
''; '';
meta = { meta = {
description = "Chess database with play and training functionality"; description = "Chess database with play and training functionality";
maintainers = with lib.maintainers; [ agbrooks ];
homepage = "http://scid.sourceforge.net/"; homepage = "http://scid.sourceforge.net/";
license = lib.licenses.gpl2; license = lib.licenses.gpl2;
}; };

View File

@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, tcl, tcllib, runtimeShell }: { lib, stdenv, fetchurl, tcl, tcllib, runtimeShell }:
stdenv.mkDerivation { tcl.mkTclDerivation {
name = "tcl2048-0.4.0"; name = "tcl2048-0.4.0";
src = fetchurl { src = fetchurl {
@ -8,20 +8,12 @@ stdenv.mkDerivation {
sha256 = "53f5503efd7f029b2614b0f9b1e3aac6c0342735a3c9b811d74a5135fee3e89e"; sha256 = "53f5503efd7f029b2614b0f9b1e3aac6c0342735a3c9b811d74a5135fee3e89e";
}; };
phases = "installPhase"; buildInputs = [ tcllib ];
phases = "installPhase fixupPhase";
installPhase = '' installPhase = ''
mkdir -pv $out/bin mkdir -pv $out/bin
cp $src $out/2048.tcl install -m 755 $src $out/bin/2048
cat > $out/bin/2048 << EOF
#!${runtimeShell}
# wrapper for tcl2048
export TCLLIBPATH="${tcllib}/lib/tcllib${tcllib.version}"
${tcl}/bin/tclsh $out/2048.tcl
EOF
chmod +x $out/bin/2048
''; '';
meta = { meta = {

View File

@ -703,11 +703,11 @@ lib.makeScope newScope (self: with self; {
}) {}; }) {};
libX11 = callPackage ({ stdenv, pkg-config, fetchurl, xorgproto, libxcb, xtrans }: stdenv.mkDerivation { libX11 = callPackage ({ stdenv, pkg-config, fetchurl, xorgproto, libxcb, xtrans }: stdenv.mkDerivation {
name = "libX11-1.7.0"; name = "libX11-1.7.1";
builder = ./builder.sh; builder = ./builder.sh;
src = fetchurl { src = fetchurl {
url = "mirror://xorg/individual/lib/libX11-1.7.0.tar.bz2"; url = "mirror://xorg/individual/lib/libX11-1.7.1.tar.bz2";
sha256 = "0m6bfwllr3pq2c00l51y62yiq15kphc8dw69zf67qhwmclxzkj1n"; sha256 = "0isxad59hvdwggbxqqjjjg3zmih9xiq4d9mdsnqbyb2nmbg46kp6";
}; };
hardeningDisable = [ "bindnow" "relro" ]; hardeningDisable = [ "bindnow" "relro" ];
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];

View File

@ -175,7 +175,7 @@ mirror://xorg/individual/lib/libICE-1.0.10.tar.bz2
mirror://xorg/individual/lib/libpciaccess-0.16.tar.bz2 mirror://xorg/individual/lib/libpciaccess-0.16.tar.bz2
mirror://xorg/individual/lib/libSM-1.2.3.tar.bz2 mirror://xorg/individual/lib/libSM-1.2.3.tar.bz2
mirror://xorg/individual/lib/libWindowsWM-1.0.1.tar.bz2 mirror://xorg/individual/lib/libWindowsWM-1.0.1.tar.bz2
mirror://xorg/individual/lib/libX11-1.7.0.tar.bz2 mirror://xorg/individual/lib/libX11-1.7.1.tar.bz2
mirror://xorg/individual/lib/libXau-1.0.9.tar.bz2 mirror://xorg/individual/lib/libXau-1.0.9.tar.bz2
mirror://xorg/individual/lib/libXaw-1.0.14.tar.bz2 mirror://xorg/individual/lib/libXaw-1.0.14.tar.bz2
mirror://xorg/individual/lib/libXaw3d-1.6.3.tar.bz2 mirror://xorg/individual/lib/libXaw3d-1.6.3.tar.bz2

View File

@ -4,11 +4,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "btrfs-progs"; pname = "btrfs-progs";
version = "5.11.1"; version = "5.12.1";
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v${version}.tar.xz"; url = "mirror://kernel/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v${version}.tar.xz";
sha256 = "sha256-46rMxHVuxOVQLLKp+Ftn1SiWZE9MPA+IprxZjHC96/4="; sha256 = "sha256-lQhG/qRU+0scOfD6RUmDZEVy35HfXAYEezNb8tVHN1k=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -1,6 +1,6 @@
{ lib, stdenv, buildPackages, fetchurl, tcl, makeWrapper, autoreconfHook, fetchpatch }: { lib, stdenv, buildPackages, fetchurl, tcl, makeWrapper, autoreconfHook, fetchpatch }:
stdenv.mkDerivation rec { tcl.mkTclDerivation rec {
pname = "expect"; pname = "expect";
version = "5.45.4"; version = "5.45.4";
@ -20,24 +20,14 @@ stdenv.mkDerivation rec {
sed -i "s,/bin/stty,$(type -p stty),g" configure.in sed -i "s,/bin/stty,$(type -p stty),g" configure.in
''; '';
nativeBuildInputs = [ autoreconfHook makeWrapper tcl ]; nativeBuildInputs = [ autoreconfHook makeWrapper ];
buildInputs = [ tcl ];
strictDeps = true; strictDeps = true;
hardeningDisable = [ "format" ]; hardeningDisable = [ "format" ];
configureFlags = [ postInstall = lib.optionalString stdenv.isDarwin ''
"--with-tcl=${buildPackages.tcl}/lib"
"--with-tclinclude=${tcl}/include"
"--exec-prefix=${placeholder "out"}"
];
postInstall = ''
for i in $out/bin/*; do for i in $out/bin/*; do
wrapProgram $i \ wrapProgram $i --prefix DYLD_LIBRARY_PATH : $out/lib/expect${version}
--prefix PATH : "${tcl}/bin" \
--prefix TCLLIBPATH ' ' $out/lib/* \
${lib.optionalString stdenv.isDarwin "--prefix DYLD_LIBRARY_PATH : $out/lib/expect${version}"}
done done
''; '';

View File

@ -3,20 +3,18 @@
, fetchurl , fetchurl
, tk , tk
, tcllib , tcllib
, makeWrapper , tcl
, tkremind ? true , tkremind ? true
}: }:
let let
inherit (lib) optional optionalString; inherit (lib) optional optionals optionalString;
tclLibraries = lib.optionals tkremind [ tcllib tk ]; tclLibraries = optionals tkremind [ tcllib tk ];
tclLibPaths = lib.concatStringsSep " "
(map (p: "${p}/lib/${p.libPrefix}") tclLibraries);
tkremindPatch = optionalString tkremind '' tkremindPatch = optionalString tkremind ''
substituteInPlace scripts/tkremind --replace "exec wish" "exec ${tk}/bin/wish" substituteInPlace scripts/tkremind --replace "exec wish" "exec ${tk}/bin/wish"
''; '';
in in
stdenv.mkDerivation rec { tcl.mkTclDerivation rec {
pname = "remind"; pname = "remind";
version = "03.03.06"; version = "03.03.06";
@ -25,7 +23,6 @@ stdenv.mkDerivation rec {
sha256 = "sha256-lpoMAXDJxwODY0/aoo25GRBYWFhE4uf11pR5/ITZX1s="; sha256 = "sha256-lpoMAXDJxwODY0/aoo25GRBYWFhE4uf11pR5/ITZX1s=";
}; };
nativeBuildInputs = optional tkremind makeWrapper;
propagatedBuildInputs = tclLibraries; propagatedBuildInputs = tclLibraries;
postPatch = '' postPatch = ''
@ -37,10 +34,6 @@ stdenv.mkDerivation rec {
${tkremindPatch} ${tkremindPatch}
''; '';
postInstall = optionalString tkremind ''
wrapProgram $out/bin/tkremind --set TCLLIBPATH "${tclLibPaths}"
'';
meta = with lib; { meta = with lib; {
homepage = "https://dianne.skoll.ca/projects/remind/"; homepage = "https://dianne.skoll.ca/projects/remind/";
description = "Sophisticated calendar and alarm program for the console"; description = "Sophisticated calendar and alarm program for the console";

View File

@ -11597,7 +11597,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;
@ -18095,9 +18095,7 @@ in
tcllib = callPackage ../development/libraries/tcllib { }; tcllib = callPackage ../development/libraries/tcllib { };
tcltls = callPackage ../development/libraries/tcltls { tcltls = callPackage ../development/libraries/tcltls { };
openssl = openssl_1_0_2;
};
tclx = callPackage ../development/libraries/tclx { }; tclx = callPackage ../development/libraries/tclx { };
@ -27887,7 +27885,7 @@ in
zcash = callPackage ../applications/blockchains/zcash { stdenv = llvmPackages_11.stdenv; }; zcash = callPackage ../applications/blockchains/zcash { stdenv = llvmPackages_11.stdenv; };
openethereum = callPackage ../applications/blockchains/openethereum { stdenv = llvmPackages_12.stdenv; }; openethereum = callPackage ../applications/blockchains/openethereum { };
parity-ui = callPackage ../applications/blockchains/parity-ui { }; parity-ui = callPackage ../applications/blockchains/parity-ui { };