Merge branch 'staging' into staging-next

main
Vladimír Čunát 2 years ago
commit fda107c3ec
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
  1. 2
      nixos/modules/services/networking/wg-quick.nix
  2. 2
      pkgs/applications/finance/odoo/default.nix
  3. 2
      pkgs/applications/misc/plover/default.nix
  4. 2
      pkgs/applications/misc/safeeyes/default.nix
  5. 2
      pkgs/applications/networking/opsdroid/default.nix
  6. 2
      pkgs/applications/office/fava/default.nix
  7. 2
      pkgs/applications/video/screenkey/default.nix
  8. 5
      pkgs/development/compilers/go/1.17.nix
  9. 8
      pkgs/development/compilers/spirv-llvm-translator/default.nix
  10. 20
      pkgs/development/go-modules/generic/default.nix
  11. 20
      pkgs/development/go-packages/generic/default.nix
  12. 12
      pkgs/development/libraries/SDL2/default.nix
  13. 51
      pkgs/development/libraries/atk/default.nix
  14. 34
      pkgs/development/libraries/dbus/default.nix
  15. 15
      pkgs/development/libraries/dbus/docs-reproducible-ids.patch
  16. 4
      pkgs/development/libraries/fribidi/default.nix
  17. 6
      pkgs/development/libraries/gettext/default.nix
  18. BIN
      pkgs/development/libraries/glibc/2.34-master.patch.gz
  19. 4
      pkgs/development/libraries/glibc/common.nix
  20. 13
      pkgs/development/libraries/gstreamer/base/default.nix
  21. 14
      pkgs/development/libraries/gstreamer/core/default.nix
  22. 4
      pkgs/development/libraries/kerberos/krb5.nix
  23. 4
      pkgs/development/libraries/libbsd/default.nix
  24. 12
      pkgs/development/libraries/libclc/default.nix
  25. 12
      pkgs/development/libraries/libical/default.nix
  26. 4
      pkgs/development/libraries/libnotify/default.nix
  27. 4
      pkgs/development/libraries/libpcap/default.nix
  28. 4
      pkgs/development/libraries/pango/default.nix
  29. 4
      pkgs/development/libraries/sqlite/default.nix
  30. 4
      pkgs/development/libraries/sqlite/tools.nix
  31. 24
      pkgs/development/python-modules/Babel/default.nix
  32. 4
      pkgs/development/python-modules/Mako/default.nix
  33. 4
      pkgs/development/python-modules/Nikola/default.nix
  34. 28
      pkgs/development/python-modules/Pygments/default.nix
  35. 4
      pkgs/development/python-modules/agate/default.nix
  36. 4
      pkgs/development/python-modules/apprise/default.nix
  37. 25
      pkgs/development/python-modules/babel/default.nix
  38. 4
      pkgs/development/python-modules/babelgladeextractor/default.nix
  39. 4
      pkgs/development/python-modules/cachecontrol/default.nix
  40. 8
      pkgs/development/python-modules/click/default.nix
  41. 4
      pkgs/development/python-modules/delorean/default.nix
  42. 4
      pkgs/development/python-modules/flask-babel/default.nix
  43. 4
      pkgs/development/python-modules/flask-babelex/default.nix
  44. 4
      pkgs/development/python-modules/flask-security-too/default.nix
  45. 4
      pkgs/development/python-modules/flask/default.nix
  46. 4
      pkgs/development/python-modules/flaskbabel/default.nix
  47. 29
      pkgs/development/python-modules/func-timeout/default.nix
  48. 4
      pkgs/development/python-modules/gruut/default.nix
  49. 4
      pkgs/development/python-modules/ihatemoney/default.nix
  50. 8
      pkgs/development/python-modules/jinja2/default.nix
  51. 19
      pkgs/development/python-modules/jsonschema/default.nix
  52. 4
      pkgs/development/python-modules/jupyterlab_server/default.nix
  53. 4
      pkgs/development/python-modules/kajiki/default.nix
  54. 4
      pkgs/development/python-modules/lektor/default.nix
  55. 23
      pkgs/development/python-modules/m2r/default.nix
  56. 8
      pkgs/development/python-modules/markdown/default.nix
  57. 4
      pkgs/development/python-modules/mkdocs/default.nix
  58. 52
      pkgs/development/python-modules/pip-api/default.nix
  59. 7
      pkgs/development/python-modules/pkgconfig/default.nix
  60. 38
      pkgs/development/python-modules/pkgconfig/executable.patch
  61. 13
      pkgs/development/python-modules/platformdirs/default.nix
  62. 29
      pkgs/development/python-modules/pretend/default.nix
  63. 51
      pkgs/development/python-modules/pygments/default.nix
  64. 4
      pkgs/development/python-modules/pygobject/3.nix
  65. 17
      pkgs/development/python-modules/pyparsing/default.nix
  66. 4
      pkgs/development/python-modules/python-heatclient/default.nix
  67. 4
      pkgs/development/python-modules/python-manilaclient/default.nix
  68. 4
      pkgs/development/python-modules/rich/default.nix
  69. 10
      pkgs/development/python-modules/sphinx/default.nix
  70. 4
      pkgs/development/python-modules/sqlalchemy/default.nix
  71. 4
      pkgs/development/python-modules/stack-data/default.nix
  72. 34
      pkgs/development/python-modules/wcag-contrast-ratio/default.nix
  73. 4
      pkgs/development/python-modules/weboob/default.nix
  74. 6
      pkgs/development/python-modules/werkzeug/default.nix
  75. 4
      pkgs/development/python-modules/woob/default.nix
  76. 4
      pkgs/development/python-modules/wtforms/default.nix
  77. 22
      pkgs/development/python-modules/zipp/default.nix
  78. 4
      pkgs/development/python2-modules/sphinx/default.nix
  79. 4
      pkgs/development/tools/bashate/default.nix
  80. 2
      pkgs/development/tools/fdroidserver/default.nix
  81. 3
      pkgs/development/tools/misc/autoconf/2.13.nix
  82. 12
      pkgs/development/tools/misc/autoconf/default.nix
  83. 15
      pkgs/development/tools/misc/elfutils/default.nix
  84. 83
      pkgs/development/tools/pip-audit/default.nix
  85. 2
      pkgs/development/tools/poetry2nix/poetry2nix/overrides/default.nix
  86. 13
      pkgs/misc/rich-cli/default.nix
  87. 18
      pkgs/os-specific/darwin/apple-source-releases/Libsystem/default.nix
  88. 2
      pkgs/os-specific/darwin/apple-source-releases/Libsystem/headers.txt
  89. 8
      pkgs/os-specific/linux/audit/default.nix
  90. 1
      pkgs/os-specific/linux/bluez/default.nix
  91. 13
      pkgs/os-specific/linux/systemd/default.nix
  92. 2
      pkgs/servers/web-apps/searx/default.nix
  93. 4
      pkgs/shells/any-nix-shell/default.nix
  94. 3
      pkgs/shells/bash/5.1.nix
  95. 1
      pkgs/shells/bash/bash-completion/default.nix
  96. 1
      pkgs/shells/bash/nix-bash-completions/default.nix
  97. 2
      pkgs/shells/bash/undistract-me/default.nix
  98. 1
      pkgs/shells/bash/yarn-completion/default.nix
  99. 1
      pkgs/shells/dash/default.nix
  100. 3
      pkgs/shells/dgsh/default.nix
  101. Some files were not shown because too many files have changed in this diff Show More

@ -211,7 +211,7 @@ let
postUp = postUp =
optional (values.privateKeyFile != null) "wg set ${name} private-key <(cat ${values.privateKeyFile})" ++ optional (values.privateKeyFile != null) "wg set ${name} private-key <(cat ${values.privateKeyFile})" ++
(concatMap (peer: optional (peer.presharedKeyFile != null) "wg set ${name} peer ${peer.publicKey} preshared-key <(cat ${peer.presharedKeyFile})") values.peers) ++ (concatMap (peer: optional (peer.presharedKeyFile != null) "wg set ${name} peer ${peer.publicKey} preshared-key <(cat ${peer.presharedKeyFile})") values.peers) ++
optional (values.postUp != null) values.postUp; optional (values.postUp != "") values.postUp;
postUpFile = if postUp != [] then writeScriptFile "postUp.sh" (concatMapStringsSep "\n" (line: line) postUp) else null; postUpFile = if postUp != [] then writeScriptFile "postUp.sh" (concatMapStringsSep "\n" (line: line) postUp) else null;
preDownFile = if values.preDown != "" then writeScriptFile "preDown.sh" values.preDown else null; preDownFile = if values.preDown != "" then writeScriptFile "preDown.sh" values.preDown else null;
postDownFile = if values.postDown != "" then writeScriptFile "postDown.sh" values.postDown else null; postDownFile = if values.postDown != "" then writeScriptFile "postDown.sh" values.postDown else null;

@ -47,7 +47,7 @@ buildPythonApplication rec {
makeWrapperArgs = [ "--prefix" "PATH" ":" "${lib.makeBinPath [ wkhtmltopdf nodePackages.rtlcss ]}" ]; makeWrapperArgs = [ "--prefix" "PATH" ":" "${lib.makeBinPath [ wkhtmltopdf nodePackages.rtlcss ]}" ];
propagatedBuildInputs = [ propagatedBuildInputs = [
Babel babel
chardet chardet
decorator decorator
docutils docutils

@ -48,7 +48,7 @@
postPatch = "sed -i /PyQt5/d setup.cfg"; postPatch = "sed -i /PyQt5/d setup.cfg";
checkInputs = [ pytest mock ]; checkInputs = [ pytest mock ];
propagatedBuildInputs = [ Babel pyqt5 xlib pyserial appdirs wcwidth setuptools ]; propagatedBuildInputs = [ babel pyqt5 xlib pyserial appdirs wcwidth setuptools ];
dontWrapQtApps = true; dontWrapQtApps = true;

@ -25,7 +25,7 @@ in buildPythonApplication rec {
]; ];
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [
Babel babel
psutil psutil
xlib xlib
pygobject3 pygobject3

@ -17,7 +17,7 @@ python3Packages.buildPythonPackage rec {
doCheck = false; doCheck = false;
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [
click Babel opsdroid_get_image_size slackclient webexteamssdk bleach click babel opsdroid_get_image_size slackclient webexteamssdk bleach
parse emoji puremagic yamale nbformat websockets pycron nbconvert parse emoji puremagic yamale nbformat websockets pycron nbconvert
aiohttp matrix-api-async aioredis aiosqlite arrow pyyaml motor regex aiohttp matrix-api-async aioredis aiosqlite arrow pyyaml motor regex
mattermostdriver setuptools voluptuous ibm-watson tailer multidict mattermostdriver setuptools voluptuous ibm-watson tailer multidict

@ -24,7 +24,7 @@ python3.pkgs.buildPythonApplication rec {
nativeBuildInputs = with python3.pkgs; [ setuptools-scm ]; nativeBuildInputs = with python3.pkgs; [ setuptools-scm ];
propagatedBuildInputs = with python3.pkgs; [ propagatedBuildInputs = with python3.pkgs; [
Babel babel
beancount beancount
cheroot cheroot
click click

@ -31,7 +31,7 @@ python3.pkgs.buildPythonApplication rec {
]; ];
propagatedBuildInputs = with python3.pkgs; [ propagatedBuildInputs = with python3.pkgs; [
Babel babel
pycairo pycairo
pygobject3 pygobject3
]; ];

@ -54,11 +54,11 @@ in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "go"; pname = "go";
version = "1.17.9"; version = "1.17.10";
src = fetchurl { src = fetchurl {
url = "https://dl.google.com/go/go${version}.src.tar.gz"; url = "https://dl.google.com/go/go${version}.src.tar.gz";
sha256 = "sha256-djrUuvuAqSBEWMX6K45zJ/qXGu5FQlLA42LBEjYVaBM="; sha256 = "sha256-KZ5VrzDxVpGwFdjc+OyuckEkElaeWy7OIDYXU6RW8vk=";
}; };
# perl is used for testing go vet # perl is used for testing go vet
@ -167,7 +167,6 @@ stdenv.mkDerivation rec {
./remove-test-pie-1.15.patch ./remove-test-pie-1.15.patch
./creds-test.patch ./creds-test.patch
./go-1.9-skip-flaky-19608.patch ./go-1.9-skip-flaky-19608.patch
./go-1.9-skip-flaky-20072.patch
./skip-chown-tests-1.16.patch ./skip-chown-tests-1.16.patch
./skip-external-network-tests-1.16.patch ./skip-external-network-tests-1.16.patch
./skip-nohup-tests.patch ./skip-nohup-tests.patch

@ -25,8 +25,6 @@ stdenv.mkDerivation rec {
checkInputs = [ lit ]; checkInputs = [ lit ];
makeFlags = [ "llvm-spirv" ];
cmakeFlags = [ cmakeFlags = [
"-DLLVM_INCLUDE_TESTS=ON" "-DLLVM_INCLUDE_TESTS=ON"
"-DLLVM_DIR=${llvm_11.dev}" "-DLLVM_DIR=${llvm_11.dev}"
@ -37,6 +35,12 @@ stdenv.mkDerivation rec {
# FIXME: CMake tries to run "/llvm-lit" which of course doesn't exist # FIXME: CMake tries to run "/llvm-lit" which of course doesn't exist
doCheck = false; doCheck = false;
makeFlags = [ "all" "llvm-spirv" ];
postInstall = ''
install -D tools/llvm-spirv/llvm-spirv $out/bin/llvm-spirv
'';
meta = with lib; { meta = with lib; {
homepage = "https://github.com/KhronosGroup/SPIRV-LLVM-Translator"; homepage = "https://github.com/KhronosGroup/SPIRV-LLVM-Translator";
description = "A tool and a library for bi-directional translation between SPIR-V and LLVM IR"; description = "A tool and a library for bi-directional translation between SPIR-V and LLVM IR";

@ -181,12 +181,22 @@ let
exclude+='\)' exclude+='\)'
buildGoDir() { buildGoDir() {
local d; local cmd; local cmd="$1" dir="$2"
cmd="$1"
d="$2"
. $TMPDIR/buildFlagsArray . $TMPDIR/buildFlagsArray
declare -a flags
flags+=($buildFlags "''${buildFlagsArray[@]}")
flags+=(''${tags:+-tags=${lib.concatStringsSep "," tags}})
flags+=(''${ldflags:+-ldflags="$ldflags"})
flags+=("-v" "-p" "$NIX_BUILD_CORES")
if [ "$cmd" = "test" ]; then
flags+=($checkFlags)
fi
local OUT local OUT
if ! OUT="$(go $cmd $buildFlags "''${buildFlagsArray[@]}" ''${tags:+-tags=${lib.concatStringsSep "," tags}} ''${ldflags:+-ldflags="$ldflags"} -v -p $NIX_BUILD_CORES $d 2>&1)"; then if ! OUT="$(go $cmd "''${flags[@]}" $dir 2>&1)"; then
if ! echo "$OUT" | grep -qE '(no( buildable| non-test)?|build constraints exclude all) Go (source )?files'; then if ! echo "$OUT" | grep -qE '(no( buildable| non-test)?|build constraints exclude all) Go (source )?files'; then
echo "$OUT" >&2 echo "$OUT" >&2
return 1 return 1
@ -244,7 +254,7 @@ let
runHook preCheck runHook preCheck
for pkg in $(getGoDirs test); do for pkg in $(getGoDirs test); do
buildGoDir test $checkFlags "$pkg" buildGoDir test "$pkg"
done done
runHook postCheck runHook postCheck

@ -160,12 +160,22 @@ let
exclude+='\)' exclude+='\)'
buildGoDir() { buildGoDir() {
local d; local cmd; local cmd="$1" dir="$2"
cmd="$1"
d="$2"
. $TMPDIR/buildFlagsArray . $TMPDIR/buildFlagsArray
declare -a flags
flags+=($buildFlags "''${buildFlagsArray[@]}")
flags+=(''${tags:+-tags=${lib.concatStringsSep "," tags}})
flags+=(''${ldflags:+-ldflags="$ldflags"})
flags+=("-v" "-p" "$NIX_BUILD_CORES")
if [ "$cmd" = "test" ]; then
flags+=($checkFlags)
fi
local OUT local OUT
if ! OUT="$(go $cmd $buildFlags "''${buildFlagsArray[@]}" ''${tags:+-tags=${lib.concatStringsSep "," tags}} ''${ldflags:+-ldflags="$ldflags"} -v -p $NIX_BUILD_CORES $d 2>&1)"; then if ! OUT="$(go $cmd "''${flags[@]}" $dir 2>&1)"; then
if ! echo "$OUT" | grep -qE '(no( buildable| non-test)?|build constraints exclude all) Go (source )?files'; then if ! echo "$OUT" | grep -qE '(no( buildable| non-test)?|build constraints exclude all) Go (source )?files'; then
echo "$OUT" >&2 echo "$OUT" >&2
return 1 return 1
@ -225,7 +235,7 @@ let
runHook preCheck runHook preCheck
for pkg in $(getGoDirs test); do for pkg in $(getGoDirs test); do
buildGoDir test $checkFlags "$pkg" buildGoDir test "$pkg"
done done
runHook postCheck runHook postCheck

@ -22,6 +22,7 @@
, waylandSupport ? stdenv.isLinux && !stdenv.hostPlatform.isAndroid , waylandSupport ? stdenv.isLinux && !stdenv.hostPlatform.isAndroid
, wayland , wayland
, wayland-protocols , wayland-protocols
, wayland-scanner
, drmSupport ? stdenv.isLinux && !stdenv.hostPlatform.isAndroid , drmSupport ? stdenv.isLinux && !stdenv.hostPlatform.isAndroid
, libdrm , libdrm
, mesa , mesa
@ -76,9 +77,18 @@ stdenv.mkDerivation rec {
./find-headers.patch ./find-headers.patch
]; ];
postPatch = ''
# Fix running wayland-scanner for the build platform when cross-compiling.
# See comment here: https://github.com/libsdl-org/SDL/issues/4860#issuecomment-1119003545
substituteInPlace configure \
--replace '$(WAYLAND_SCANNER)' 'wayland-scanner'
'';
strictDeps = true;
depsBuildBuild = [ pkg-config ]; depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [ pkg-config ] ++ optionals waylandSupport [ wayland ]; nativeBuildInputs = [ pkg-config ] ++ optionals waylandSupport [ wayland wayland-scanner ];
propagatedBuildInputs = dlopenPropagatedBuildInputs; propagatedBuildInputs = dlopenPropagatedBuildInputs;

@ -1,36 +1,49 @@
{ lib, stdenv, fetchurl, meson, ninja, gettext, pkg-config, glib { stdenv
, fixDarwinDylibNames, gobject-introspection, gnome , lib
, fetchurl
, meson
, ninja
, gettext
, pkg-config
, glib
, fixDarwinDylibNames
, gobject-introspection
, gnome
}: }:
let stdenv.mkDerivation rec {
pname = "atk"; pname = "atk";
version = "2.36.0"; version = "2.38.0";
in
stdenv.mkDerivation rec { outputs = [ "out" "dev" ];
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz"; url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "1217cmmykjgkkim0zr1lv5j13733m4w5vipmy4ivw0ll6rz28xpv"; sha256 = "rE3ipO9L1WZQUpUv4WllfmXolcUFff+zwqgQ9hkaDDY=";
}; };
outputs = [ "out" "dev" ]; patches = [
# meson builds an incorrect .pc file
# glib should be Requires not Requires.private
./fix_pc.patch
];
nativeBuildInputs = [ meson ninja pkg-config gettext gobject-introspection glib ] nativeBuildInputs = [
++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames; meson
ninja
pkg-config
gettext
gobject-introspection
glib
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
fixDarwinDylibNames
];
propagatedBuildInputs = [ propagatedBuildInputs = [
# Required by atk.pc # Required by atk.pc
glib glib
]; ];
patches = [
# meson builds an incorrect .pc file
# glib should be Requires not Requires.private
./fix_pc.patch
];
mesonFlags = [ mesonFlags = [
"-Dintrospection=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}" "-Dintrospection=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
]; ];
@ -55,7 +68,7 @@ stdenv.mkDerivation rec {
control running applications. control running applications.
''; '';
homepage = "http://library.gnome.org/devel/atk/"; homepage = "https://gitlab.gnome.org/GNOME/atk";
license = lib.licenses.lgpl2Plus; license = lib.licenses.lgpl2Plus;

@ -8,42 +8,26 @@
, systemd , systemd
, audit , audit
, libapparmor , libapparmor
, libX11 ? null
, libICE ? null
, libSM ? null
, x11Support ? (stdenv.isLinux || stdenv.isDarwin)
, dbus , dbus
, docbook_xml_dtd_44 , docbook_xml_dtd_44
, docbook-xsl-nons , docbook-xsl-nons
, xmlto , xmlto
, autoreconfHook , autoreconfHook
, autoconf-archive , autoconf-archive
, x11Support ? (stdenv.isLinux || stdenv.isDarwin)
, xorg
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "dbus"; pname = "dbus";
version = "1.12.20"; version = "1.14.0";
src = fetchurl { src = fetchurl {
url = "https://dbus.freedesktop.org/releases/dbus/dbus-${version}.tar.gz"; url = "https://dbus.freedesktop.org/releases/dbus/dbus-${version}.tar.xz";
sha256 = "1zp5gpx61v1cpqf2zwb1cidhp9xylvw49d3zydkxqk6b1qa20xpp"; sha256 = "sha256-zNfM43WW4KGVWP1mSNEnKrQ/AR2AyGNa6o/QutWK69Q=";
}; };
patches = [ patches = [
# 'generate.consistent.ids=1' ensures reproducible docs, for further details see
# http://docbook.sourceforge.net/release/xsl/current/doc/html/generate.consistent.ids.html
# Also applied upstream in https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/189,
# expected in version 1.14
./docs-reproducible-ids.patch
# AC_PATH_XTRA doesn't seem to find X11 libs even though libX11 seems
# to provide valid pkg-config files. This replace AC_PATH_XTRA with
# PKG_CHECK_MODULES.
# MR merged cf https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/212/diffs?commit_id=23880a181e82ee7f
(fetchpatch {
url = "https://gitlab.freedesktop.org/dbus/dbus/-/commit/6bfaea0707ba1a7788c4b6d30c18fb094f3a1dd4.patch";
sha256 = "1d8ay55n2ksw5faqx3hsdpfni3xl3gq9hnjl65073xcfnx67x8d2";
})
# Fix dbus-daemon crashing when running tests due to long XDG_DATA_DIRS. # Fix dbus-daemon crashing when running tests due to long XDG_DATA_DIRS.
# https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/302 # https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/302
(fetchpatch { (fetchpatch {
@ -68,6 +52,7 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" "lib" "doc" "man" ]; outputs = [ "out" "dev" "lib" "doc" "man" ];
strictDeps = true;
nativeBuildInputs = [ nativeBuildInputs = [
autoreconfHook autoreconfHook
autoconf-archive autoconf-archive
@ -82,11 +67,11 @@ stdenv.mkDerivation rec {
]; ];
buildInputs = buildInputs =
lib.optionals x11Support [ lib.optionals x11Support (with xorg; [
libX11 libX11
libICE libICE
libSM libSM
] ++ lib.optional enableSystemd systemd ]) ++ lib.optional enableSystemd systemd
++ lib.optionals stdenv.isLinux [ audit libapparmor ]; ++ lib.optionals stdenv.isLinux [ audit libapparmor ];
# ToDo: optional selinux? # ToDo: optional selinux?
@ -104,7 +89,8 @@ stdenv.mkDerivation rec {
"--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system" "--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
"--with-systemduserunitdir=${placeholder "out"}/etc/systemd/user" "--with-systemduserunitdir=${placeholder "out"}/etc/systemd/user"
] ++ lib.optional (!x11Support) "--without-x" ] ++ lib.optional (!x11Support) "--without-x"
++ lib.optionals stdenv.isLinux [ "--enable-apparmor" "--enable-libaudit" ]; ++ lib.optionals stdenv.isLinux [ "--enable-apparmor" "--enable-libaudit" ]
++ lib.optionals enableSystemd [ "SYSTEMCTL=${systemd}/bin/systemctl" ];
NIX_CFLAGS_LINK = lib.optionalString (!stdenv.isDarwin) "-Wl,--as-needed"; NIX_CFLAGS_LINK = lib.optionalString (!stdenv.isDarwin) "-Wl,--as-needed";

@ -1,15 +0,0 @@
diff --color -Naur dbus-1.12.20-original/doc/Makefile.in dbus-1.12.20-hacked2/doc/Makefile.in
--- dbus-1.12.20-original/doc/Makefile.in 2020-07-02 12:10:41.000000000 +0200
+++ dbus-1.12.20-hacked2/doc/Makefile.in 2020-11-07 09:57:15.297694773 +0100
@@ -870,8 +870,10 @@
.PRECIOUS: Makefile
+# 'generate.consistent.ids=1' ensures reproducible docs, for further details see
+# http://docbook.sourceforge.net/release/xsl/current/doc/html/generate.consistent.ids.html
@DBUS_XML_DOCS_ENABLED_TRUE@%.html: %.xml
-@DBUS_XML_DOCS_ENABLED_TRUE@ $(XMLTO) html-nochunks $<
+@DBUS_XML_DOCS_ENABLED_TRUE@ $(XMLTO) --stringparam generate.consistent.ids=1 html-nochunks $<
@DBUS_XML_DOCS_ENABLED_TRUE@%.1: %.1.xml
@DBUS_XML_DOCS_ENABLED_TRUE@ $(XMLTO) man $<

@ -10,14 +10,14 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "fribidi"; pname = "fribidi";
version = "1.0.11"; version = "1.0.12";
outputs = [ "out" "devdoc" ]; outputs = [ "out" "devdoc" ];
# NOTE: Only URL tarball has "Have pre-generated man pages: true", which works-around upstream usage of some rare ancient `c2man` fossil application. # NOTE: Only URL tarball has "Have pre-generated man pages: true", which works-around upstream usage of some rare ancient `c2man` fossil application.
src = fetchurl { src = fetchurl {
url = "https://github.com/fribidi/fribidi/releases/download/v${version}/${pname}-${version}.tar.xz"; url = "https://github.com/fribidi/fribidi/releases/download/v${version}/${pname}-${version}.tar.xz";
sha256 = "sha256-MPk+nGPuYn0aLO3PWaw01FvzAkCYL5nkTG4BVGa05z0="; sha256 = "sha256-DNIz+X/IxnuzrCfOhEDe9dP/rPUWdluRwsxlRJgpNJU=";
}; };
postPatch = '' postPatch = ''

@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, fetchpatch, libiconv, xz }: { stdenv, lib, fetchurl, fetchpatch, libiconv, xz, bash }:
# Note: this package is used for bootstrapping fetchurl, and thus # Note: this package is used for bootstrapping fetchurl, and thus
# cannot use fetchpatch! All mutable patches (generated by GitHub or # cannot use fetchpatch! All mutable patches (generated by GitHub or
@ -47,12 +47,14 @@ stdenv.mkDerivation rec {
sed -i -e "s/\(libgettextsrc_la_LDFLAGS = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in sed -i -e "s/\(libgettextsrc_la_LDFLAGS = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in
''; '';
strictDeps = true;
nativeBuildInputs = [ nativeBuildInputs = [
xz xz
xz.bin xz.bin
]; ];
buildInputs = [ bash ]
# HACK, see #10874 (and 14664) # HACK, see #10874 (and 14664)
buildInputs = lib.optional (!stdenv.isLinux && !stdenv.hostPlatform.isCygwin) libiconv; ++ lib.optionals (!stdenv.isLinux && !stdenv.hostPlatform.isCygwin) [ libiconv ];
setupHooks = [ setupHooks = [
../../../build-support/setup-hooks/role.bash ../../../build-support/setup-hooks/role.bash

@ -44,7 +44,7 @@
let let
version = "2.34"; version = "2.34";
patchSuffix = "-115"; patchSuffix = "-210";
sha256 = "sha256-RNJqH+ILiFOkj0cOrQHkJ56GmsFJsZXdpORKGV2YGrI="; sha256 = "sha256-RNJqH+ILiFOkj0cOrQHkJ56GmsFJsZXdpORKGV2YGrI=";
in in
@ -63,7 +63,7 @@ stdenv.mkDerivation ({
[ [
/* No tarballs for stable upstream branch, only https://sourceware.org/git/glibc.git and using git would complicate bootstrapping. /* No tarballs for stable upstream branch, only https://sourceware.org/git/glibc.git and using git would complicate bootstrapping.
$ git fetch --all -p && git checkout origin/release/2.34/master && git describe $ git fetch --all -p && git checkout origin/release/2.34/master && git describe
glibc-2.34-115-gd5d1c95aaf glibc-2.34-210-ge123f08ad5
$ git show --minimal --reverse glibc-2.34.. | gzip -9n --rsyncable - > 2.34-master.patch.gz $ git show --minimal --reverse glibc-2.34.. | gzip -9n --rsyncable - > 2.34-master.patch.gz
To compare the archive contents zdiff can be used. To compare the archive contents zdiff can be used.

@ -5,7 +5,6 @@
, meson , meson
, ninja , ninja
, gettext , gettext
, gobject-introspection
, python3 , python3
, gstreamer , gstreamer
, orc , orc
@ -37,6 +36,8 @@
, enableCdparanoia ? (!stdenv.isDarwin) , enableCdparanoia ? (!stdenv.isDarwin)
, cdparanoia , cdparanoia
, glib , glib
, withIntrospection ? stdenv.buildPlatform == stdenv.hostPlatform
, gobject-introspection
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -50,6 +51,7 @@ stdenv.mkDerivation rec {
sha256 = "0162ly7pscymq6bsf1d5fva2k9s16zvfwyi1q6z4yfd97d0sdn4n"; sha256 = "0162ly7pscymq6bsf1d5fva2k9s16zvfwyi1q6z4yfd97d0sdn4n";
}; };
strictDeps = true;
nativeBuildInputs = [ nativeBuildInputs = [
meson meson
ninja ninja
@ -58,10 +60,11 @@ stdenv.mkDerivation rec {
gettext gettext
orc orc
glib glib
gobject-introspection gstreamer
# docs # docs
# TODO add hotdoc here # TODO add hotdoc here
] ++ lib.optionals withIntrospection [
gobject-introspection
] ++ lib.optional enableWayland wayland; ] ++ lib.optional enableWayland wayland;
buildInputs = [ buildInputs = [
@ -88,6 +91,8 @@ stdenv.mkDerivation rec {
] ++ lib.optionals enableWayland [ ] ++ lib.optionals enableWayland [
wayland wayland
wayland-protocols wayland-protocols
] ++ lib.optionals withIntrospection [
gobject-introspection
] ++ lib.optional enableCocoa Cocoa ] ++ lib.optional enableCocoa Cocoa
++ lib.optional enableCdparanoia cdparanoia; ++ lib.optional enableCdparanoia cdparanoia;
@ -101,8 +106,8 @@ stdenv.mkDerivation rec {
"-Dgl-graphene=disabled" # not packaged in nixpkgs as of writing "-Dgl-graphene=disabled" # not packaged in nixpkgs as of writing
# See https://github.com/GStreamer/gst-plugins-base/blob/d64a4b7a69c3462851ff4dcfa97cc6f94cd64aef/meson_options.txt#L15 for a list of choices # See https://github.com/GStreamer/gst-plugins-base/blob/d64a4b7a69c3462851ff4dcfa97cc6f94cd64aef/meson_options.txt#L15 for a list of choices
"-Dgl_winsys=${lib.concatStringsSep "," (lib.optional enableX11 "x11" ++ lib.optional enableWayland "wayland" ++ lib.optional enableCocoa "cocoa")}" "-Dgl_winsys=${lib.concatStringsSep "," (lib.optional enableX11 "x11" ++ lib.optional enableWayland "wayland" ++ lib.optional enableCocoa "cocoa")}"
"-Dintrospection=${if withIntrospection then "enabled" else "disabled"}"
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ ] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
"-Dintrospection=disabled"
"-Dtests=disabled" "-Dtests=disabled"
] ]
++ lib.optional (!enableX11) "-Dx11=disabled" ++ lib.optional (!enableX11) "-Dx11=disabled"

@ -4,7 +4,6 @@
, ninja , ninja
, pkg-config , pkg-config
, gettext , gettext
, gobject-introspection
, bison , bison
, flex , flex
, python3 , python3
@ -17,6 +16,8 @@
, bash-completion , bash-completion
, lib , lib
, CoreServices , CoreServices
, withIntrospection ? stdenv.buildPlatform == stdenv.hostPlatform
, gobject-introspection
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -37,6 +38,7 @@ stdenv.mkDerivation rec {
sha256 = "0cghi6n4nhdbajz3wqcgbh5xm94myvnqgsi9g2bz9n1s9904l2fy"; sha256 = "0cghi6n4nhdbajz3wqcgbh5xm94myvnqgsi9g2bz9n1s9904l2fy";
}; };
strictDeps = true;
nativeBuildInputs = [ nativeBuildInputs = [
meson meson
ninja ninja
@ -47,11 +49,14 @@ stdenv.mkDerivation rec {
python3 python3
makeWrapper makeWrapper
glib glib
gobject-introspection
bash-completion bash-completion
# documentation # documentation
# TODO add hotdoc here # TODO add hotdoc here
] ++ lib.optionals stdenv.isLinux [
libcap # for setcap binary
] ++ lib.optionals withIntrospection [
gobject-introspection
]; ];
buildInputs = [ buildInputs = [
@ -60,6 +65,8 @@ stdenv.mkDerivation rec {
libcap libcap
libunwind libunwind
elfutils elfutils
] ++ lib.optionals withIntrospection [
gobject-introspection
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
CoreServices CoreServices
]; ];
@ -72,8 +79,7 @@ stdenv.mkDerivation rec {
"-Ddbghelp=disabled" # not needed as we already provide libunwind and libdw, and dbghelp is a fallback to those "-Ddbghelp=disabled" # not needed as we already provide libunwind and libdw, and dbghelp is a fallback to those
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users "-Dexamples=disabled" # requires many dependencies and probably not useful for our users
"-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "-Dintrospection=${if withIntrospection then "enabled" else "disabled"}"
"-Dintrospection=disabled"
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
# darwin.libunwind doesn't have pkg-config definitions so meson doesn't detect it. # darwin.libunwind doesn't have pkg-config definitions so meson doesn't detect it.
"-Dlibunwind=disabled" "-Dlibunwind=disabled"

@ -19,11 +19,11 @@ in
with lib; with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "${type}krb5"; pname = "${type}krb5";
version = "1.19.2"; version = "1.19.3";
src = fetchurl { src = fetchurl {
url = "https://kerberos.org/dist/krb5/${versions.majorMinor version}/krb5-${version}.tar.gz"; url = "https://kerberos.org/dist/krb5/${versions.majorMinor version}/krb5-${version}.tar.gz";
sha256 = "0snz1jm2w4dkk65zcz953jmmv9mqa30fanch2bk8r3rs9vp3yi8h"; sha256 = "1l6wp58zav37g03n2ig5qr0pslz38gh5cxgigbmxkjfxrxilil2n";
}; };
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libbsd"; pname = "libbsd";
version = "0.11.5"; version = "0.11.6";
src = fetchurl { src = fetchurl {
url = "https://libbsd.freedesktop.org/releases/${pname}-${version}.tar.xz"; url = "https://libbsd.freedesktop.org/releases/${pname}-${version}.tar.xz";
sha256 = "sha256-GpyVJSVjXBu2dwyyLpabk42Oap15EjYrmO6DcFmbDv0="; sha256 = "sha256-GbOPMXLq9pPm4caHFGNhkMfkiFHkUiTXILO1vASZtd8=";
}; };
outputs = [ "out" "dev" "man" ]; outputs = [ "out" "dev" "man" ];

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, ninja, cmake, python3, llvmPackages }: { lib, stdenv, fetchFromGitHub, ninja, cmake, python3, llvmPackages, spirv-llvm-translator }:
let let
llvm = llvmPackages.llvm; llvm = llvmPackages.llvm;
@ -7,13 +7,13 @@ in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libclc"; pname = "libclc";
version = "11.0.1"; version = "12.0.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "llvm"; owner = "llvm";
repo = "llvm-project"; repo = "llvm-project";
rev = "llvmorg-${version}"; rev = "llvmorg-${version}";
sha256 = "0bxh43hp1vl4axl3s9n2nb2ii8x1cbq98xz9c996f8rl5jy84ags"; sha256 = "08s5w2db9imb2yaqsvxs6pg21csi1cf6wa35rf8x6q07mam7j8qv";
}; };
sourceRoot = "source/libclc"; sourceRoot = "source/libclc";
@ -21,10 +21,12 @@ stdenv.mkDerivation rec {
postPatch = '' postPatch = ''
substituteInPlace CMakeLists.txt \ substituteInPlace CMakeLists.txt \
--replace 'find_program( LLVM_CLANG clang PATHS ''${LLVM_BINDIR} NO_DEFAULT_PATH )' \ --replace 'find_program( LLVM_CLANG clang PATHS ''${LLVM_BINDIR} NO_DEFAULT_PATH )' \
'find_program( LLVM_CLANG clang PATHS "${clang-unwrapped}/bin" NO_DEFAULT_PATH )' 'find_program( LLVM_CLANG clang PATHS "${clang-unwrapped}/bin" NO_DEFAULT_PATH )' \
--replace 'find_program( LLVM_SPIRV llvm-spirv PATHS ''${LLVM_BINDIR} NO_DEFAULT_PATH )' \
'find_program( LLVM_SPIRV llvm-spirv PATHS "${spirv-llvm-translator}/bin" NO_DEFAULT_PATH )'
''; '';
nativeBuildInputs = [ cmake ninja python3 ]; nativeBuildInputs = [ cmake ninja python3 spirv-llvm-translator ];
buildInputs = [ llvm clang-unwrapped ]; buildInputs = [ llvm clang-unwrapped ];
strictDeps = true; strictDeps = true;
cmakeFlags = [ cmakeFlags = [

@ -13,7 +13,7 @@
, python3 , python3
, tzdata , tzdata
, fixDarwinDylibNames , fixDarwinDylibNames
, introspectionSupport ? stdenv.buildPlatform == stdenv.hostPlatform , withIntrospection ? stdenv.buildPlatform == stdenv.hostPlatform
, gobject-introspection , gobject-introspection
, vala , vala
}: }:
@ -31,6 +31,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-gZ6IBjG5pNKJ+hWcTzXMP7yxL4he4LTklZGoC9vXra8="; sha256 = "sha256-gZ6IBjG5pNKJ+hWcTzXMP7yxL4he4LTklZGoC9vXra8=";
}; };
strictDeps = true;
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
ninja ninja
@ -43,7 +44,7 @@ stdenv.mkDerivation rec {
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
# provides ical-glib-src-generator that runs during build # provides ical-glib-src-generator that runs during build
libical libical
] ++ lib.optionals introspectionSupport [ ] ++ lib.optionals withIntrospection [
gobject-introspection gobject-introspection
vala vala
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
@ -60,13 +61,14 @@ stdenv.mkDerivation rec {
glib glib
libxml2 libxml2
icu icu
] ++ lib.optionals withIntrospection [
gobject-introspection
]; ];
cmakeFlags = [ cmakeFlags = [
"-DENABLE_GTK_DOC=False" "-DENABLE_GTK_DOC=False"
] ++ lib.optionals introspectionSupport [ "-DGOBJECT_INTROSPECTION=${if withIntrospection then "True" else "False"}"
"-DGOBJECT_INTROSPECTION=True" "-DICAL_GLIB_VAPI=${if withIntrospection then "True" else "False"}"
"-DICAL_GLIB_VAPI=True"
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"-DIMPORT_ICAL_GLIB_SRC_GENERATOR=${lib.getDev buildPackages.libical}/lib/cmake/LibIcal/IcalGlibSrcGenerator.cmake" "-DIMPORT_ICAL_GLIB_SRC_GENERATOR=${lib.getDev buildPackages.libical}/lib/cmake/LibIcal/IcalGlibSrcGenerator.cmake"
]; ];

@ -14,13 +14,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libnotify"; pname = "libnotify";
version = "0.7.11"; version = "0.7.12";
outputs = [ "out" "man" "dev" ]; outputs = [ "out" "man" "dev" ];
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "3VaC7GgiAznhHFFZt+ASIEoxjdGzaDoJxILKQhqwc3U="; sha256 = "dEsrN1CBNfgmG3Vanevm4JrdQhrcdb3pMPbhmLcKtG4=";
}; };
mesonFlags = [ mesonFlags = [

@ -6,6 +6,8 @@ stdenv.mkDerivation rec {
pname = "libpcap"; pname = "libpcap";
version = "1.10.1"; version = "1.10.1";
outputs = [ "out" "dev" ];
src = fetchurl { src = fetchurl {
url = "https://www.tcpdump.org/release/${pname}-${version}.tar.gz"; url = "https://www.tcpdump.org/release/${pname}-${version}.tar.gz";
sha256 = "sha256-7ShfSsyvBTRPkJdXV7Pb/ncrpB0cQBwmSLf6RbcRvdQ="; sha256 = "sha256-7ShfSsyvBTRPkJdXV7Pb/ncrpB0cQBwmSLf6RbcRvdQ=";
@ -27,6 +29,8 @@ stdenv.mkDerivation rec {
if [ "$dontDisableStatic" -ne "1" ]; then if [ "$dontDisableStatic" -ne "1" ]; then
rm -f $out/lib/libpcap.a rm -f $out/lib/libpcap.a
fi fi
moveToOutput "bin/pcap-config" "$dev"
''; '';
meta = { meta = {

@ -24,14 +24,14 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "pango"; pname = "pango";
version = "1.50.6"; version = "1.50.7";
outputs = [ "bin" "out" "dev" ] outputs = [ "bin" "out" "dev" ]
++ lib.optionals withDocs [ "devdoc" ]; ++ lib.optionals withDocs [ "devdoc" ];
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "qZi882iBw6wgSV1AvOswT06qkXW9KWfIVlZDTL2v6Go="; sha256 = "BHfzaaPUxpXfcpmmmJ3ABHVqf03ifuysQFxnkLfjrTM=";
}; };
strictDeps = !withIntrospection; strictDeps = !withIntrospection;

@ -12,13 +12,13 @@ in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "sqlite${optionalString interactive "-interactive"}"; pname = "sqlite${optionalString interactive "-interactive"}";
version = "3.38.3"; version = "3.38.5";
# nixpkgs-update: no auto update # nixpkgs-update: no auto update
# NB! Make sure to update ./tools.nix src (in the same directory). # NB! Make sure to update ./tools.nix src (in the same directory).
src = fetchurl { src = fetchurl {
url = "https://sqlite.org/2022/sqlite-autoconf-${archiveVersion version}.tar.gz"; url = "https://sqlite.org/2022/sqlite-autoconf-${archiveVersion version}.tar.gz";
sha256 = "sha256-YfLdk6LjjDNGi3EllnwyGL+fTdg2Xe9gJeMU+QXclC4="; sha256 = "sha256-WvB96YK6ZY/ZGgMXDJRfmclx9pVbx53zJmVENz45hpw=";
}; };
outputs = [ "bin" "dev" "out" ]; outputs = [ "bin" "dev" "out" ];

@ -4,12 +4,12 @@ let
archiveVersion = import ./archive-version.nix lib; archiveVersion = import ./archive-version.nix lib;
mkTool = { pname, makeTarget, description, homepage, mainProgram }: stdenv.mkDerivation rec { mkTool = { pname, makeTarget, description, homepage, mainProgram }: stdenv.mkDerivation rec {
inherit pname; inherit pname;
version = "3.38.3"; version = "3.38.5";
# nixpkgs-update: no auto update # nixpkgs-update: no auto update
src = assert version == sqlite.version; fetchurl { src = assert version == sqlite.version; fetchurl {
url = "https://sqlite.org/2022/sqlite-src-${archiveVersion version}.zip"; url = "https://sqlite.org/2022/sqlite-src-${archiveVersion version}.zip";
sha256 = "sha256-oQTUk+CEAGvXT/H/esLrKzh8fAo7Y7pv6i+vtBGDE68="; sha256 = "sha256-ZQO7WeOeyGYwg2lpQOyBjNVVUZbmylQ9QClEDMp7ANk=";
}; };
nativeBuildInputs = [ unzip ]; nativeBuildInputs = [ unzip ];

@ -1,24 +0,0 @@
{ stdenv, lib, buildPythonPackage, fetchPypi, pytz, pytestCheckHook, freezegun }:
buildPythonPackage rec {
pname = "Babel";
version = "2.9.1";
src = fetchPypi {
inherit pname version;
sha256 = "bc0c176f9f6a994582230df350aa6e05ba2ebe4b3ac317eab29d9be5d2768da0";
};
propagatedBuildInputs = [ pytz ];
checkInputs = [ pytestCheckHook freezegun ];
doCheck = !stdenv.isDarwin;
meta = with lib; {
homepage = "http://babel.edgewall.org";
description = "A collection of tools for internationalizing Python applications";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}

@ -8,7 +8,7 @@
, markupsafe , markupsafe
# extras: Babel # extras: Babel
, Babel , babel
# tests # tests
, mock , mock
@ -32,7 +32,7 @@ buildPythonPackage rec {
passthru.extras-require = { passthru.extras-require = {
babel = [ babel = [
Babel babel
]; ];
}; };

@ -1,6 +1,6 @@
{ lib { lib
, aiohttp , aiohttp
, Babel , babel
, blinker , blinker
, buildPythonPackage , buildPythonPackage
, python-dateutil , python-dateutil
@ -51,7 +51,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
Babel babel
blinker blinker
python-dateutil python-dateutil
docutils docutils

@ -1,28 +0,0 @@
{ lib
, buildPythonPackage
, fetchPypi
, docutils
}:
buildPythonPackage rec {
pname = "Pygments";
version = "2.11.2";
src = fetchPypi {
inherit pname version;
sha256 = "4e426f72023d88d03b2fa258de560726ce890ff3b630f88c21cbb8b2503b8c6a";
};
propagatedBuildInputs = [ docutils ];
# Circular dependency with sphinx
doCheck = false;
pythonImportsCheck = [ "pygments" ];
meta = {
homepage = "https://pygments.org/";
description = "A generic syntax highlighter";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ ];
};
}

@ -1,5 +1,5 @@
{ lib { lib
, Babel , babel
, buildPythonPackage , buildPythonPackage
, cssselect , cssselect
, fetchFromGitHub , fetchFromGitHub
@ -32,7 +32,7 @@ buildPythonPackage rec {
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
Babel babel
isodate isodate
leather leather
parsedatetime parsedatetime

@ -1,5 +1,5 @@
{ lib { lib
, Babel , babel
, buildPythonPackage , buildPythonPackage
, click , click
, cryptography , cryptography
@ -31,7 +31,7 @@ buildPythonPackage rec {
}; };
nativeBuildInputs = [ nativeBuildInputs = [
Babel babel
installShellFiles installShellFiles
]; ];

@ -0,0 +1,25 @@
{ stdenv, lib, buildPythonPackage, fetchPypi, pytz, pytestCheckHook, freezegun }:
buildPythonPackage rec {
pname = "babel";
version = "2.10.1";
src = fetchPypi {
pname = "Babel";
inherit version;
sha256 = "sha256-mK6soIYTPvs+HiqtA5aYdJDIQlkp3bz+BVAYT9xUzRM=";
};
propagatedBuildInputs = [ pytz ];
checkInputs = [ pytestCheckHook freezegun ];
doCheck = !stdenv.isDarwin;
meta = with lib; {
homepage = "https://babel.pocoo.org/";
description = "Collection of internationalizing tools";
license = licenses.bsd3;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

@ -2,7 +2,7 @@
, isPy3k , isPy3k
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, Babel , babel
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -18,7 +18,7 @@ buildPythonPackage rec {
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
Babel babel
]; ];
# SyntaxError: Non-ASCII character '\xc3' in file /build/BabelGladeExtractor-0.6.3/babelglade/tests/test_translate.py on line 20, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details # SyntaxError: Non-ASCII character '\xc3' in file /build/BabelGladeExtractor-0.6.3/babelglade/tests/test_translate.py on line 20, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

@ -21,10 +21,11 @@ buildPythonPackage rec {
owner = "ionrock"; owner = "ionrock";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-mgvL0q10UbPHY1H3tJprke5p8qNl3HNYoeLAERZTcTs="; hash = "sha256-mgvL0q10UbPHY1H3tJprke5p8qNl3HNYoeLAERZTcTs=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
lockfile
msgpack msgpack
requests requests
]; ];
@ -32,7 +33,6 @@ buildPythonPackage rec {
checkInputs = [ checkInputs = [
cherrypy cherrypy
mock mock
lockfile
pytestCheckHook pytestCheckHook
]; ];

@ -5,23 +5,21 @@
, importlib-metadata , importlib-metadata
, pytestCheckHook , pytestCheckHook
# large-rebuild downstream dependencies # large-rebuild downstream dependencies and applications
, flask , flask
, black , black
# applications
, magic-wormhole , magic-wormhole
, mitmproxy , mitmproxy
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "click"; pname = "click";
version = "8.1.2"; version = "8.1.3";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-R5cH/hTZ7JoHV2GLehAKCuTE4jb6xbf4DKaAKBQaGnI="; sha256 = "sha256-doLcivswKXABZ0V16gDRgU2AjWo2r0Fagr1IHTe6e44=";
}; };
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [

@ -1,7 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, Babel , babel
, humanize , humanize
, python-dateutil , python-dateutil
, tzlocal , tzlocal
@ -16,7 +16,7 @@ buildPythonPackage rec {
sha256 = "0d31ay7yq2w7xz7m3ssk5phjbm64b2k8hmgcif22719k29p7hrzy"; sha256 = "0d31ay7yq2w7xz7m3ssk5phjbm64b2k8hmgcif22719k29p7hrzy";
}; };
propagatedBuildInputs = [ Babel humanize python-dateutil tzlocal ]; propagatedBuildInputs = [ babel humanize python-dateutil tzlocal ];
pythonImportsCheck = [ "delorean" ]; pythonImportsCheck = [ "delorean" ];

@ -3,7 +3,7 @@
, python , python
, fetchPypi , fetchPypi
, flask , flask
, Babel , babel
, jinja2 , jinja2
, pytz , pytz
, speaklater , speaklater
@ -20,7 +20,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
flask flask
Babel babel
jinja2 jinja2
pytz pytz
speaklater speaklater

@ -2,7 +2,7 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, flask , flask
, Babel , babel
, speaklater , speaklater
, jinja2 , jinja2
, pytest , pytest
@ -20,7 +20,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
flask flask
Babel babel
speaklater speaklater
jinja2 jinja2
]; ];

@ -3,7 +3,7 @@
, fetchPypi , fetchPypi
# extras: babel # extras: babel
, Babel , babel
, flask-babel , flask-babel
# extras: common # extras: common
@ -65,7 +65,7 @@ buildPythonPackage rec {
passthru.extras-require = { passthru.extras-require = {
babel = [ babel = [
Babel babel
flask-babel flask-babel
]; ];
common = [ common = [

@ -13,12 +13,12 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "2.1.1"; version = "2.1.2";
pname = "Flask"; pname = "Flask";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-qMm9PlWOyZZG0Xepc5xB3x3tBilIC0yNKXVBLzyVGcg="; sha256 = "sha256-MV3tLd+KYoFWftsnOTAQ/jQGGIuvv+ZaMznVeH2J5Hc=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

@ -4,7 +4,7 @@
, flask , flask
, jinja2 , jinja2
, speaklater , speaklater
, Babel , babel
, pytz , pytz
}: }:
@ -17,7 +17,7 @@ buildPythonPackage rec {
sha256 = "f9faf45cdb2e1a32ea2ec14403587d4295108f35017a7821a2b1acb8cfd9257d"; sha256 = "f9faf45cdb2e1a32ea2ec14403587d4295108f35017a7821a2b1acb8cfd9257d";
}; };
propagatedBuildInputs = [ flask jinja2 speaklater Babel pytz ]; propagatedBuildInputs = [ flask jinja2 speaklater babel pytz ];
meta = with lib; { meta = with lib; {
description = "Adds i18n/l10n support to Flask applications"; description = "Adds i18n/l10n support to Flask applications";

@ -0,0 +1,29 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "func-timeout";
version = "4.3.5";
src = fetchPypi {
pname = "func_timeout";
inherit version;
sha256 = "74cd3c428ec94f4edfba81f9b2f14904846d5ffccc27c92433b8b5939b5575dd";
};
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "func_timeout" ];
meta = with lib; {
description = "Allows you to specify timeouts when calling any existing function. Also provides support for stoppable-threads";
homepage = "https://github.com/kata198/func_timeout";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

@ -3,7 +3,7 @@
, callPackage , callPackage
, pythonOlder , pythonOlder
, fetchFromGitHub , fetchFromGitHub
, Babel , babel
, gruut-ipa , gruut-ipa
, dateparser , dateparser
, jsonlines , jsonlines
@ -54,7 +54,7 @@ buildPythonPackage rec {
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = [
Babel babel
gruut-ipa gruut-ipa
jsonlines jsonlines
num2words num2words

@ -5,7 +5,7 @@
, fetchPypi , fetchPypi
, alembic , alembic
, aniso8601 , aniso8601
, Babel , babel
, blinker , blinker
, cachetools , cachetools
, click , click
@ -54,7 +54,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
aniso8601 aniso8601
Babel babel
blinker blinker
cachetools cachetools
click click

@ -3,24 +3,24 @@
, buildPythonPackage , buildPythonPackage
, pythonOlder , pythonOlder
, fetchPypi , fetchPypi
, Babel , babel
, markupsafe , markupsafe
, pytestCheckHook , pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "Jinja2"; pname = "Jinja2";
version = "3.1.1"; version = "3.1.2";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-ZAvtS7UBy9FxlLPKzh3CEm9bYZzwaKcmuYGSoP3nSuk="; sha256 = "sha256-MTUacCpAip51laj8YVD8P0O7a/fjGXcMvA2535Q36FI=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
Babel babel
markupsafe markupsafe
]; ];

@ -4,9 +4,7 @@
, fetchPypi , fetchPypi
, importlib-metadata , importlib-metadata
, importlib-resources , importlib-resources
, pyperf
, pyrsistent , pyrsistent
, pytestCheckHook
, pythonOlder , pythonOlder
, setuptools-scm , setuptools-scm
, twisted , twisted
@ -15,16 +13,20 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "jsonschema"; pname = "jsonschema";
version = "4.4.0"; version = "4.5.1";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "636694eb41b3535ed608fe04129f26542b59ed99808b4f688aa32dcf55317a83"; sha256 = "sha256-fG2IJhk0DDNHob9zFeFH5tPa5DkDOuY4PWrLkIwQHfw=";
}; };
postPatch = ''
patchShebangs json/bin/jsonschema_suite
'';
SETUPTOOLS_SCM_PRETEND_VERSION = version; SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [ nativeBuildInputs = [
@ -42,18 +44,21 @@ buildPythonPackage rec {
]; ];
checkInputs = [ checkInputs = [
pyperf
pytestCheckHook
twisted twisted
]; ];
checkPhase = ''
export JSON_SCHEMA_TEST_SUITE=json
trial jsonschema
'';
pythonImportsCheck = [ pythonImportsCheck = [
"jsonschema" "jsonschema"
]; ];
meta = with lib; { meta = with lib; {
description = "An implementation of JSON Schema validation for Python"; description = "An implementation of JSON Schema validation for Python";
homepage = "https://github.com/Julian/jsonschema"; homepage = "https://github.com/python-jsonschema/jsonschema";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ domenkozar ]; maintainers = with maintainers; [ domenkozar ];
}; };

@ -6,7 +6,7 @@
, requests , requests
, pytestCheckHook , pytestCheckHook
, pyjson5 , pyjson5
, Babel , babel
, jupyter_server , jupyter_server
, openapi-core , openapi-core
, pytest-tornasync , pytest-tornasync
@ -32,7 +32,7 @@ buildPythonPackage rec {
rm -r tests/translations/ rm -r tests/translations/
''; '';
propagatedBuildInputs = [ requests jsonschema pyjson5 Babel jupyter_server ]; propagatedBuildInputs = [ requests jsonschema pyjson5 babel jupyter_server ];
checkInputs = [ checkInputs = [
openapi-core openapi-core

@ -1,7 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, Babel , babel
, pytz , pytz
, nine , nine
, pytestCheckHook , pytestCheckHook
@ -16,7 +16,7 @@ buildPythonPackage rec {
sha256 = "f0d6dfa27eb2b6c0d2a28ae21d69dceb5363cc0432f4045bcc98aac42a662ccb"; sha256 = "f0d6dfa27eb2b6c0d2a28ae21d69dceb5363cc0432f4045bcc98aac42a662ccb";
}; };
propagatedBuildInputs = [ Babel pytz nine ]; propagatedBuildInputs = [ babel pytz nine ];
checkInputs = [ pytestCheckHook ]; checkInputs = [ pytestCheckHook ];
meta = with lib; { meta = with lib; {

@ -1,5 +1,5 @@
{ lib { lib
, Babel , babel
, buildPythonPackage , buildPythonPackage
, click , click
, exifread , exifread
@ -40,7 +40,7 @@ buildPythonPackage rec {
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
Babel babel
click click
exifread exifread
filetype filetype

@ -1,5 +1,11 @@
{ lib, buildPythonPackage, fetchPypi, { lib
mistune, docutils } : , buildPythonPackage
, fetchPypi
, docutils
, mistune
, pygments
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "m2r"; pname = "m2r";
version = "0.2.1"; version = "0.2.1";
@ -9,16 +15,19 @@ buildPythonPackage rec {
sha256 = "bf90bad66cda1164b17e5ba4a037806d2443f2a4d5ddc9f6a5554a0322aaed99"; sha256 = "bf90bad66cda1164b17e5ba4a037806d2443f2a4d5ddc9f6a5554a0322aaed99";
}; };
postPatch = ''
substituteInPlace tests/test_cli.py \
--replace "optional" "positional"
'';
propagatedBuildInputs = [ mistune docutils ]; propagatedBuildInputs = [ mistune docutils ];
# Some tests interfeere with each other (test.md and test.rst are checkInputs = [ pygments ];
# deleted by some tests and not properly regenerated)
doCheck = false;
meta = with lib; { meta = with lib; {
homepage = "https://github.com/miyakogi/m2r"; homepage = "https://github.com/miyakogi/m2r";
description = "converts a markdown file including reST markups to a valid reST format"; description = "Markdown to reStructuredText converter";
license = licenses.mit; license = licenses.mit;
maintainers = [ ]; maintainers = with maintainers; [ SuperSandro2000 ];
}; };
} }

@ -9,14 +9,16 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "markdown"; pname = "markdown";
version = "3.3.6"; version = "3.3.7";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
format = "setuptools";
src = fetchPypi { src = fetchPypi {
pname = "Markdown"; pname = "Markdown";
inherit version; inherit version;
sha256 = "sha256-dt+K4yKU7Dnc+JNAOCiC36Epdfh/RcPtHs2x6M78cAY="; sha256 = "cbb516f16218e643d8e0a95b309f77eb118cb138d39a4f27851e6a63581db874";
}; };
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
@ -29,6 +31,8 @@ buildPythonPackage rec {
${python.interpreter} -m unittest discover ${python.interpreter} -m unittest discover
''; '';
pythonImportsCheck = [ "markdown" ];
meta = with lib; { meta = with lib; {
description = "A Python implementation of John Gruber's Markdown with Extension support"; description = "A Python implementation of John Gruber's Markdown with Extension support";
homepage = "https://github.com/Python-Markdown/markdown"; homepage = "https://github.com/Python-Markdown/markdown";

@ -16,7 +16,7 @@
, pyyaml-env-tag , pyyaml-env-tag
, watchdog , watchdog
# testing deps # testing deps
, Babel , babel
, mock , mock
, pytestCheckHook , pytestCheckHook
}: }:
@ -47,7 +47,7 @@ buildPythonPackage rec {
]; ];
checkInputs = [ checkInputs = [
Babel babel
mock mock
]; ];

@ -0,0 +1,52 @@
{ lib
, buildPythonPackage
, fetchPypi
, pip
, pretend
, pytestCheckHook
, pythonOlder
, virtualenv
}:
buildPythonPackage rec {
pname = "pip-api";
version = "0.0.29";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-9wFYTrHD4BAhyEb4nWKauTc7ZiTwYmdXd0rVT8TClXE=";
};
propagatedBuildInputs = [
pip
];
checkInputs = [
pretend
pytestCheckHook
virtualenv
];
pythonImportsCheck = [
"pip_api"
];
disabledTests = [
"test_hash"
"test_hash_default_algorithm_is_256"
"test_installed_distributions"
"test_invoke_install"
"test_invoke_uninstall"
"test_isolation"
];
meta = with lib; {
description = "Importable pip API";
homepage = "https://github.com/di/pip-api";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

@ -26,12 +26,9 @@ buildPythonPackage rec {
sha256 = "sha256-uuLUGRNLCR3NS9g6OPCI+qG7tPWsLhI3OE5WmSI3vm8="; sha256 = "sha256-uuLUGRNLCR3NS9g6OPCI+qG7tPWsLhI3OE5WmSI3vm8=";
}; };
patches = [ ./executable.patch ];
postPatch = '' postPatch = ''
rm pkgconfig/pkgconfig.py.orig
substituteInPlace pkgconfig/pkgconfig.py \ substituteInPlace pkgconfig/pkgconfig.py \
--replace 'PKG_CONFIG_EXE = "pkg-config"' 'PKG_CONFIG_EXE = "${pkg-config}/bin/${pkg-config.targetPrefix}pkg-config"' --replace "pkg_config_exe = os.environ.get('PKG_CONFIG', None) or 'pkg-config'" "pkg_config_exe = '${pkg-config}/bin/${pkg-config.targetPrefix}pkg-config'"
# those pc files are missing and pkg-config validates that they exist # those pc files are missing and pkg-config validates that they exist
substituteInPlace data/fake-openssl.pc \ substituteInPlace data/fake-openssl.pc \
@ -40,8 +37,6 @@ buildPythonPackage rec {
nativeBuildInputs = [ poetry-core ]; nativeBuildInputs = [ poetry-core ];
propagatedNativeBuildInputs = [ pkg-config ];
checkInputs = [ pytestCheckHook ]; checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pkgconfig" ]; pythonImportsCheck = [ "pkgconfig" ];

@ -1,38 +0,0 @@
commit d8e0bac0c0d831510683939ec7a7b5bd72192423
Author: Frederik Rietdijk <fridh@fridh.nl>
Date: Sat Jan 5 11:38:28 2019 +0100
Have a top-level attribute for the executable
diff --git a/pkgconfig/pkgconfig.py b/pkgconfig/pkgconfig.py
index 3deb97f..e7c5561 100644
--- a/pkgconfig/pkgconfig.py
+++ b/pkgconfig/pkgconfig.py
@@ -30,6 +30,9 @@ from functools import wraps
from subprocess import call, PIPE, Popen
+PKG_CONFIG_EXE = "pkg-config"
+
+
def _compare_versions(v1, v2):
"""
Compare two version strings and return -1, 0 or 1 depending on the equality
@@ -65,7 +68,7 @@ def _convert_error(func):
@_convert_error
def _query(package, *options):
- pkg_config_exe = os.environ.get('PKG_CONFIG', None) or 'pkg-config'
+ pkg_config_exe = os.environ.get('PKG_CONFIG', None) or PKG_CONFIG_EXE
cmd = '{0} {1} {2}'.format(pkg_config_exe, ' '.join(options), package)
proc = Popen(shlex.split(cmd), stdout=PIPE, stderr=PIPE)
out, err = proc.communicate()
@@ -84,7 +87,7 @@ def exists(package):
If ``pkg-config`` not on path, raises ``EnvironmentError``.
"""
- pkg_config_exe = os.environ.get('PKG_CONFIG', None) or 'pkg-config'
+ pkg_config_exe = os.environ.get('PKG_CONFIG', None) or PKG_CONFIG_EXE
cmd = '{0} --exists {1}'.format(pkg_config_exe, package).split()
return call(cmd) == 0

@ -2,17 +2,17 @@
, appdirs , appdirs
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, platformdirs
, pytest-mock , pytest-mock
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, setuptools-scm , hatchling
, hatch-vcs
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "platformdirs"; pname = "platformdirs";
version = "2.5.1"; version = "2.5.2";
format = "setuptools"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -20,13 +20,14 @@ buildPythonPackage rec {
owner = pname; owner = pname;
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-z6WIwTWLlc/chNRxt3dqqa/IxYj1BBTcQ6OcfliHrvA="; sha256 = "sha256-c7gGgqOUVYA6wYU4+nQsYYw4Gn+DpMoIq2nP8nEdPcg=";
}; };
SETUPTOOLS_SCM_PRETEND_VERSION = version; SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [ nativeBuildInputs = [
setuptools-scm hatchling
hatch-vcs
]; ];
checkInputs = [ checkInputs = [

@ -1,19 +1,36 @@
{ lib, buildPythonPackage, fetchPypi }: { lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pretend"; pname = "pretend";
version = "1.0.9"; version = "1.0.9";
format = "setuptools";
src = fetchPypi { disabled = pythonOlder "3.7";
inherit pname version;
sha256 = "c90eb810cde8ebb06dafcb8796f9a95228ce796531bc806e794c2f4649aa1b10"; src = fetchFromGitHub {
owner = "alex";
repo = pname;
rev = "v${version}";
hash = "sha256-OqMfeIMFNBBLq6ejR3uOCIHZ9aA4zew7iefVlAsy1JQ=";
}; };
# No tests in archive checkInputs = [
doCheck = false; pytestCheckHook
];
pythonImportsCheck = [
"pretend"
];
meta = with lib; { meta = with lib; {
description = "Module for stubbing";
homepage = "https://github.com/alex/pretend"; homepage = "https://github.com/alex/pretend";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ ];
}; };
} }

@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, fetchPypi
, docutils
, lxml
, pytestCheckHook
, wcag-contrast-ratio
}:
let pygments = buildPythonPackage
rec {
pname = "pygments";
version = "2.12.0";
src = fetchPypi {
pname = "Pygments";
inherit version;
sha256 = "sha256-XrEWEY+WEv8e6JrJZDe7a0no8E2KE7UUuib2ICCOJus=";
};
propagatedBuildInputs = [
docutils
];
# circular dependencies if enabled by default
doCheck = false;
checkInputs = [
lxml
pytestCheckHook
wcag-contrast-ratio
];
disabledTestPaths = [
# 5 lines diff, including one nix store path in 20000+ lines
"tests/examplefiles/bash/ltmain.sh"
];
pythonImportsCheck = [ "pygments" ];
passthru.tests = {
check = pygments.overridePythonAttrs (_: { doCheck = true; });
};
meta = with lib; {
homepage = "https://pygments.org/";
description = "A generic syntax highlighter";
license = licenses.bsd2;
maintainers = with maintainers; [ SuperSandro2000 ];
};
};
in pygments

@ -16,7 +16,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pygobject"; pname = "pygobject";
version = "3.42.0"; version = "3.42.1";
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
@ -26,7 +26,7 @@ buildPythonPackage rec {
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "mxJhbjLPx5L53IQdnEcqQaNbhbpn06brQn4wem/kNns="; sha256 = "HzS192JN415E61p+tCg1MoW9AwBNVRMaX39/qbkPPMk=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

@ -1,9 +1,7 @@
{ buildPythonPackage { buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, lib , lib
, flit-core
# since this is a dependency of pytest, we need to avoid
# circular dependencies
, jinja2 , jinja2
, pytestCheckHook , pytestCheckHook
, railroad-diagrams , railroad-diagrams
@ -12,16 +10,21 @@
let let
pyparsing = buildPythonPackage rec { pyparsing = buildPythonPackage rec {
pname = "pyparsing"; pname = "pyparsing";
version = "3.0.7"; version = "3.0.9";
format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pyparsing"; owner = "pyparsing";
repo = pname; repo = pname;
rev = "pyparsing_${version}"; rev = "pyparsing_${version}";
sha256 = "sha256-RyvTTbFshAZgyZPgzqcq31E504RlnMZuf16jJYGqDDI="; sha256 = "sha256-aCRyJQyLf8qQ6NO41q+HC856TjIHzIt0vyVBLV+3teE=";
}; };
# circular dependencies if enabled by default nativeBuildInputs = [
flit-core
];
# circular dependencies with pytest if enabled by default
doCheck = false; doCheck = false;
checkInputs = [ checkInputs = [
jinja2 jinja2
@ -43,4 +46,4 @@ let
}; };
}; };
in in
pyparsing pyparsing

@ -2,7 +2,7 @@
, buildPythonApplication , buildPythonApplication
, fetchPypi , fetchPypi
, pbr , pbr
, Babel , babel
, cliff , cliff
, iso8601 , iso8601
, osc-lib , osc-lib
@ -31,7 +31,7 @@ buildPythonApplication rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
pbr pbr
Babel babel
cliff cliff
iso8601 iso8601
osc-lib osc-lib

@ -13,7 +13,7 @@
, simplejson , simplejson
, sphinx , sphinx
, sphinxcontrib-programoutput , sphinxcontrib-programoutput
, Babel , babel
, osc-lib , osc-lib
, python-keystoneclient , python-keystoneclient
, debtcollector , debtcollector
@ -45,7 +45,7 @@ buildPythonApplication rec {
prettytable prettytable
requests requests
simplejson simplejson
Babel babel
osc-lib osc-lib
python-keystoneclient python-keystoneclient
debtcollector debtcollector

@ -12,7 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "rich"; pname = "rich";
version = "12.3.0"; version = "12.4.1";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -20,7 +20,7 @@ buildPythonPackage rec {
owner = "Textualize"; owner = "Textualize";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-/BPJcFjUldbTa/M3i9jGGU7apbrTcWbF+yrrFuLXcHY="; sha256 = "sha256-6fr5mtZwXdZihoHEjF1jJxOLH3ajPX1tF2N/ZCV9g50=";
}; };
nativeBuildInputs = [ poetry-core ]; nativeBuildInputs = [ poetry-core ];

@ -4,7 +4,7 @@
, pythonOlder , pythonOlder
, fetchFromGitHub , fetchFromGitHub
# propagatedBuildInputs # propagatedBuildInputs
, Babel , babel
, alabaster , alabaster
, docutils , docutils
, imagesize , imagesize
@ -51,10 +51,16 @@ buildPythonPackage rec {
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace "docutils>=0.14,<0.18" "docutils>=0.14" --replace "docutils>=0.14,<0.18" "docutils>=0.14"
# remove impurity caused by date inclusion
# https://github.com/sphinx-doc/sphinx/blob/master/setup.cfg#L4-L6
substituteInPlace setup.cfg \
--replace "tag_build = .dev" "" \
--replace "tag_date = true" ""
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = [
Babel babel
alabaster alabaster
docutils docutils
imagesize imagesize

@ -13,11 +13,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "SQLAlchemy"; pname = "SQLAlchemy";
version = "1.4.35"; version = "1.4.36";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-L/yBOwHcZHOZD15XXyEMpawvVGWs45CLeP/W0gBYqrU="; hash = "sha256-ZGeKwyHWSkWQHvLiRyXsXng/H0pYgwXhlkMUR+es4kM=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

@ -49,8 +49,10 @@ buildPythonPackage rec {
disabledTests = [ disabledTests = [
# AssertionError # AssertionError
"test_variables"
"test_example" "test_example"
"test_executing_style_defs"
"test_pygments_example"
"test_variables"
]; ];
pythonImportsCheck = [ "stack_data" ]; pythonImportsCheck = [ "stack_data" ];

@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, hypothesis
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "wcag-contrast-ratio";
version = "0.9";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-aRkrjlwKfQ3F/xGH7rPjmBQWM6S95RxpyH9Y/oftNhw=";
};
checkInputs = [
hypothesis
pytestCheckHook
];
pytestFlagsArray = [
"test.py"
];
pythonImportsCheck = [ "wcag_contrast_ratio" ];
meta = with lib; {
description = "Library for computing contrast ratios, as required by WCAG 2.0";
homepage = "https://github.com/gsnedders/wcag-contrast-ratio";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

@ -1,5 +1,5 @@
{ lib { lib
, Babel , babel
, buildPythonPackage , buildPythonPackage
, cssselect , cssselect
, feedparser , feedparser
@ -43,7 +43,7 @@ buildPythonPackage rec {
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
Babel babel
cssselect cssselect
python-dateutil python-dateutil
feedparser feedparser

@ -13,7 +13,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "werkzeug"; pname = "werkzeug";
version = "2.1.0"; version = "2.1.2";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -21,7 +21,7 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
pname = "Werkzeug"; pname = "Werkzeug";
inherit version; inherit version;
sha256 = "sha256-m1VGaj6Z4TsfBoamYRfTm9qFqZIWbgp5rt/PNYYyj3o="; sha256 = "sha256-HOCOgJPtZ9Y41jh5/Rujc1gX96gN42dNKT9ZhPJftuY=";
}; };
propagatedBuildInputs = lib.optionals (!stdenv.isDarwin) [ propagatedBuildInputs = lib.optionals (!stdenv.isDarwin) [
@ -63,6 +63,6 @@ buildPythonPackage rec {
utility libraries. utility libraries.
''; '';
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ SuperSandro2000 ];
}; };
} }

@ -1,5 +1,5 @@
{ lib { lib
, Babel , babel
, buildPythonPackage , buildPythonPackage
, colorama , colorama
, cssselect , cssselect
@ -45,7 +45,7 @@ buildPythonPackage rec {
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
Babel babel
colorama colorama
cssselect cssselect
python-dateutil python-dateutil

@ -2,7 +2,7 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, markupsafe , markupsafe
, Babel , babel
, pytestCheckHook , pytestCheckHook
, email_validator , email_validator
}: }:
@ -16,7 +16,7 @@ buildPythonPackage rec {
sha256 = "1g654ghavds387hqxmhg9s8x222x89wbq1ggzxbsyn6x2axindbb"; sha256 = "1g654ghavds387hqxmhg9s8x222x89wbq1ggzxbsyn6x2axindbb";
}; };
propagatedBuildInputs = [ markupsafe Babel ]; propagatedBuildInputs = [ markupsafe babel ];
checkInputs = [ checkInputs = [

@ -1,12 +1,13 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, more-itertools , func-timeout
, jaraco_itertools
, pythonOlder , pythonOlder
, setuptools-scm , setuptools-scm
}: }:
buildPythonPackage rec { let zipp = buildPythonPackage rec {
pname = "zipp"; pname = "zipp";
version = "3.7.0"; version = "3.7.0";
format = "setuptools"; format = "setuptools";
@ -22,21 +23,26 @@ buildPythonPackage rec {
setuptools-scm setuptools-scm
]; ];
propagatedBuildInputs = [
more-itertools
];
# Prevent infinite recursion with pytest # Prevent infinite recursion with pytest
doCheck = false; doCheck = false;
checkInputs = [
func-timeout
jaraco_itertools
];
pythonImportsCheck = [ pythonImportsCheck = [
"zipp" "zipp"
]; ];
passthru.tests = {
check = zipp.overridePythonAttrs (_: { doCheck = true; });
};
meta = with lib; { meta = with lib; {
description = "Pathlib-compatible object wrapper for zip files"; description = "Pathlib-compatible object wrapper for zip files";
homepage = "https://github.com/jaraco/zipp"; homepage = "https://github.com/jaraco/zipp";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ SuperSandro2000 ];
}; };
} }; in zipp

@ -13,7 +13,7 @@
, jinja2 , jinja2
, pygments , pygments
, alabaster , alabaster
, Babel , babel
, snowballstemmer , snowballstemmer
, six , six
, sqlalchemy , sqlalchemy
@ -46,7 +46,7 @@ buildPythonPackage rec {
jinja2 jinja2
pygments pygments
alabaster alabaster
Babel babel
setuptools setuptools
snowballstemmer snowballstemmer
six six

@ -1,5 +1,5 @@
{ lib { lib
, Babel , babel
, buildPythonApplication , buildPythonApplication
, fetchPypi , fetchPypi
, fixtures , fixtures
@ -21,7 +21,7 @@ buildPythonApplication rec {
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
Babel babel
pbr pbr
setuptools setuptools
]; ];

@ -27,7 +27,7 @@ python.pkgs.buildPythonApplication rec {
install -m 0755 gradlew-fdroid $out/bin install -m 0755 gradlew-fdroid $out/bin
''; '';
buildInputs = [ python.pkgs.Babel ]; buildInputs = [ python.pkgs.babel ];
propagatedBuildInputs = with python.pkgs; [ propagatedBuildInputs = with python.pkgs; [
androguard androguard

@ -9,7 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "07krzl4czczdsgzrrw9fiqx35xcf32naf751khg821g5pqv12qgh"; sha256 = "07krzl4czczdsgzrrw9fiqx35xcf32naf751khg821g5pqv12qgh";
}; };
buildInputs = [ m4 perl ]; nativeBuildInputs = [ m4 perl ];
strictDeps = true;
doCheck = true; doCheck = true;

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, m4, perl }: { lib, stdenv, fetchurl, m4, perl, texinfo }:
# Note: this package is used for bootstrapping fetchurl, and thus # Note: this package is used for bootstrapping fetchurl, and thus
# cannot use fetchpatch! All mutable patches (generated by GitHub or # cannot use fetchpatch! All mutable patches (generated by GitHub or
@ -8,6 +8,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "autoconf"; pname = "autoconf";
version = "2.71"; version = "2.71";
outputs = [ "out" "doc" ];
src = fetchurl { src = fetchurl {
url = "mirror://gnu/autoconf/autoconf-${version}.tar.xz"; url = "mirror://gnu/autoconf/autoconf-${version}.tar.xz";
@ -19,8 +20,15 @@ stdenv.mkDerivation rec {
./2.71-fix-race.patch ./2.71-fix-race.patch
]; ];
nativeBuildInputs = [ m4 perl ]; nativeBuildInputs = [ m4 perl texinfo ];
buildInputs = [ m4 ]; buildInputs = [ m4 ];
postBuild = "
make html
";
postInstall = "
make install-html
";
# Work around a known issue in Cygwin. See # Work around a known issue in Cygwin. See
# http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/6822 for # http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/6822 for

@ -2,16 +2,17 @@
, musl-obstack, m4, zlib, zstd, bzip2, bison, flex, gettext, xz, setupDebugInfoDirs , musl-obstack, m4, zlib, zstd, bzip2, bison, flex, gettext, xz, setupDebugInfoDirs
, argp-standalone , argp-standalone
, enableDebuginfod ? false, sqlite, curl, libmicrohttpd_0_9_70, libarchive , enableDebuginfod ? false, sqlite, curl, libmicrohttpd_0_9_70, libarchive
, gitUpdater
}: }:
# TODO: Look at the hardcoded paths to kernel, modules etc. # TODO: Look at the hardcoded paths to kernel, modules etc.
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "elfutils"; pname = "elfutils";
version = "0.186"; version = "0.187";
src = fetchurl { src = fetchurl {
url = "https://sourceware.org/elfutils/ftp/${version}/${pname}-${version}.tar.bz2"; url = "https://sourceware.org/elfutils/ftp/${version}/${pname}-${version}.tar.bz2";
sha256 = "sha256-f2+5FJsWc9ONkXig0+D7ih7E9TqfTC/4lGlgmHlkEXc="; sha256 = "sha256-5wsN++YQ+QxNH+DXGvFCpOJcPE7566uNLXK2UVnUVMg=";
}; };
patches = [ patches = [
@ -62,10 +63,6 @@ stdenv.mkDerivation rec {
propagatedNativeBuildInputs = [ setupDebugInfoDirs ]; propagatedNativeBuildInputs = [ setupDebugInfoDirs ];
NIX_CFLAGS_COMPILE = lib.optionals stdenv.hostPlatform.isMusl [
"-Wno-null-dereference"
];
configureFlags = [ configureFlags = [
"--program-prefix=eu-" # prevent collisions with binutils "--program-prefix=eu-" # prevent collisions with binutils
"--enable-deterministic-archives" "--enable-deterministic-archives"
@ -81,6 +78,12 @@ stdenv.mkDerivation rec {
doCheck = !stdenv.hostPlatform.isMusl; doCheck = !stdenv.hostPlatform.isMusl;
doInstallCheck = !stdenv.hostPlatform.isMusl; doInstallCheck = !stdenv.hostPlatform.isMusl;
passthru.updateScript = gitUpdater {
inherit pname version;
url = "https://sourceware.org/git/elfutils.git";
rev-prefix = "elfutils-";
};
meta = with lib; { meta = with lib; {
homepage = "https://sourceware.org/elfutils/"; homepage = "https://sourceware.org/elfutils/";
description = "A set of utilities to handle ELF objects"; description = "A set of utilities to handle ELF objects";

@ -0,0 +1,83 @@
{ lib
, fetchFromGitHub
, fetchpatch
, python3
}:
let
py = python3.override {
packageOverrides = self: super: {
# ansible doesn't support resolvelib > 0.6.0 and can't have an override
resolvelib = super.resolvelib.overridePythonAttrs (oldAttrs: rec {
version = "0.8.1";
src = fetchFromGitHub {
owner = "sarugaku";
repo = "resolvelib";
rev = version;
sha256 = "1qpd0gg9yl0kbamlgjs9pkxd39kx511kbc92civ77v0ka5sw8ca0";
};
});
};
};
in
with py.pkgs;
buildPythonApplication rec {
pname = "pip-audit";
version = "2.2.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "trailofbits";
repo = pname;
rev = "v${version}";
hash = "sha256-ji61783imVlvoBaDMTxQwbf1L1G4lJbOFZ1FjcNOT/8=";
};
propagatedBuildInputs = [
cachecontrol
cyclonedx-python-lib
html5lib
packaging
pip-api
progress
resolvelib
];
checkInputs = [
pretend
pytestCheckHook
];
pythonImportsCheck = [
"pip_audit"
];
preCheck = ''
export HOME=$(mktemp -d);
'';
disabledTestPaths = [
# Tests require network access
"test/dependency_source/test_requirement.py"
"test/dependency_source/test_resolvelib.py"
"test/service/test_pypi.py"
"test/service/test_osv.py"
];
disabledTests = [
# Tests requrire network access
"test_get_pip_cache"
"test_virtual_env"
"test_pyproject_source"
"test_pyproject_source_duplicate_deps"
];
meta = with lib; {
description = "Tool for scanning Python environments for known vulnerabilities";
homepage = "https://github.com/trailofbits/pip-audit";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}

@ -2379,7 +2379,7 @@ lib.composeManyExtensions [
}); });
wtforms = super.wtforms.overridePythonAttrs (old: { wtforms = super.wtforms.overridePythonAttrs (old: {
buildInputs = (old.buildInputs or [ ]) ++ [ self.Babel ]; buildInputs = (old.buildInputs or [ ]) ++ [ self.babel ];
}); });
} }

@ -1,15 +1,18 @@
{ lib { lib
, fetchFromGitHub
, python3 , python3
}: }:
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "rich-cli"; pname = "rich-cli";
version = "1.7.0"; version = "1.8.0";
format = "pyproject"; format = "pyproject";
src = python3.pkgs.fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "Textualize";
sha256 = "sha256-fporylec9H+9G2v8D0O32ek7OQs3YRSma1xOpakClqk="; repo = pname;
rev = "v${version}";
sha256 = "sha256-mV5b/J9wX9niiYtlmAUouaAm9mY2zTtDmex7FNWcezQ=";
}; };
nativeBuildInputs = with python3.pkgs; [ nativeBuildInputs = with python3.pkgs; [
@ -26,7 +29,7 @@ python3.pkgs.buildPythonApplication rec {
postPatch = '' postPatch = ''
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace 'rich = "^12.3.0"' 'rich = "*"' --replace 'rich = "^12.4.0"' 'rich = "*"'
''; '';
pythonImportsCheck = [ pythonImportsCheck = [

@ -1,5 +1,5 @@
{ lib, stdenv, buildPackages { lib, stdenv, buildPackages
, appleDerivation', cpio, xnu, Libc, Libm, libdispatch, Libinfo , appleDerivation', xnu, Libc, Libm, libdispatch, Libinfo
, dyld, Csu, architecture, libclosure, CarbonHeaders, ncurses, CommonCrypto , dyld, Csu, architecture, libclosure, CarbonHeaders, ncurses, CommonCrypto
, copyfile, removefile, libresolvHeaders, libresolv, Libnotify, libplatform, libpthread , copyfile, removefile, libresolvHeaders, libresolv, Libnotify, libplatform, libpthread
, mDNSResponder, launchd, libutilHeaders, hfsHeaders, darling, darwin-stubs , mDNSResponder, launchd, libutilHeaders, hfsHeaders, darling, darwin-stubs
@ -11,15 +11,21 @@ appleDerivation' stdenv {
dontBuild = true; dontBuild = true;
dontFixup = true; dontFixup = true;
nativeBuildInputs = [ cpio ];
installPhase = '' installPhase = ''
export NIX_ENFORCE_PURITY= export NIX_ENFORCE_PURITY=
mkdir -p $out/lib $out/include mkdir -p $out/lib $out/include
function copyHierarchy () {
mkdir -p $1
while read f; do
mkdir -p $1/$(dirname $f)
cp --parents -pn $f $1
done
}
# Set up our include directories # Set up our include directories
(cd ${xnu}/include && find . -name '*.h' -or -name '*.defs' | cpio -pdm $out/include) (cd ${xnu}/include && find . -name '*.h' -or -name '*.defs' | copyHierarchy $out/include)
cp ${xnu}/Library/Frameworks/Kernel.framework/Versions/A/Headers/Availability*.h $out/include cp ${xnu}/Library/Frameworks/Kernel.framework/Versions/A/Headers/Availability*.h $out/include
cp ${xnu}/Library/Frameworks/Kernel.framework/Versions/A/Headers/stdarg.h $out/include cp ${xnu}/Library/Frameworks/Kernel.framework/Versions/A/Headers/stdarg.h $out/include
@ -28,10 +34,10 @@ appleDerivation' stdenv {
${CommonCrypto} ${copyfile} ${removefile} ${libresolvHeaders} \ ${CommonCrypto} ${copyfile} ${removefile} ${libresolvHeaders} \
${Libnotify} ${libplatform} ${mDNSResponder} ${launchd} \ ${Libnotify} ${libplatform} ${mDNSResponder} ${launchd} \
${libutilHeaders} ${libpthread} ${hfsHeaders}; do ${libutilHeaders} ${libpthread} ${hfsHeaders}; do
(cd $dep/include && find . -name '*.h' | cpio -pdm $out/include) (cd $dep/include && find . -name '*.h' | copyHierarchy $out/include)
done done
(cd ${buildPackages.darwin.cctools.dev}/include/mach-o && find . -name '*.h' | cpio -pdm $out/include/mach-o) (cd ${buildPackages.darwin.cctools.dev}/include/mach-o && find . -name '*.h' | copyHierarchy $out/include/mach-o)
mkdir -p $out/include/os mkdir -p $out/include/os

@ -71,6 +71,7 @@ architecture/i386/table.h
architecture/i386/tss.h architecture/i386/tss.h
arpa/ftp.h arpa/ftp.h
arpa/inet.h arpa/inet.h
arpa/nameser.h
arpa/nameser_compat.h arpa/nameser_compat.h
arpa/telnet.h arpa/telnet.h
arpa/tftp.h arpa/tftp.h
@ -956,6 +957,7 @@ mpool.h
msgcat.h msgcat.h
nameser.h nameser.h
nc_tparm.h nc_tparm.h
ncurses.h
ncurses_dll.h ncurses_dll.h
ndbm.h ndbm.h
net/bpf.h net/bpf.h

@ -2,7 +2,7 @@
lib, stdenv, buildPackages, fetchurl, fetchpatch, lib, stdenv, buildPackages, fetchurl, fetchpatch,
runCommand, runCommand,
autoreconfHook, autoreconfHook,
autoconf, automake, libtool, autoconf, automake, libtool, bash,
# Enabling python support while cross compiling would be possible, but # Enabling python support while cross compiling would be possible, but
# the configure script tries executing python to gather info instead of # the configure script tries executing python to gather info instead of
# relying on python3-config exclusively # relying on python3-config exclusively
@ -21,9 +21,11 @@ stdenv.mkDerivation rec {
outputs = [ "bin" "dev" "out" "man" ]; outputs = [ "bin" "dev" "out" "man" ];
strictDeps = true;
depsBuildBuild = [ buildPackages.stdenv.cc ]; depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [ autoreconfHook ]
buildInputs = lib.optionals enablePython [ python3 swig ]; ++ lib.optionals enablePython [ python3 swig ];
buildInputs = [ bash ];
configureFlags = [ configureFlags = [
# z/OS plugin is not useful on Linux, # z/OS plugin is not useful on Linux,

@ -138,6 +138,7 @@ in stdenv.mkDerivation rec {
filename=$(basename $files) filename=$(basename $files)
install -Dm755 tools/$filename $out/bin/$filename install -Dm755 tools/$filename $out/bin/$filename
done done
install -Dm755 attrib/gatttool $out/bin/gatttool
''; '';
enableParallelBuilding = true; enableParallelBuilding = true;

@ -178,6 +178,13 @@ stdenv.mkDerivation {
# need (AFAICT). # need (AFAICT).
# See https://github.com/systemd/systemd/pull/20479 for upstream discussion. # See https://github.com/systemd/systemd/pull/20479 for upstream discussion.
./0019-core-handle-lookup-paths-being-symlinks.patch ./0019-core-handle-lookup-paths-being-symlinks.patch
# fixes reproducability of dbus xml files
# Should no longer be necessary with v251.
(fetchpatch {
url = "https://github.com/systemd/systemd/pull/22174.patch";
sha256 = "sha256-RVhxUEUiISgRlIP/AhU+w1VHfDQw2W16cFl2TXXyxno=";
})
] ++ lib.optional stdenv.hostPlatform.isMusl ( ] ++ lib.optional stdenv.hostPlatform.isMusl (
let let
oe-core = fetchzip { oe-core = fetchzip {
@ -641,12 +648,6 @@ stdenv.mkDerivation {
''; '';
postInstall = '' postInstall = ''
# sysinit.target: Don't depend on
# systemd-tmpfiles-setup.service. This interferes with NixOps's
# send-keys feature (since sshd.service depends indirectly on
# sysinit.target).
mv $out/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev.service $out/lib/systemd/system/multi-user.target.wants/
mkdir -p $out/example/systemd mkdir -p $out/example/systemd
mv $out/lib/{modules-load.d,binfmt.d,sysctl.d,tmpfiles.d} $out/example mv $out/lib/{modules-load.d,binfmt.d,sysctl.d,tmpfiles.d} $out/example
mv $out/lib/systemd/{system,user} $out/example/systemd mv $out/lib/systemd/{system,user} $out/example/systemd

@ -31,7 +31,7 @@ toPythonModule (buildPythonApplication rec {
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = [
Babel babel
certifi certifi
python-dateutil python-dateutil
flask flask

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, makeWrapper }: { lib, stdenv, fetchFromGitHub, makeWrapper, bash }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "any-nix-shell"; pname = "any-nix-shell";
@ -11,7 +11,9 @@ stdenv.mkDerivation rec {
sha256 = "0q27rhjhh7k0qgcdcfm8ly5za6wm4rckh633d0sjz87faffkp90k"; sha256 = "0q27rhjhh7k0qgcdcfm8ly5za6wm4rckh633d0sjz87faffkp90k";
}; };
strictDeps = true;
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
buildInputs = [ bash ];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
cp -r bin $out cp -r bin $out

@ -71,6 +71,7 @@ stdenv.mkDerivation rec {
"--disable-nls" "--disable-nls"
]; ];
strictDeps = true;
# Note: Bison is needed because the patches above modify parse.y. # Note: Bison is needed because the patches above modify parse.y.
depsBuildBuild = [ buildPackages.stdenv.cc ]; depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ bison ] nativeBuildInputs = [ bison ]
@ -98,7 +99,7 @@ stdenv.mkDerivation rec {
if interactive if interactive
then '' then ''
substituteInPlace "$out/bin/bashbug" \ substituteInPlace "$out/bin/bashbug" \
--replace '${stdenv.shell}' "$out/bin/bash" --replace '#!/bin/sh' "#!$out/bin/bash"
'' ''
# most space is taken by locale data # most space is taken by locale data
else '' else ''

@ -20,6 +20,7 @@ stdenv.mkDerivation rec {
sha256 = "1b0iz7da1sgifx1a5wdyx1kxbzys53v0kyk8nhxfipllmm5qka3k"; sha256 = "1b0iz7da1sgifx1a5wdyx1kxbzys53v0kyk8nhxfipllmm5qka3k";
}; };
strictDeps = true;
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [ autoreconfHook ];
# tests are super flaky unfortunately, and regularily break. # tests are super flaky unfortunately, and regularily break.

@ -11,6 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "1n5zs6xcnv4bv1hdaypmz7fv4j7dsr4a0ifah99iyj4p5j85i1bc"; sha256 = "1n5zs6xcnv4bv1hdaypmz7fv4j7dsr4a0ifah99iyj4p5j85i1bc";
}; };
strictDeps = true;
# To enable lazy loading via. bash-completion we need a symlink to the script # To enable lazy loading via. bash-completion we need a symlink to the script
# from every command name. # from every command name.
installPhase = '' installPhase = ''

@ -43,6 +43,8 @@ stdenvNoCC.mkDerivation rec {
}) })
]; ];
strictDeps = true;
# Patch in dependencies. Can't use makeWrapper because the bash # Patch in dependencies. Can't use makeWrapper because the bash
# functions will be sourced and invoked in a different environment # functions will be sourced and invoked in a different environment
# for each command invocation. # for each command invocation.

@ -15,6 +15,7 @@ stdenv.mkDerivation rec {
sha256 = "0xflbrbwskjqv3knvc8jqygpvfxh5ak66q7w22d1ng8gwrfqzcng"; sha256 = "0xflbrbwskjqv3knvc8jqygpvfxh5ak66q7w22d1ng8gwrfqzcng";
}; };
strictDeps = true;
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
installPhase = '' installPhase = ''

@ -35,6 +35,7 @@ stdenv.mkDerivation rec {
}) })
]; ];
strictDeps = true;
# configure.ac patched; remove on next release # configure.ac patched; remove on next release
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [ autoreconfHook ];

@ -41,5 +41,8 @@ stdenv.mkDerivation {
license = with licenses; asl20; license = with licenses; asl20;
maintainers = with maintainers; [ vrthra ]; maintainers = with maintainers; [ vrthra ];
platforms = with platforms; all; platforms = with platforms; all;
# lib/freadseek.c:68:3: error: #error "Please port gnulib freadseek.c to your platform! Look at the definition of getc, getc_unlocked on your >
# 68 | #error "Please port gnulib freadseek.c to your platform! Look at the definition of getc, getc_unlocked on your system, then report >
broken = true; # marked 2022-05-06
}; };
} }

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save