Merge #182386: staging-next 2022-07-21

This commit is contained in:
Vladimír Čunát 2022-07-27 21:08:51 +02:00
commit 29316ab92b
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA
739 changed files with 3966 additions and 2934 deletions

View file

@ -233,7 +233,8 @@ in stdenv.mkDerivation rec {
src = builtins.fetchTarball src = builtins.fetchTarball
"https://github.com/fzakaria/nixos-maven-example/archive/main.tar.gz"; "https://github.com/fzakaria/nixos-maven-example/archive/main.tar.gz";
buildInputs = [ maven makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
buildInputs = [ maven ];
buildPhase = '' buildPhase = ''
echo "Using repository ${repository}" echo "Using repository ${repository}"
@ -310,7 +311,8 @@ in stdenv.mkDerivation rec {
src = builtins.fetchTarball src = builtins.fetchTarball
"https://github.com/fzakaria/nixos-maven-example/archive/main.tar.gz"; "https://github.com/fzakaria/nixos-maven-example/archive/main.tar.gz";
buildInputs = [ maven makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
buildInputs = [ maven ];
buildPhase = '' buildPhase = ''
echo "Using repository ${repository}" echo "Using repository ${repository}"

View file

@ -274,7 +274,7 @@ bundlerApp {
gemdir = ./.; gemdir = ./.;
exes = [ "r10k" ]; exes = [ "r10k" ];
buildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
postBuild = '' postBuild = ''
wrapProgram $out/bin/r10k --prefix PATH : ${lib.makeBinPath [ git gnutar gzip ]} wrapProgram $out/bin/r10k --prefix PATH : ${lib.makeBinPath [ git gnutar gzip ]}

View file

@ -155,14 +155,14 @@ doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
#### Package using Meson needs to run binaries for the host platform during build. {#cross-meson-runs-host-code} #### Package using Meson needs to run binaries for the host platform during build. {#cross-meson-runs-host-code}
Add `mesonEmulatorHook` cross conditionally to `nativeBuildInputs`. Add `mesonEmulatorHook` to `nativeBuildInputs` conditionally on if the target binaries can be executed.
e.g. e.g.
``` ```
nativeBuildInputs = [ nativeBuildInputs = [
meson meson
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook mesonEmulatorHook
]; ];
``` ```

View file

@ -34,7 +34,7 @@ in
system.requiredKernelConfig = with config.lib.kernelConfig; [ system.requiredKernelConfig = with config.lib.kernelConfig; [
(isEnabled "ANDROID_BINDER_IPC") (isEnabled "ANDROID_BINDER_IPC")
(isEnabled "ANDROID_BINDERFS") (isEnabled "ANDROID_BINDERFS")
(isEnabled "ASHMEM") (isEnabled "ASHMEM") # FIXME Needs memfd support instead on Linux 5.18 and waydroid 1.2.1
]; ];
/* NOTE: we always enable this flag even if CONFIG_PSI_DEFAULT_DISABLED is not on /* NOTE: we always enable this flag even if CONFIG_PSI_DEFAULT_DISABLED is not on

View file

@ -5,13 +5,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "fluidsynth"; pname = "fluidsynth";
version = "2.2.5"; version = "2.2.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "FluidSynth"; owner = "FluidSynth";
repo = "fluidsynth"; repo = "fluidsynth";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-aR8TLxl6OziP+DMSNro0DB/UtvzXDeDYQ3o/iy70XD4="; sha256 = "sha256-4uo+Ldrp66dmemulKqofX2pz8tE73/5zGtmnY5BHjs8=";
}; };
nativeBuildInputs = [ buildPackages.stdenv.cc pkg-config cmake ]; nativeBuildInputs = [ buildPackages.stdenv.cc pkg-config cmake ];

View file

@ -1,12 +1,12 @@
{ lib, fetchFromGitHub }: { lib, fetchFromGitHub }:
rec { rec {
version = "9.0.0001"; version = "9.0.0057";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "vim"; owner = "vim";
repo = "vim"; repo = "vim";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-WnMm3q5Stn3s33rxQt76goURSa1Rq+jMVWYiS+uJTX0="; sha256 = "sha256-KEEuWRxattBrOAC0dWnWGRVqyOIEMe34ivMvSeuxKyA";
}; };
enableParallelBuilding = true; enableParallelBuilding = true;

View file

@ -1715,9 +1715,7 @@ let
}; };
}; };
ms-python.python = callPackage ./python { ms-python.python = callPackage ./python { };
extractNuGet = callPackage ./python/extract-nuget.nix { };
};
msjsdiag.debugger-for-chrome = buildVscodeMarketplaceExtension { msjsdiag.debugger-for-chrome = buildVscodeMarketplaceExtension {
mktplcRef = { mktplcRef = {

View file

@ -1,134 +1,44 @@
{ lib, stdenv, fetchurl, fetchpatch, vscode-utils, extractNuGet { lib
, icu, curl, openssl, liburcu, lttng-ust, autoPatchelfHook , vscode-utils
, python3, musl , icu
, pythonUseFixed ? false # When `true`, the python default setting will be fixed to specified. , python3
# Use version from `PATH` for default setting otherwise. # When `true`, the python default setting will be fixed to specified.
# Defaults to `false` as we expect it to be project specific most of the time. # Use version from `PATH` for default setting otherwise.
, ctagsUseFixed ? true, ctags # When `true`, the ctags default setting will be fixed to specified. # Defaults to `false` as we expect it to be project specific most of the time.
# Use version from `PATH` for default setting otherwise. , pythonUseFixed ? false
# Defaults to `true` as usually not defined on a per projet basis.
}: }:
assert ctagsUseFixed -> null != ctags; vscode-utils.buildVscodeMarketplaceExtension {
let
liburcu-0-12 = liburcu.overrideAttrs (oldAttrs: rec {
version = "0.12.2";
src = fetchurl {
url = "https://lttng.org/files/urcu/userspace-rcu-${version}.tar.bz2";
sha256 = "0yx69kbx9zd6ayjzvwvglilhdnirq4f1x1sdv33jy8bc9wgc3vsf";
};
});
lttng-ust-2-10 = (lttng-ust.override {
liburcu = liburcu-0-12;
}).overrideAttrs (oldAttrs: rec {
version = "2.10.5";
src = fetchurl {
url = "https://lttng.org/files/lttng-ust/lttng-ust-${version}.tar.bz2";
sha256 = "0ddwk0nl28bkv2xb78gz16a2bvlpfbjmzwfbgwf5p1cq46dyvy86";
};
patches = (oldAttrs.patches or []) ++ [
# Pull upstream fix for -fno-common toolchain. Without it build fails on
# upstream gcc-10 as:
# ld: libustsnprintf.a(libustsnprintf_la-core.o):snprintf/core.c:23: multiple definition of
# `ust_loglevel'; ustctl.o:liblttng-ust-ctl/ustctl.c:80: first defined here
(fetchpatch {
name = "fno-common.patch";
url = "https://github.com/lttng/lttng-ust/commit/21a934df4c683e73e0a66a9afca33573fcf9d789.patch";
sha256 = "122lw9rdmr80gmz7814235ibqs47c6pzvg0ryh01805x0cymx74z";
})
];
});
pythonDefaultsTo = if pythonUseFixed then "${python3}/bin/python" else "python";
ctagsDefaultsTo = if ctagsUseFixed then "${ctags}/bin/ctags" else "ctags";
# The arch tag comes from 'PlatformName' defined here:
# https://github.com/Microsoft/vscode-python/blob/master/src/client/activation/types.ts
arch =
if stdenv.isLinux && stdenv.isx86_64 then "linux-x64"
else if stdenv.isDarwin then "osx-x64"
else throw "Only x86_64 Linux and Darwin are supported.";
languageServerSha256 = {
linux-x64 = "1pmj5pb4xylx4gdx4zgmisn0si59qx51n2m1bh7clv29q6biw05n";
osx-x64 = "0ishiy1z9dghj4ryh95vy8rw0v7q4birdga2zdb4a8am31wmp94b";
}.${arch};
# version is languageServerVersion in the package.json
languageServer = extractNuGet rec {
name = "Python-Language-Server";
version = "0.5.30";
src = fetchurl {
url = "https://pvsc.azureedge.net/python-language-server-stable/${name}-${arch}.${version}.nupkg";
sha256 = languageServerSha256;
};
};
in vscode-utils.buildVscodeMarketplaceExtension rec {
mktplcRef = { mktplcRef = {
name = "python"; name = "python";
publisher = "ms-python"; publisher = "ms-python";
version = "2022.0.1814523869"; version = "2022.11.11881005";
sha256 = "sha256-8NH/aWIAwSpVRi3cvBCpvO8MVzIoRaXxADmWp6DuUb8=";
}; };
vsix = fetchurl { buildInputs = [ icu ];
name = "${mktplcRef.publisher}-${mktplcRef.name}.zip";
url = "https://github.com/microsoft/vscode-python/releases/download/${mktplcRef.version}/ms-python-release.vsix";
sha256 = "sha256-JDaimcOUDo9GuFA3mhbbGLwqZE9ejk8pWYc+9PrRhVk=";
};
buildInputs = [ nativeBuildInputs = [ python3.pkgs.wrapPython ];
icu
curl
openssl
] ++ lib.optionals stdenv.isLinux [
lttng-ust-2-10
musl
];
nativeBuildInputs = [ propagatedBuildInputs = with python3.pkgs; [
python3.pkgs.wrapPython debugpy
] ++ lib.optionals stdenv.isLinux [ isort
autoPatchelfHook jedi-language-server
];
pythonPath = with python3.pkgs; [
setuptools
]; ];
postPatch = '' postPatch = ''
# remove bundled python deps and use libs from nixpkgs
rm -r pythonFiles/lib
mkdir -p pythonFiles/lib/python/
ln -s ${python3.pkgs.debugpy}/lib/*/site-packages/debugpy pythonFiles/lib/python/
buildPythonPath "$propagatedBuildInputs"
for i in pythonFiles/*.py; do
patchPythonScript "$i"
done
'' + lib.optionalString pythonUseFixed ''
# Patch `packages.json` so that nix's *python* is used as default value for `python.pythonPath`. # Patch `packages.json` so that nix's *python* is used as default value for `python.pythonPath`.
substituteInPlace "./package.json" \ substituteInPlace "./package.json" \
--replace "\"default\": \"python\"" "\"default\": \"${pythonDefaultsTo}\"" --replace "\"default\": \"python\"" "\"default\": \"${python3.interpreter}\""
# Patch `packages.json` so that nix's *ctags* is used as default value for `python.workspaceSymbols.ctagsPath`.
substituteInPlace "./package.json" \
--replace "\"default\": \"ctags\"" "\"default\": \"${ctagsDefaultsTo}\""
# Similar cleanup to what's done in the `debugpy` python package.
# This prevent our autopatchelf logic to bark on unsupported binaries (`attach_x86.so`
# was problematic) but also should make our derivation less heavy.
(
cd pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd_attach_to_process
declare kept_aside="${{
"x86_64-linux" = "attach_linux_amd64.so";
"aarch64-darwin" = "attach_x86_64.dylib";
"x86_64-darwin" = "attach_x86_64.dylib";
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}")}"
mv "$kept_aside" "$kept_aside.hidden"
rm *.so *.dylib *.dll *.exe *.pdb
mv "$kept_aside.hidden" "$kept_aside"
)
'';
postInstall = ''
mkdir -p "$out/$installPrefix/languageServer.${languageServer.version}"
cp -R --no-preserve=ownership ${languageServer}/* "$out/$installPrefix/languageServer.${languageServer.version}"
chmod -R +wx "$out/$installPrefix/languageServer.${languageServer.version}"
patchPythonScript "$out/$installPrefix/pythonFiles/lib/python/isort/main.py"
''; '';
meta = with lib; { meta = with lib; {

View file

@ -1,15 +0,0 @@
{ stdenv, unzip }:
{ name, version, src, ... }:
stdenv.mkDerivation {
inherit name version src;
nativeBuildInputs = [ unzip ];
dontBuild = true;
unpackPhase = "unzip $src";
installPhase = ''
mkdir -p "$out"
chmod -R +w .
find . -mindepth 1 -maxdepth 1 | xargs cp -a -t "$out"
'';
}

View file

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, makeWrapper { lib, stdenv, fetchFromGitHub, makeWrapper
, xorg, imlib2, libjpeg, libpng, fetchpatch , xorg, imlib2, libjpeg, libpng
, curl, libexif, jpegexiforient, perl , curl, libexif, jpegexiforient, perl
, enableAutoreload ? !stdenv.hostPlatform.isDarwin }: , enableAutoreload ? !stdenv.hostPlatform.isDarwin }:
@ -14,13 +14,11 @@ stdenv.mkDerivation rec {
sha256 = "sha256-rgNC4M1TJ5EPeWmVHVzgaxTGLY7CYQf7uOsOn5bkwKE="; sha256 = "sha256-rgNC4M1TJ5EPeWmVHVzgaxTGLY7CYQf7uOsOn5bkwKE=";
}; };
patches = [ postPatch = ''
# fix test failure when magic=0 is set substituteInPlace test/feh.t \
(fetchpatch { --replace "WARNING:" "WARNING: While loading" \
url = "https://github.com/derf/feh/commit/3c1076b31e2e4e3429a5c3d334d555e549fb72d2.patch"; --replace "Does not look like an image \(magic bytes missing\)" "Unknown error \(15\)"
sha256 = "sha256-F9N+N/BAeclyPHQYlO9ZV1U8S1VWfHl/8dMKUqA7DF8="; '';
})
];
outputs = [ "out" "man" "doc" ]; outputs = [ "out" "man" "doc" ];

View file

@ -27,11 +27,6 @@ with python3.pkgs; buildPythonApplication rec {
freezegun freezegun
]; ];
nativeBuildInputs = [ setuptools-scm sphinx sphinxcontrib_newsfeed installShellFiles ]; nativeBuildInputs = [ setuptools-scm sphinx sphinxcontrib_newsfeed installShellFiles ];
checkInputs = [
glibcLocales
pytestCheckHook
];
LC_ALL = "en_US.UTF-8";
postInstall = '' postInstall = ''
# shell completions # shell completions
@ -51,6 +46,18 @@ with python3.pkgs; buildPythonApplication rec {
doCheck = !stdenv.isAarch64; doCheck = !stdenv.isAarch64;
checkInputs = [
glibcLocales
pytestCheckHook
];
LC_ALL = "en_US.UTF-8";
disabledTests = [
# timing based
"test_etag"
];
meta = with lib; { meta = with lib; {
broken = stdenv.isDarwin; broken = stdenv.isDarwin;
homepage = "http://lostpackets.de/khal/"; homepage = "http://lostpackets.de/khal/";

View file

@ -29,7 +29,7 @@ let
}; };
pythonDeps = with python.pkgs; [ pythonDeps = with python.pkgs; [
flask flask_assets flask_login flask_sqlalchemy flask_migrate flask-seasurf flask_mail flask-session flask-sslify flask flask_assets flask_login flask-sqlalchemy flask_migrate flask-seasurf flask_mail flask-session flask-sslify
mysqlclient psycopg2 sqlalchemy mysqlclient psycopg2 sqlalchemy
cffi configobj cryptography bcrypt requests ldap pyotp qrcode dnspython cffi configobj cryptography bcrypt requests ldap pyotp qrcode dnspython
gunicorn python3-saml pytz cssmin rjsmin authlib bravado-core gunicorn python3-saml pytz cssmin rjsmin authlib bravado-core

View file

@ -26,7 +26,7 @@ assert sendEmailSupport -> perlSupport;
assert svnSupport -> perlSupport; assert svnSupport -> perlSupport;
let let
version = "2.37.0"; version = "2.37.1";
svn = subversionClient.override { perlBindings = perlSupport; }; svn = subversionClient.override { perlBindings = perlSupport; };
gitwebPerlLibs = with perlPackages; [ CGI HTMLParser CGIFast FCGI FCGIProcManager HTMLTagCloud ]; gitwebPerlLibs = with perlPackages; [ CGI HTMLParser CGIFast FCGI FCGIProcManager HTMLTagCloud ];
in in
@ -39,7 +39,7 @@ stdenv.mkDerivation {
src = fetchurl { src = fetchurl {
url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz"; url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz";
sha256 = "sha256-n3+hcRvQDE7D3eL+REB9wT8S5HcrXjxypY20wHSVQR8="; sha256 = "sha256-yBYsa4uPHF23BqsBtO4p4xBhGCE13CfEhgIkquwbNQA=";
}; };
outputs = [ "out" ] ++ lib.optional withManual "doc"; outputs = [ "out" ] ++ lib.optional withManual "doc";

View file

@ -9,7 +9,7 @@ python3Packages.buildPythonApplication rec {
owner = "rabbitvcs"; owner = "rabbitvcs";
repo = "rabbitvcs"; repo = "rabbitvcs";
rev = "v${version}"; rev = "v${version}";
sha256 = "01cr16zf3gzsci1hhfli79m34fcx5m1pvswl16rkxxn212yc9fhy"; hash = "sha256-gVrdf8vQWAGORZqlTS/axs4U7aZlS8OAgPM3iKgqAtM=";
}; };
buildInputs = [ gtk3 ]; buildInputs = [ gtk3 ];

View file

@ -64,7 +64,7 @@ let
# TODO: don't link all mpv outputs and convert package to mpv-unwrapped? # TODO: don't link all mpv outputs and convert package to mpv-unwrapped?
paths = [ mpv.all ]; paths = [ mpv.all ];
buildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
passthru.unwrapped = mpv; passthru.unwrapped = mpv;

View file

@ -121,6 +121,11 @@ stdenv.mkDerivation rec {
url = "https://gitlab.com/qemu/qemu/-/commit/f5643914a9e8f79c606a76e6a9d7ea82a3fc3e65.patch"; url = "https://gitlab.com/qemu/qemu/-/commit/f5643914a9e8f79c606a76e6a9d7ea82a3fc3e65.patch";
sha256 = "sha256-8i13wU135h+YxoXFtkXweBN3hMslpWoNoeQ7Ydmn3V4="; sha256 = "sha256-8i13wU135h+YxoXFtkXweBN3hMslpWoNoeQ7Ydmn3V4=";
}) })
(fetchpatch {
name = "CVE-2022-35414.patch";
url = "https://gitlab.com/qemu-project/qemu/-/commit/418ade7849ce7641c0f7333718caf5091a02fd4c.patch";
sha256 = "sha256-zQHDXedIXZBnabv4+3TA4z5mY1+KZiPmqUbhaSkGLgA=";
})
] ]
++ lib.optional nixosTestRunner ./force-uid0-on-9p.patch; ++ lib.optional nixosTestRunner ./force-uid0-on-9p.patch;

View file

@ -15,7 +15,8 @@ maturinBuildHook() {
"CC_@rustTargetPlatform@=@ccForHost@" \ "CC_@rustTargetPlatform@=@ccForHost@" \
"CXX_@rustTargetPlatform@=@cxxForHost@" \ "CXX_@rustTargetPlatform@=@cxxForHost@" \
maturin build \ maturin build \
--cargo-extra-args="-j $NIX_BUILD_CORES --frozen" \ --jobs=$NIX_BUILD_CORES \
--frozen \
--target @rustTargetPlatformSpec@ \ --target @rustTargetPlatformSpec@ \
--manylinux off \ --manylinux off \
--strip \ --strip \

View file

@ -1,6 +1,7 @@
export NIX_SET_BUILD_ID=1 export NIX_SET_BUILD_ID=1
export NIX_LDFLAGS+=" --compress-debug-sections=zlib" export NIX_LDFLAGS+=" --compress-debug-sections=zlib"
export NIX_CFLAGS_COMPILE+=" -ggdb -Wa,--compress-debug-sections" export NIX_CFLAGS_COMPILE+=" -ggdb -Wa,--compress-debug-sections"
export RUSTFLAGS+=" -g"
dontStrip=1 dontStrip=1
fixupOutputHooks+=(_separateDebugInfo) fixupOutputHooks+=(_separateDebugInfo)

View file

@ -22,7 +22,9 @@ stdenv.mkDerivation rec {
"GNUSTEP_INSTALLATION_DOMAIN=SYSTEM" "GNUSTEP_INSTALLATION_DOMAIN=SYSTEM"
]; ];
buildInputs = [ clang which libobjc ]; nativeBuildInputs = [ clang which ];
buildInputs = [ libobjc ];
patches = [ ./fixup-paths.patch ]; patches = [ ./fixup-paths.patch ];
setupHook = ./setup-hook.sh; setupHook = ./setup-hook.sh;
meta = { meta = {

View file

@ -1,7 +1,7 @@
{ lib, stdenv, make, makeWrapper, which }: { lib, stdenv, make, makeWrapper, which }:
{ buildInputs ? [], ...} @ args: { nativeBuildInputs ? [], ...} @ args:
stdenv.mkDerivation (args // { stdenv.mkDerivation (args // {
buildInputs = [ makeWrapper make which ] ++ buildInputs; nativeBuildInputs = [ makeWrapper make which ] ++ nativeBuildInputs;
builder = ./builder.sh; builder = ./builder.sh;
setupHook = ./setup-hook.sh; setupHook = ./setup-hook.sh;

View file

@ -95,6 +95,20 @@ in stdenv.mkDerivation (rec {
'' + optionalString (stdenv.hostPlatform.system == "armv6l-linux") '' '' + optionalString (stdenv.hostPlatform.system == "armv6l-linux") ''
# Seems to require certain floating point hardware (NEON?) # Seems to require certain floating point hardware (NEON?)
rm test/ExecutionEngine/frem.ll rm test/ExecutionEngine/frem.ll
'' + optionalString stdenv.hostPlatform.isRiscV ''
rm test/ExecutionEngine/frem.ll
rm test/ExecutionEngine/mov64zext32.ll
rm test/ExecutionEngine/test-interp-vec-arithm_float.ll
rm test/ExecutionEngine/test-interp-vec-arithm_int.ll
rm test/ExecutionEngine/test-interp-vec-logical.ll
rm test/ExecutionEngine/test-interp-vec-setcond-fp.ll
rm test/ExecutionEngine/test-interp-vec-setcond-int.ll
substituteInPlace unittests/Support/CMakeLists.txt \
--replace "CrashRecoveryTest.cpp" ""
rm unittests/Support/CrashRecoveryTest.cpp
substituteInPlace unittests/ExecutionEngine/Orc/CMakeLists.txt \
--replace "OrcCAPITest.cpp" ""
rm unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
'' + '' '' + ''
patchShebangs test/BugPoint/compile-custom.ll.py patchShebangs test/BugPoint/compile-custom.ll.py
''; '';

View file

@ -20,8 +20,8 @@
} @ args: } @ args:
import ./default.nix { import ./default.nix {
rustcVersion = "1.62.0"; rustcVersion = "1.62.1";
rustcSha256 = "09y06qmh7ihi9kgimpp3h4nj3cmgc1zypqyaba10dlk4kf07h23x"; rustcSha256 = "sha256-cqy+b/zZT1mDgqdDCw2F7o9nnm0LJ/P1Zu0cFsl4Ez8=";
llvmSharedForBuild = pkgsBuildBuild.llvmPackages_14.libllvm.override { enableSharedLibraries = true; }; llvmSharedForBuild = pkgsBuildBuild.llvmPackages_14.libllvm.override { enableSharedLibraries = true; };
llvmSharedForHost = pkgsBuildHost.llvmPackages_14.libllvm.override { enableSharedLibraries = true; }; llvmSharedForHost = pkgsBuildHost.llvmPackages_14.libllvm.override { enableSharedLibraries = true; };

View file

@ -40,6 +40,13 @@ stdenv.mkDerivation rec {
url = "https://bugs.launchpad.net/sbcl/+bug/1980570/+attachment/5600916/+files/0001-src-runtime-fix-fno-common-build-on-darwin.patch"; url = "https://bugs.launchpad.net/sbcl/+bug/1980570/+attachment/5600916/+files/0001-src-runtime-fix-fno-common-build-on-darwin.patch";
sha256 = "0avpwgjdaxxdpq8pfvv9darfn4ql5dgqq7zaf3nmxnvhh86ngzij"; sha256 = "0avpwgjdaxxdpq8pfvv9darfn4ql5dgqq7zaf3nmxnvhh86ngzij";
}) })
] ++ lib.optionals (lib.versionAtLeast version "2.1.10" && lib.versionOlder version "2.2.0") [
# Fix -fno-common on arm64
(fetchpatch {
name = "arm64-fno-common.patch";
url = "https://github.com/sbcl/sbcl/commit/ac3739eae36de92feffef5bb9b4b4bd93f6c4942.patch";
sha256 = "1kxg0ng7d465rk5v4biikrzaps41x4n1v4ygnb5qh4f5jzkbms8y";
})
] ++ lib.optionals (version == "2.2.6") [ ] ++ lib.optionals (version == "2.2.6") [
# Take contrib blocklist into account for doc generation. This fixes sbcl # Take contrib blocklist into account for doc generation. This fixes sbcl
# build on aarch64, because the docs Makefile tries to require sb-simd, # build on aarch64, because the docs Makefile tries to require sb-simd,
@ -102,6 +109,14 @@ stdenv.mkDerivation rec {
optional (!threadSupport) "sb-thread" ++ optional (!threadSupport) "sb-thread" ++
optionals disableImmobileSpace [ "immobile-space" "immobile-code" "compact-instance-header" ]; optionals disableImmobileSpace [ "immobile-space" "immobile-code" "compact-instance-header" ];
NIX_CFLAGS_COMPILE = lib.optional (lib.versionOlder version "2.1.10") [
# Workaround build failure on -fno-common toolchains like upstream
# clang-13. Without the change build fails as:
# duplicate symbol '_static_code_space_free_pointer' in: alloc.o traceroot.o
# Should be fixed past 2.1.10 release.
"-fcommon"
];
buildPhase = '' buildPhase = ''
runHook preBuild runHook preBuild

View file

@ -6,25 +6,24 @@
, version, src , version, src
}: }:
let with python3.pkgs; buildPythonApplication rec {
python = python3.override {
packageOverrides = self: super: {
starlette = super.starlette.overridePythonAttrs (oldAttrs: rec {
version = "0.20.0";
src = fetchFromGitHub {
owner = "encode";
repo = "starlette";
rev = version;
sha256 = "sha256-bSgPjKqM262PSufz1LHwrdM+uU8xO55Mifv66HRN02Y=";
};
});
};
};
in
with python.pkgs; buildPythonApplication rec {
pname = "platformio"; pname = "platformio";
inherit version src; inherit version src;
patches = [
./fix-searchpath.patch
./use-local-spdx-license-list.patch
./missing-udev-rules-nixos.patch
];
postPatch = ''
substitute platformio/package/manifest/schema.py platformio/package/manifest/schema.py \
--subst-var-by SPDX_LICENSE_LIST_DATA '${spdx-license-list-data.json}'
substituteInPlace setup.py \
--replace 'uvicorn==%s" % ("0.17.*"' 'uvicorn==%s" % ("0.18.*"'
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
aiofiles aiofiles
ajsonrpc ajsonrpc
@ -47,15 +46,43 @@ with python.pkgs; buildPythonApplication rec {
zeroconf zeroconf
]; ];
HOME = "/tmp"; preCheck = ''
export HOME=$(mktemp -d)
export PATH=$PATH:$out/bin
'';
checkInputs = [ checkInputs = [
jsondiff jsondiff
pytestCheckHook pytestCheckHook
tox
]; ];
pytestFlagsArray = (map (e: "--deselect tests/${e}") [ disabledTestPaths = [
"tests/commands/pkg/test_install.py"
"tests/commands/pkg/test_list.py"
"tests/commands/pkg/test_outdated.py"
"tests/commands/pkg/test_search.py"
"tests/commands/pkg/test_show.py"
"tests/commands/pkg/test_uninstall.py"
"tests/commands/pkg/test_update.py"
"tests/commands/test_boards.py"
"tests/commands/test_check.py"
"tests/commands/test_platform.py"
"tests/commands/test_run.py"
"tests/commands/test_test.py"
"tests/misc/test_maintenance.py"
# requires internet connection
"tests/misc/ino2cpp/test_ino2cpp.py"
];
disabledTests = [
# requires internet connection
"test_api_cache"
"test_ping_internet_ips"
];
pytestFlagsArray = [
"tests"
] ++ (map (e: "--deselect tests/${e}") [
"commands/pkg/test_exec.py::test_pkg_specified" "commands/pkg/test_exec.py::test_pkg_specified"
"commands/pkg/test_exec.py::test_unrecognized_options" "commands/pkg/test_exec.py::test_unrecognized_options"
"commands/test_ci.py::test_ci_boards" "commands/test_ci.py::test_ci_boards"
@ -112,45 +139,13 @@ with python.pkgs; buildPythonApplication rec {
"test_misc.py::test_ping_internet_ips" "test_misc.py::test_ping_internet_ips"
"test_misc.py::test_platformio_cli" "test_misc.py::test_platformio_cli"
"test_pkgmanifest.py::test_packages" "test_pkgmanifest.py::test_packages"
]) ++ (map (e: "--ignore=tests/${e}") [ ]);
"commands/pkg/test_install.py"
"commands/pkg/test_list.py"
"commands/pkg/test_outdated.py"
"commands/pkg/test_search.py"
"commands/pkg/test_show.py"
"commands/pkg/test_uninstall.py"
"commands/pkg/test_update.py"
"commands/test_boards.py"
"commands/test_check.py"
"commands/test_platform.py"
"commands/test_run.py"
"commands/test_test.py"
"commands/test_update.py"
"test_ino2cpp.py"
"test_maintenance.py"
]) ++ [
"tests"
];
patches = [
./fix-searchpath.patch
./use-local-spdx-license-list.patch
./missing-udev-rules-nixos.patch
];
postPatch = ''
substitute platformio/package/manifest/schema.py platformio/package/manifest/schema.py \
--subst-var-by SPDX_LICENSE_LIST_DATA '${spdx-license-list-data.json}'
substituteInPlace setup.py \
--replace "wsproto==1.0.*" "wsproto" \
--replace "zeroconf==0.38.*" "zeroconf"
'';
meta = with lib; { meta = with lib; {
description = "An open source ecosystem for IoT development"; description = "An open source ecosystem for IoT development";
homepage = "https://platformio.org"; homepage = "https://platformio.org";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ mog makefu ]; maintainers = with maintainers; [ mog makefu ];
broken = stdenv.isAarch64;
}; };
} }

View file

@ -4,14 +4,14 @@
let let
callPackage = newScope self; callPackage = newScope self;
version = "6.0.1"; version = "6.0.2";
# pypi tarballs don't contain tests - https://github.com/platformio/platformio-core/issues/1964 # pypi tarballs don't contain tests - https://github.com/platformio/platformio-core/issues/1964
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "platformio"; owner = "platformio";
repo = "platformio-core"; repo = "platformio-core";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-noLdQctAaMNmfuxI3iybHFx3Q9aTr3gZaUZ+/uO+fnA="; sha256 = "sha256-yfUF9+M45ZSjmB275kTs8+/Q8Q5FMmr63e3Om8dPi2k=";
}; };
self = { self = {

View file

@ -5,7 +5,7 @@ index ef1d3bab..445174fc 100644
@@ -57,6 +57,7 @@ class MissedUdevRules(InvalidUdevRules): @@ -57,6 +57,7 @@ class MissedUdevRules(InvalidUdevRules):
MESSAGE = ( MESSAGE = (
"Warning! Please install `99-platformio-udev.rules`. \nMore details: " "Warning! Please install `99-platformio-udev.rules`. \nMore details: "
"https://docs.platformio.org/page/faq.html#platformio-udev-rules" "https://docs.platformio.org/en/latest/core/installation/udev-rules.html"
+ "On NixOS add the platformio package to services.udev.packages" + "On NixOS add the platformio package to services.udev.packages"
) )

View file

@ -53,5 +53,5 @@ installSphinxPhase() {
runHook postInstallSphinx runHook postInstallSphinx
} }
preBuildPhases+=" buildSphinxPhase" preDistPhases+=" buildSphinxPhase"
postPhases+=" installSphinxPhase" postPhases+=" installSphinxPhase"

View file

@ -39,15 +39,13 @@ stdenv.mkDerivation rec {
fixDarwinDylibNames fixDarwinDylibNames
]; ];
buildInputs = [ gobject-introspection ];
propagatedBuildInputs = [ propagatedBuildInputs = [
# Required by atk.pc # Required by atk.pc
glib glib
]; ];
mesonFlags = [
"-Dintrospection=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
];
doCheck = true; doCheck = true;
passthru = { passthru = {

View file

@ -1,19 +1,23 @@
{ lib, stdenv, fetchurl { lib
, stdenv
, fetchurl
, autoreconfHook , autoreconfHook
, enableLargeConfig ? false # doc: https://github.com/ivmai/bdwgc/blob/v8.0.6/doc/README.macros (LARGE_CONFIG) # doc: https://github.com/ivmai/bdwgc/blob/v8.0.6/doc/README.macros (LARGE_CONFIG)
, enableLargeConfig ? false
, enableMmap ? true
, nixVersions , nixVersions
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "boehm-gc"; pname = "boehm-gc";
version = "8.0.6"; version = "8.0.6";
src = fetchurl { src = fetchurl {
urls = [ urls = [
"https://github.com/ivmai/bdwgc/releases/download/v${version}/gc-${version}.tar.gz" "https://www.hboehm.info/gc/gc_source/gc-${finalAttrs.version}.tar.gz"
"https://www.hboehm.info/gc/gc_source/gc-${version}.tar.gz" "https://github.com/ivmai/bdwgc/releases/download/v${finalAttrs.version}/gc-${finalAttrs.version}.tar.gz"
]; ];
sha256 = "3b4914abc9fa76593596773e4da671d7ed4d5390e3d46fbf2e5f155e121bea11"; sha256 = "sha256-O0kUq8n6dlk1lnc+TaZx1+1NU5Dj1G+/Ll8VXhIb6hE=";
}; };
outputs = [ "out" "dev" "doc" ]; outputs = [ "out" "dev" "doc" ];
@ -22,22 +26,24 @@ stdenv.mkDerivation rec {
# boehm-gc whitelists GCC threading models # boehm-gc whitelists GCC threading models
patches = lib.optional stdenv.hostPlatform.isMinGW ./mcfgthread.patch; patches = lib.optional stdenv.hostPlatform.isMinGW ./mcfgthread.patch;
configureFlags = configureFlags = [
[ "--enable-cplusplus" "--with-libatomic-ops=none" ] "--enable-cplusplus"
++ lib.optional enableLargeConfig "--enable-large-config"; "--with-libatomic-ops=none"
]
++ lib.optional enableMmap "--enable-mmap"
++ lib.optional enableLargeConfig "--enable-large-config";
nativeBuildInputs = nativeBuildInputs = lib.optional stdenv.hostPlatform.isMinGW autoreconfHook;
lib.optional stdenv.hostPlatform.isMinGW autoreconfHook;
doCheck = true; # not cross; doCheck = true;
enableParallelBuilding = true; enableParallelBuilding = true;
passthru.tests = nixVersions; passthru.tests = nixVersions;
meta = { meta = with lib; {
homepage = "https://hboehm.info/gc/";
description = "The Boehm-Demers-Weiser conservative garbage collector for C and C++"; description = "The Boehm-Demers-Weiser conservative garbage collector for C and C++";
longDescription = '' longDescription = ''
The Boehm-Demers-Weiser conservative garbage collector can be used as a The Boehm-Demers-Weiser conservative garbage collector can be used as a
garbage collecting replacement for C malloc or C++ new. It allows you garbage collecting replacement for C malloc or C++ new. It allows you
@ -54,13 +60,10 @@ stdenv.mkDerivation rec {
Alternatively, the garbage collector may be used as a leak detector for Alternatively, the garbage collector may be used as a leak detector for
C or C++ programs, though that is not its primary goal. C or C++ programs, though that is not its primary goal.
''; '';
homepage = "https://hboehm.info/gc/";
# non-copyleft, X11-style license # non-copyleft, X11-style license
changelog = "https://github.com/ivmai/bdwgc/blob/v${finalAttrs.version}/ChangeLog";
license = "https://hboehm.info/gc/license.txt"; license = "https://hboehm.info/gc/license.txt";
maintainers = with maintainers; [ AndersonTorres ];
maintainers = [ ]; platforms = platforms.all;
platforms = lib.platforms.all;
}; };
} })

View file

@ -16,22 +16,18 @@
, libjpeg , libjpeg
, libpng , libpng
, gnome , gnome
, gobject-introspection
, buildPackages
, doCheck ? false , doCheck ? false
, makeWrapper , makeWrapper
, lib , lib
, withIntrospection ? (stdenv.buildPlatform == stdenv.hostPlatform)
, gobject-introspection
}: }:
let
withGtkDoc = stdenv.buildPlatform == stdenv.hostPlatform;
in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gdk-pixbuf"; pname = "gdk-pixbuf";
version = "2.42.8"; version = "2.42.8";
outputs = [ "out" "dev" "man" ] outputs = [ "out" "dev" "man" "devdoc" ]
++ lib.optional withGtkDoc "devdoc"
++ lib.optional (stdenv.buildPlatform == stdenv.hostPlatform) "installedTests"; ++ lib.optional (stdenv.buildPlatform == stdenv.hostPlatform) "installedTests";
src = fetchurl { src = fetchurl {
@ -60,6 +56,7 @@ stdenv.mkDerivation rec {
makeWrapper makeWrapper
glib glib
gi-docgen gi-docgen
gobject-introspection
# for man pages # for man pages
libxslt libxslt
@ -67,10 +64,10 @@ stdenv.mkDerivation rec {
docbook_xml_dtd_43 docbook_xml_dtd_43
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
fixDarwinDylibNames fixDarwinDylibNames
] ++ lib.optionals withIntrospection [
gobject-introspection
]; ];
buildInputs = [ gobject-introspection ];
propagatedBuildInputs = [ propagatedBuildInputs = [
glib glib
libtiff libtiff
@ -79,9 +76,8 @@ stdenv.mkDerivation rec {
]; ];
mesonFlags = [ mesonFlags = [
"-Dgtk_doc=${lib.boolToString withGtkDoc}"
"-Dintrospection=${if withIntrospection then "enabled" else "disabled"}"
"-Dgio_sniffing=false" "-Dgio_sniffing=false"
"-Dgtk_doc=true"
]; ];
postPatch = '' postPatch = ''
@ -89,10 +85,13 @@ stdenv.mkDerivation rec {
patchShebangs build-aux patchShebangs build-aux
substituteInPlace tests/meson.build --subst-var-by installedtestsprefix "$installedTests" substituteInPlace tests/meson.build --subst-var-by installedtestsprefix "$installedTests"
'';
preInstall = '' # Run-time dependency gi-docgen found: NO (tried pkgconfig and cmake)
PATH=$PATH:$out/bin # for install script # it should be a build-time dep for build
# TODO: send upstream
substituteInPlace docs/meson.build \
--replace "dependency('gi-docgen'," "dependency('gi-docgen', native:true," \
--replace "'gi-docgen', req" "'gi-docgen', native:true, req"
''; '';
postInstall = postInstall =
@ -108,9 +107,9 @@ stdenv.mkDerivation rec {
install_name_tool -change @rpath/libgdk_pixbuf-2.0.0.dylib $out/lib/libgdk_pixbuf-2.0.0.dylib $f install_name_tool -change @rpath/libgdk_pixbuf-2.0.0.dylib $out/lib/libgdk_pixbuf-2.0.0.dylib $f
mv $f ''${f%.dylib}.so mv $f ''${f%.dylib}.so
done done
'' + lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) '' '' + ''
# We need to install 'loaders.cache' in lib/gdk-pixbuf-2.0/2.10.0/ # We need to install 'loaders.cache' in lib/gdk-pixbuf-2.0/2.10.0/
$dev/bin/gdk-pixbuf-query-loaders --update-cache ${stdenv.hostPlatform.emulator buildPackages} $dev/bin/gdk-pixbuf-query-loaders --update-cache
''; '';
# The fixDarwinDylibNames hook doesn't patch binaries. # The fixDarwinDylibNames hook doesn't patch binaries.
@ -120,7 +119,7 @@ stdenv.mkDerivation rec {
done done
''; '';
postFixup = lib.optionalString withGtkDoc '' postFixup = ''
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back. # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
moveToOutput "share/doc" "$devdoc" moveToOutput "share/doc" "$devdoc"
''; '';

View file

@ -4,6 +4,7 @@
, fetchpatch , fetchpatch
, intltool , intltool
, meson , meson
, mesonEmulatorHook
, ninja , ninja
, pkg-config , pkg-config
, gtk-doc , gtk-doc
@ -74,6 +75,8 @@ stdenv.mkDerivation rec {
gtk-doc gtk-doc
docbook-xsl-nons docbook-xsl-nons
docbook_xml_dtd_412 docbook_xml_dtd_412
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
]; ];
buildInputs = [ buildInputs = [
@ -81,6 +84,7 @@ stdenv.mkDerivation rec {
json-glib json-glib
libsoup libsoup
avahi avahi
gobject-introspection
] ++ lib.optionals withDemoAgent [ ] ++ lib.optionals withDemoAgent [
libnotify gdk-pixbuf libnotify gdk-pixbuf
] ++ lib.optionals (!stdenv.isDarwin) [ ] ++ lib.optionals (!stdenv.isDarwin) [

View file

@ -27,7 +27,7 @@
# it may be worth thinking about using multiple derivation outputs # it may be worth thinking about using multiple derivation outputs
# In that case its about 6MB which could be separated # In that case its about 6MB which could be separated
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "gobject-introspection"; pname = "gobject-introspection";
version = "1.72.0"; version = "1.72.0";
@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
outputBin = "dev"; outputBin = "dev";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; url = "mirror://gnome/sources/gobject-introspection/${lib.versions.majorMinor finalAttrs.version}/gobject-introspection-${finalAttrs.version}.tar.xz";
sha256 = "Av6OWQhh2I+DBg3TnNpcyqYLLaHSHQ+VSZMBsYa+qrw="; sha256 = "Av6OWQhh2I+DBg3TnNpcyqYLLaHSHQ+VSZMBsYa+qrw=";
}; };
@ -68,7 +68,7 @@ stdenv.mkDerivation rec {
docbook-xsl-nons docbook-xsl-nons
docbook_xml_dtd_45 docbook_xml_dtd_45
python3 python3
setupHook # move .gir files finalAttrs.setupHook # move .gir files
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ gobject-introspection-unwrapped ]; ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ gobject-introspection-unwrapped ];
buildInputs = [ buildInputs = [
@ -105,6 +105,10 @@ stdenv.mkDerivation rec {
postInstall = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) '' postInstall = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
cp -r ${buildPackages.gobject-introspection-unwrapped.devdoc} $devdoc cp -r ${buildPackages.gobject-introspection-unwrapped.devdoc} $devdoc
# these are uncompiled c and header files which aren't installed when cross-compiling because
# code that installs them is in tests/meson.build which is only run when not cross-compiling
# pygobject3 needs them
cp -r ${buildPackages.gobject-introspection-unwrapped.dev}/share/gobject-introspection-1.0/tests $dev/share/gobject-introspection-1.0/tests
''; '';
preCheck = '' preCheck = ''
@ -124,7 +128,7 @@ stdenv.mkDerivation rec {
passthru = { passthru = {
updateScript = gnome.updateScript { updateScript = gnome.updateScript {
packageName = pname; packageName = "gobject-introspection";
versionPolicy = "odd-unstable"; versionPolicy = "odd-unstable";
}; };
}; };
@ -144,4 +148,4 @@ stdenv.mkDerivation rec {
automatically provide bindings to call into the C library. automatically provide bindings to call into the C library.
''; '';
}; };
} })

View file

@ -0,0 +1,32 @@
From e0fc4a2a5161a36483ddc518be9bb14390f11b19 Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <alex.kanavin@gmail.com>
Date: Wed, 5 Sep 2018 16:46:52 +0200
Subject: [PATCH] giscanner: ignore error return codes from ldd-wrapper
prelink-rtld, which we use instead of ldd returns 127 when it can't find a library.
It is not an error per se, but it breaks subprocess.check_output().
Upstream-Status: Inappropriate [oe-core specific]
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Adam Duskett <aduskett@gmail.com>
---
giscanner/shlibs.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py
index 9f8ab5df..7a1a72fe 100644
--- a/giscanner/shlibs.py
+++ b/giscanner/shlibs.py
@@ -103,7 +103,7 @@ def _resolve_non_libtool(options, binary, libraries):
args.extend(['otool', '-L', binary.args[0]])
else:
args.extend(['ldd', binary.args[0]])
- output = subprocess.check_output(args)
+ output = subprocess.run(args, check=False, stdout=subprocess.PIPE).stdout
if isinstance(output, bytes):
output = output.decode("utf-8", "replace")
--
2.25.1

View file

@ -10,7 +10,7 @@ make_gobject_introspection_find_gir_files() {
fi fi
} }
addEnvHooks "$hostOffset" make_gobject_introspection_find_gir_files addEnvHooks "$targetOffset" make_gobject_introspection_find_gir_files
giDiscoverSelf() { giDiscoverSelf() {
if [ -d "$prefix/lib/girepository-1.0" ]; then if [ -d "$prefix/lib/girepository-1.0" ]; then

View file

@ -7,7 +7,7 @@
}@_args: }@_args:
# to build, run # to build, run
# 'nix build ".#pkgsCross.aarch64-multiplatform.buildPackages.gobject-introspection"' # `nix build ".#pkgsCross.aarch64-multiplatform.buildPackages.gobject-introspection"`
let let
# ensure that `.override` works when gobject-introspection == gobject-introspection-wrapped # ensure that `.override` works when gobject-introspection == gobject-introspection-wrapped
@ -16,9 +16,12 @@ let
argsForTarget = builtins.removeAttrs args [ "stdenv" ]; argsForTarget = builtins.removeAttrs args [ "stdenv" ];
in in
(gobject-introspection-unwrapped.override args).overrideAttrs (_previousAttrs: { (gobject-introspection-unwrapped.override args).overrideAttrs (previousAttrs: {
pname = "gobject-introspection-wrapped"; pname = "gobject-introspection-wrapped";
postFixup = '' # failure in e.g. pkgsCross.aarch64-multiplatform.polkit
# subprocess.CalledProcessError: Command '['/nix/store/...-prelink-unstable-2019-06-24/bin/prelink-rtld', '/build/source/build/tmp-introspectzp2ldkyk/PolkitAgent-1.0']' returned non-zero exit status 127.
patches = previousAttrs.patches ++ [ ./giscanner-ignore-error-return-codes-from-ldd-wrapper.patch ];
postFixup = (previousAttrs.postFixup or "") + ''
mv $dev/bin/g-ir-compiler $dev/bin/.g-ir-compiler-wrapped mv $dev/bin/g-ir-compiler $dev/bin/.g-ir-compiler-wrapped
mv $dev/bin/g-ir-scanner $dev/bin/.g-ir-scanner-wrapped mv $dev/bin/g-ir-scanner $dev/bin/.g-ir-scanner-wrapped
@ -34,5 +37,22 @@ in
chmod +x "$dev/bin/g-ir-compiler" chmod +x "$dev/bin/g-ir-compiler"
chmod +x "$dev/bin/g-ir-scanner" chmod +x "$dev/bin/g-ir-scanner"
) )
''
# when cross-compiling and using the wrapper then when a package looks up the g_ir_X
# variable with pkg-config they'll get the host version which can't be run
# override the variable to use the absolute path to g_ir_X in PATH which can be run
+ ''
cat >> $dev/nix-support/setup-hook <<-'EOF'
override-pkg-config-gir-variables() {
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_G_IR_SCANNER="$(type -p g-ir-scanner)"
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_G_IR_COMPILER="$(type -p g-ir-compiler)"
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_G_IR_GENERATE="$(type -p g-ir-generate)"
export PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_G_IR_SCANNER
export PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_G_IR_COMPILER
export PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_G_IR_GENERATE
}
preConfigureHooks+=(override-pkg-config-gir-variables)
EOF
''; '';
}) })

View file

@ -121,11 +121,9 @@ stdenv.mkDerivation rec {
]; ];
buildInputs = [ buildInputs = [
gobject-introspection
gst-plugins-base gst-plugins-base
orc orc
# gobject-introspection has to be in both nativeBuildInputs and
# buildInputs. The build tries to link against libgirepository-1.0.so
gobject-introspection
json-glib json-glib
ldacbt ldacbt
libass libass
@ -294,8 +292,6 @@ stdenv.mkDerivation rec {
# `applemedia/videotexturecache.h` requires `gst/gl/gl.h`, # `applemedia/videotexturecache.h` requires `gst/gl/gl.h`,
# but its meson build system does not declare the dependency. # but its meson build system does not declare the dependency.
"-Dapplemedia=disabled" "-Dapplemedia=disabled"
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
"-Dintrospection=disabled"
] ++ (if enableGplPlugins then [ ] ++ (if enableGplPlugins then [
"-Dgpl=enabled" "-Dgpl=enabled"
] else [ ] else [

View file

@ -18,6 +18,7 @@
, libvisual , libvisual
, tremor # provides 'virbisidec' , tremor # provides 'virbisidec'
, libGL , libGL
, gobject-introspection
, enableX11 ? stdenv.isLinux , enableX11 ? stdenv.isLinux
, libXv , libXv
, libXext , libXext
@ -36,8 +37,6 @@
, enableCdparanoia ? (!stdenv.isDarwin) , enableCdparanoia ? (!stdenv.isDarwin)
, cdparanoia , cdparanoia
, glib , glib
, withIntrospection ? stdenv.buildPlatform == stdenv.hostPlatform
, gobject-introspection
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -52,6 +51,9 @@ stdenv.mkDerivation rec {
}; };
strictDeps = true; strictDeps = true;
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [ nativeBuildInputs = [
meson meson
ninja ninja
@ -63,11 +65,11 @@ stdenv.mkDerivation rec {
gstreamer gstreamer
# docs # docs
# TODO add hotdoc here # TODO add hotdoc here
] ++ lib.optionals withIntrospection [
gobject-introspection gobject-introspection
] ++ lib.optional enableWayland wayland; ] ++ lib.optional enableWayland wayland;
buildInputs = [ buildInputs = [
gobject-introspection
orc orc
libtheora libtheora
libintl libintl
@ -91,8 +93,6 @@ 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;
@ -106,7 +106,6 @@ 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) [
"-Dtests=disabled" "-Dtests=disabled"
] ]

View file

@ -16,7 +16,6 @@
, bash-completion , bash-completion
, lib , lib
, CoreServices , CoreServices
, withIntrospection ? stdenv.buildPlatform == stdenv.hostPlatform
, gobject-introspection , gobject-introspection
}: }:
@ -38,6 +37,10 @@ stdenv.mkDerivation rec {
sha256 = "0cghi6n4nhdbajz3wqcgbh5xm94myvnqgsi9g2bz9n1s9904l2fy"; sha256 = "0cghi6n4nhdbajz3wqcgbh5xm94myvnqgsi9g2bz9n1s9904l2fy";
}; };
depsBuildBuild = [
pkg-config
];
strictDeps = true; strictDeps = true;
nativeBuildInputs = [ nativeBuildInputs = [
meson meson
@ -50,23 +53,21 @@ stdenv.mkDerivation rec {
makeWrapper makeWrapper
glib glib
bash-completion bash-completion
gobject-introspection
# documentation # documentation
# TODO add hotdoc here # TODO add hotdoc here
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.isLinux [
libcap # for setcap binary libcap # for setcap binary
] ++ lib.optionals withIntrospection [
gobject-introspection
]; ];
buildInputs = [ buildInputs = [
bash-completion bash-completion
gobject-introspection
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.isLinux [
libcap libcap
libunwind libunwind
elfutils elfutils
] ++ lib.optionals withIntrospection [
gobject-introspection
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
CoreServices CoreServices
]; ];
@ -79,7 +80,6 @@ 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
"-Dintrospection=${if withIntrospection then "enabled" else "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"

View file

@ -26,6 +26,10 @@ stdenv.mkDerivation rec {
# "devdoc" # disabled until `hotdoc` is packaged in nixpkgs # "devdoc" # disabled until `hotdoc` is packaged in nixpkgs
]; ];
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [ nativeBuildInputs = [
meson meson
ninja ninja
@ -40,6 +44,7 @@ stdenv.mkDerivation rec {
cairo cairo
python3 python3
json-glib json-glib
gobject-introspection
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -49,8 +54,6 @@ stdenv.mkDerivation rec {
mesonFlags = [ mesonFlags = [
"-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=disabled"
]; ];
meta = with lib; { meta = with lib; {

View file

@ -46,6 +46,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
bash-completion bash-completion
libxml2 libxml2
gobject-introspection
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -55,8 +56,6 @@ stdenv.mkDerivation rec {
mesonFlags = [ mesonFlags = [
"-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=disabled"
]; ];
postPatch = '' postPatch = ''

View file

@ -41,13 +41,12 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
gst-plugins-base gst-plugins-base
gst-plugins-bad gst-plugins-bad
gobject-introspection
]; ];
mesonFlags = [ mesonFlags = [
"-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=disabled"
]; ];
postPatch = '' postPatch = ''

View file

@ -2,7 +2,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gtest"; pname = "gtest";
version = "1.11.0"; version = "1.12.1";
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
owner = "google"; owner = "google";
repo = "googletest"; repo = "googletest";
rev = "release-${version}"; rev = "release-${version}";
hash = "sha256-SjlJxushfry13RGA7BCjYC9oZqV4z6x8dOiHfl/wpF0="; hash = "sha256-W+OxRTVtemt2esw4P7IyGWXOonUN5ZuscjvzqkYvZbM=";
}; };
patches = [ patches = [

View file

@ -1,30 +1,34 @@
diff --git a/googlemock/CMakeLists.txt b/googlemock/CMakeLists.txt
index 5c1f0daf..ed8aae58 100644
--- a/googlemock/CMakeLists.txt --- a/googlemock/CMakeLists.txt
+++ b/googlemock/CMakeLists.txt +++ b/googlemock/CMakeLists.txt
@@ -106,10 +106,10 @@ @@ -108,10 +108,10 @@ if (DEFINED CMAKE_VERSION AND NOT "${CMAKE_VERSION}" VERSION_LESS "2.8.11")
if (DEFINED CMAKE_VERSION AND NOT "${CMAKE_VERSION}" VERSION_LESS "2.8.11") string(REPLACE ";" "$<SEMICOLON>" dirs "${gmock_build_include_dirs}")
target_include_directories(gmock SYSTEM INTERFACE target_include_directories(gmock SYSTEM INTERFACE
"$<BUILD_INTERFACE:${gmock_build_include_dirs}>" "$<BUILD_INTERFACE:${dirs}>"
- "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>") - "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
+ "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>") + "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
target_include_directories(gmock_main SYSTEM INTERFACE target_include_directories(gmock_main SYSTEM INTERFACE
"$<BUILD_INTERFACE:${gmock_build_include_dirs}>" "$<BUILD_INTERFACE:${dirs}>"
- "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>") - "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
+ "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>") + "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
endif() endif()
######################################################################## ########################################################################
diff --git a/googletest/CMakeLists.txt b/googletest/CMakeLists.txt
index aa00a5f3..50434fed 100644
--- a/googletest/CMakeLists.txt --- a/googletest/CMakeLists.txt
+++ b/googletest/CMakeLists.txt +++ b/googletest/CMakeLists.txt
@@ -126,10 +126,10 @@ @@ -134,10 +134,10 @@ if (DEFINED CMAKE_VERSION AND NOT "${CMAKE_VERSION}" VERSION_LESS "2.8.11")
if (DEFINED CMAKE_VERSION AND NOT "${CMAKE_VERSION}" VERSION_LESS "2.8.11") string(REPLACE ";" "$<SEMICOLON>" dirs "${gtest_build_include_dirs}")
target_include_directories(gtest SYSTEM INTERFACE target_include_directories(gtest SYSTEM INTERFACE
"$<BUILD_INTERFACE:${gtest_build_include_dirs}>" "$<BUILD_INTERFACE:${dirs}>"
- "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>") - "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
+ "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>") + "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
target_include_directories(gtest_main SYSTEM INTERFACE target_include_directories(gtest_main SYSTEM INTERFACE
"$<BUILD_INTERFACE:${gtest_build_include_dirs}>" "$<BUILD_INTERFACE:${dirs}>"
- "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>") - "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
+ "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>") + "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
endif() endif()
target_link_libraries(gtest_main PUBLIC gtest) if(CMAKE_SYSTEM_NAME MATCHES "QNX")
target_link_libraries(gtest PUBLIC regex)

View file

@ -110,6 +110,7 @@ stdenv.mkDerivation rec {
]; ];
buildInputs = [ buildInputs = [
gobject-introspection
libxkbcommon libxkbcommon
(libepoxy.override { inherit x11Support; }) (libepoxy.override { inherit x11Support; })
isocodes isocodes
@ -158,7 +159,6 @@ stdenv.mkDerivation rec {
"-Dbroadway_backend=${lib.boolToString broadwaySupport}" "-Dbroadway_backend=${lib.boolToString broadwaySupport}"
"-Dx11_backend=${lib.boolToString x11Support}" "-Dx11_backend=${lib.boolToString x11Support}"
"-Dquartz_backend=${lib.boolToString (stdenv.isDarwin && !x11Support)}" "-Dquartz_backend=${lib.boolToString (stdenv.isDarwin && !x11Support)}"
"-Dintrospection=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
]; ];
doCheck = false; # needs X11 doCheck = false; # needs X11

View file

@ -34,7 +34,6 @@ let
inherit (lib) optional optionals optionalString; inherit (lib) optional optionals optionalString;
mesonFeatureFlag = opt: b: mesonFeatureFlag = opt: b:
"-D${opt}=${if b then "enabled" else "disabled"}"; "-D${opt}=${if b then "enabled" else "disabled"}";
isNativeCompilation = stdenv.buildPlatform == stdenv.hostPlatform;
in in
stdenv.mkDerivation { stdenv.mkDerivation {
@ -70,7 +69,10 @@ stdenv.mkDerivation {
(mesonFeatureFlag "coretext" withCoreText) (mesonFeatureFlag "coretext" withCoreText)
(mesonFeatureFlag "graphite" withGraphite2) (mesonFeatureFlag "graphite" withGraphite2)
(mesonFeatureFlag "icu" withIcu) (mesonFeatureFlag "icu" withIcu)
(mesonFeatureFlag "introspection" isNativeCompilation) ];
depsBuildBuild = [
pkg-config
]; ];
nativeBuildInputs = [ nativeBuildInputs = [
@ -85,9 +87,8 @@ stdenv.mkDerivation {
docbook_xml_dtd_43 docbook_xml_dtd_43
]; ];
buildInputs = [ glib freetype ] buildInputs = [ glib freetype gobject-introspection ]
++ lib.optionals withCoreText [ ApplicationServices CoreText ] ++ lib.optionals withCoreText [ ApplicationServices CoreText ];
++ lib.optionals isNativeCompilation [ gobject-introspection ];
propagatedBuildInputs = optional withGraphite2 graphite2 propagatedBuildInputs = optional withGraphite2 graphite2
++ optionals withIcu [ icu harfbuzz ]; ++ optionals withIcu [ icu harfbuzz ];

View file

@ -25,11 +25,11 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "imlib2"; pname = "imlib2";
version = "1.8.1"; version = "1.9.1";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/enlightenment/${pname}-${version}.tar.xz"; url = "mirror://sourceforge/enlightenment/${pname}-${version}.tar.xz";
hash = "sha256-Ui4ecOZbwO3f4gdhfRXJo5VmKnwJBmHaqiwpT7fZ/ao="; hash = "sha256-SiJAOL//vl1NJQxE4F9O5a4k3P74OVsWd8cVxY92TUM=";
}; };
buildInputs = [ buildInputs = [

View file

@ -6,10 +6,10 @@
, ninja , ninja
, pkg-config , pkg-config
, gettext , gettext
, withIntrospection ? stdenv.buildPlatform == stdenv.hostPlatform
, gobject-introspection , gobject-introspection
, fixDarwinDylibNames
, gi-docgen , gi-docgen
, libxslt
, fixDarwinDylibNames
, gnome , gnome
}: }:
@ -17,8 +17,7 @@ stdenv.mkDerivation rec {
pname = "json-glib"; pname = "json-glib";
version = "1.6.6"; version = "1.6.6";
outputs = [ "out" "dev" ] outputs = [ "out" "dev" "devdoc" ];
++ lib.optional withIntrospection "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";
@ -37,22 +36,28 @@ stdenv.mkDerivation rec {
pkg-config pkg-config
gettext gettext
glib glib
] ++ lib.optional stdenv.hostPlatform.isDarwin [ libxslt
fixDarwinDylibNames
] ++ lib.optionals withIntrospection [
gobject-introspection gobject-introspection
gi-docgen gi-docgen
] ++ lib.optional stdenv.hostPlatform.isDarwin [
fixDarwinDylibNames
]; ];
buildInputs = [ gobject-introspection ];
propagatedBuildInputs = [ propagatedBuildInputs = [
glib glib
]; ];
mesonFlags = lib.optionals (!withIntrospection) [
"-Dintrospection=disabled" # Run-time dependency gi-docgen found: NO (tried pkgconfig and cmake)
# gi-docgen relies on introspection data # it should be a build-time dep for build
"-Dgtk_doc=disabled" # TODO: send upstream
]; postPatch = ''
substituteInPlace doc/meson.build \
--replace "'gi-docgen', ver" "'gi-docgen', native:true, ver" \
--replace "'gi-docgen', req" "'gi-docgen', native:true, req"
'';
doCheck = true; doCheck = true;

View file

@ -10,6 +10,7 @@
, openssl , openssl
, libdrm , libdrm
, libevent , libevent
, libyaml
, lttng-ust , lttng-ust
, gst_all_1 , gst_all_1
, gtest , gtest
@ -22,12 +23,12 @@
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "libcamera"; pname = "libcamera";
version = "unstable-2022-01-03"; version = "unstable-2022-07-15";
src = fetchgit { src = fetchgit {
url = "https://git.libcamera.org/libcamera/libcamera.git"; url = "https://git.libcamera.org/libcamera/libcamera.git";
rev = "1db1e31e664c1f613dc964d8519fe75d67b154b6"; rev = "e9b6b362820338d0546563444e7b1767f5c7044c";
hash = "sha256-pXYPIU9xDWA870Gp1Jgizi5xnUHRvTqEq/ofFXdVZdg="; hash = "sha256-geqFcMBHcVe7dPdVOal8V2pVItYUdoC+5isISqRG4Wc=";
}; };
postPatch = '' postPatch = ''
@ -55,6 +56,9 @@ stdenv.mkDerivation {
# lttng tracing # lttng tracing
lttng-ust lttng-ust
# yamlparser
libyaml
gtest gtest
]; ];

View file

@ -7,6 +7,7 @@
, wayland , wayland
, wayland-protocols , wayland-protocols
, wayland-scanner , wayland-scanner
, egl-wayland
, cairo , cairo
, dbus , dbus
, pango , pango
@ -37,6 +38,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
wayland wayland
wayland-protocols wayland-protocols
egl-wayland
cairo cairo
dbus dbus
pango pango

View file

@ -1,9 +1,8 @@
{ lib, stdenv, fetchurl, findutils, fixDarwinDylibNames { lib, stdenv, fetchurl, findutils, fixDarwinDylibNames
, sslSupport? true, openssl , sslSupport ? true, openssl
, fetchpatch
}: }:
assert sslSupport -> openssl != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libevent"; pname = "libevent";
version = "2.1.12"; version = "2.1.12";
@ -13,6 +12,14 @@ stdenv.mkDerivation rec {
sha256 = "1fq30imk8zd26x8066di3kpc5zyfc5z6frr3zll685zcx4dxxrlj"; sha256 = "1fq30imk8zd26x8066di3kpc5zyfc5z6frr3zll685zcx4dxxrlj";
}; };
patches = [
# Don't define BIO_get_init() for LibreSSL 3.5+
(fetchpatch {
url = "https://github.com/libevent/libevent/commit/883630f76cbf512003b81de25cd96cb75c6cf0f9.patch";
sha256 = "sha256-VPJqJUAovw6V92jpqIXkIR1xYGbxIWxaHr8cePWI2SU=";
})
];
preConfigure = lib.optionalString (lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11") '' preConfigure = lib.optionalString (lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11") ''
MACOSX_DEPLOYMENT_TARGET=10.16 MACOSX_DEPLOYMENT_TARGET=10.16
''; '';
@ -27,14 +34,10 @@ stdenv.mkDerivation rec {
++ lib.optional sslSupport "openssl" ++ lib.optional sslSupport "openssl"
; ;
nativeBuildInputs = [] nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames
;
buildInputs = [] buildInputs = lib.optional sslSupport openssl
++ lib.optional sslSupport openssl ++ lib.optional stdenv.isCygwin findutils;
++ lib.optional stdenv.isCygwin findutils
;
doCheck = false; # needs the net doCheck = false; # needs the net

View file

@ -7,8 +7,8 @@
, glib , glib
, gnome , gnome
, vala , vala
, withIntrospection ? (stdenv.buildPlatform == stdenv.hostPlatform)
, gobject-introspection , gobject-introspection
, fetchpatch
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -22,6 +22,25 @@ stdenv.mkDerivation rec {
sha256 = "1al6nr492nzbm8ql02xhzwci2kwb1advnkaky3j9636jf08v41hd"; sha256 = "1al6nr492nzbm8ql02xhzwci2kwb1advnkaky3j9636jf08v41hd";
}; };
patches = [
# https://gitlab.gnome.org/GNOME/libgudev/-/merge_requests/27
(fetchpatch {
name = "gir-dep";
url = "https://gitlab.gnome.org/GNOME/libgudev/-/commit/6bdde16a0cfde462502fce1d9a7eb6ec33f388bb.diff";
sha256 = "sha256-bDtLUxOLEgyJURshqEQC4YCBTUVzQQP4qoWL786b3Z8=";
})
(fetchpatch {
name = "vapi-dep";
url = "https://gitlab.gnome.org/GNOME/libgudev/-/commit/d1f6457910842ba869c9871e7a2131fbe0d6b6be.diff";
sha256 = "sha256-/PY8ziZST/vQvksJm69a3O6/YesknIxCDvj0z40piik=";
})
(fetchpatch {
name = "gtk-doc-dep";
url = "https://gitlab.gnome.org/GNOME/libgudev/-/commit/34336cbadbcaac8b9b029f730eed0bdf4c633617.diff";
sha256 = "sha256-Bk05xe69LGqWH1uhLMZhwbVMSsCTyBrrOvqWic2TTd4=";
})
];
strictDeps = true; strictDeps = true;
depsBuildBuild = [ pkg-config ]; depsBuildBuild = [ pkg-config ];
@ -32,11 +51,11 @@ stdenv.mkDerivation rec {
ninja ninja
vala vala
glib # for glib-mkenums needed during the build glib # for glib-mkenums needed during the build
] ++ lib.optionals withIntrospection [
gobject-introspection gobject-introspection
]; ];
buildInputs = [ buildInputs = [
gobject-introspection
udev udev
glib glib
]; ];
@ -44,9 +63,6 @@ stdenv.mkDerivation rec {
mesonFlags = [ mesonFlags = [
# There's a dependency cycle with umockdev and the tests fail to LD_PRELOAD anyway # There's a dependency cycle with umockdev and the tests fail to LD_PRELOAD anyway
"-Dtests=disabled" "-Dtests=disabled"
"-Dintrospection=${if withIntrospection then "enabled" else "disabled"}"
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
"-Dvapi=disabled"
]; ];
passthru = { passthru = {

View file

@ -13,7 +13,6 @@
, python3 , python3
, tzdata , tzdata
, fixDarwinDylibNames , fixDarwinDylibNames
, withIntrospection ? stdenv.buildPlatform == stdenv.hostPlatform
, gobject-introspection , gobject-introspection
, vala , vala
}: }:
@ -37,6 +36,8 @@ stdenv.mkDerivation rec {
ninja ninja
perl perl
pkg-config pkg-config
gobject-introspection
vala
# Docs building fails: # Docs building fails:
# https://github.com/NixOS/nixpkgs/pull/67204 # https://github.com/NixOS/nixpkgs/pull/67204
# previously with https://github.com/NixOS/nixpkgs/pull/61657#issuecomment-495579489 # previously with https://github.com/NixOS/nixpkgs/pull/61657#issuecomment-495579489
@ -44,15 +45,12 @@ 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 withIntrospection [
gobject-introspection
vala
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
fixDarwinDylibNames fixDarwinDylibNames
]; ];
installCheckInputs = [ installCheckInputs = [
# running libical-glib tests # running libical-glib tests
(python3.withPackages (pkgs: with pkgs; [ (python3.pythonForBuild.withPackages (pkgs: with pkgs; [
pygobject3 pygobject3
])) ]))
]; ];
@ -61,14 +59,13 @@ stdenv.mkDerivation rec {
glib glib
libxml2 libxml2
icu icu
] ++ lib.optionals withIntrospection [
gobject-introspection gobject-introspection
]; ];
cmakeFlags = [ cmakeFlags = [
"-DENABLE_GTK_DOC=False" "-DENABLE_GTK_DOC=False"
"-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"
]; ];

View file

@ -2,6 +2,7 @@
, fetchurl , fetchurl
, ninja , ninja
, meson , meson
, mesonEmulatorHook
, pkg-config , pkg-config
, vala , vala
, gobject-introspection , gobject-introspection
@ -34,9 +35,12 @@ stdenv.mkDerivation rec {
gtk-doc gtk-doc
docbook-xsl-nons docbook-xsl-nons
docbook_xml_dtd_43 docbook_xml_dtd_43
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
]; ];
buildInputs = [ buildInputs = [
gobject-introspection
glib glib
libgudev libgudev
libevdev libevdev

View file

@ -14,13 +14,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libnotify"; pname = "libnotify";
version = "0.7.12"; version = "0.8.1";
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 = "dEsrN1CBNfgmG3Vanevm4JrdQhrcdb3pMPbhmLcKtG4="; sha256 = "0DPm1NbMv0akNsMWKKS2YbNtyh9dQXT+AXPidPTmJVc=";
}; };
mesonFlags = [ mesonFlags = [

View file

@ -1,26 +1,45 @@
{ lib, stdenv, fetchurl, libxml2, libxslt }: { lib
, stdenv
, libxml2
, libxslt
, pkg-config
, cmake
, fetchFromGitHub
, perl
, bison
, flex
, fetchpatch
, static ? stdenv.hostPlatform.isStatic
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "raptor2"; pname = "raptor2";
version = "2.0.15"; version = "unstable-2022-06-06";
src = fetchurl { src = fetchFromGitHub {
url = "http://download.librdf.org/source/${pname}-${version}.tar.gz"; owner = "dajobe";
sha256 = "ada7f0ba54787b33485d090d3d2680533520cd4426d2f7fb4782dd4a6a1480ed"; repo = "raptor";
rev = "3cca62a33da68143b687c9e486eefc7c7cbb4586";
sha256 = "sha256-h03IyFH1GHPqajfHBBTb19lCEu+VXzQLGC1wiEGVvgY=";
}; };
cmakeFlags = [
# Build defaults to static libraries.
"-DBUILD_SHARED_LIBS=${if static then "OFF" else "ON"}"
];
patches = [ patches = [
(fetchurl { # https://github.com/dajobe/raptor/pull/52
name = "CVE-2017-18926.patch"; (fetchpatch {
url = "https://github.com/dajobe/raptor/commit/590681e546cd9aa18d57dc2ea1858cb734a3863f.patch"; name = "fix-cmake-generated-pc-file";
sha256 = "1qlpb5rm3j2yi0x6zgdi5apymg5zlvwq3g1zl417gkjrlvxmndgp"; url = "https://github.com/dajobe/raptor/commit/fa1ef9a27d8762f5588ac2e92554a188e73dee9f.diff";
sha256 = "sha256-zXIbrYGgC9oTpiD0WUikT4vRdc9b6bsyfnDkwUSlqao=";
}) })
]; ];
nativeBuildInputs = [ pkg-config cmake perl bison flex ];
buildInputs = [ libxml2 libxslt ]; buildInputs = [ libxml2 libxslt ];
postInstall = "rm -rvf $out/share/gtk-doc";
meta = { meta = {
description = "The RDF Parser Toolkit"; description = "The RDF Parser Toolkit";
homepage = "https://librdf.org/raptor"; homepage = "https://librdf.org/raptor";

View file

@ -31,6 +31,10 @@ stdenv.mkDerivation rec {
sha256 = "P7PONA/NfbVNh8iT5pv8Kx9uTUsnkGX/5m2snw/RK00="; sha256 = "P7PONA/NfbVNh8iT5pv8Kx9uTUsnkGX/5m2snw/RK00=";
}; };
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [ nativeBuildInputs = [
meson meson
ninja ninja
@ -48,6 +52,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
libgcrypt libgcrypt
gobject-introspection
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -8,16 +8,13 @@
, pkg-config , pkg-config
, gnome , gnome
, libsysprof-capture , libsysprof-capture
, gobject-introspection
, vala
, libpsl
, brotli
, gnomeSupport ? true , gnomeSupport ? true
, sqlite , sqlite
, glib-networking , glib-networking
, gobject-introspection
, withIntrospection ? stdenv.buildPlatform == stdenv.hostPlatform
, vala
, withVala ? stdenv.buildPlatform == stdenv.hostPlatform
, libpsl
, python3
, brotli
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -31,19 +28,21 @@ stdenv.mkDerivation rec {
sha256 = "sha256-8KQnZW5f4Z4d9xwQfojfobLmc8JcVHt4I7YBi0DQEVk="; sha256 = "sha256-8KQnZW5f4Z4d9xwQfojfobLmc8JcVHt4I7YBi0DQEVk=";
}; };
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [ nativeBuildInputs = [
meson meson
ninja ninja
pkg-config pkg-config
glib glib
] ++ lib.optionals withIntrospection [
gobject-introspection gobject-introspection
] ++ lib.optionals withVala [
vala vala
]; ];
buildInputs = [ buildInputs = [
python3 gobject-introspection
sqlite sqlite
libpsl libpsl
glib.out glib.out
@ -60,8 +59,6 @@ stdenv.mkDerivation rec {
mesonFlags = [ mesonFlags = [
"-Dtls_check=false" # glib-networking is a runtime dependency, not a compile-time dependency "-Dtls_check=false" # glib-networking is a runtime dependency, not a compile-time dependency
"-Dgssapi=disabled" "-Dgssapi=disabled"
"-Dvapi=${if withVala then "enabled" else "disabled"}"
"-Dintrospection=${if withIntrospection then "enabled" else "disabled"}"
"-Dgnome=${lib.boolToString gnomeSupport}" "-Dgnome=${lib.boolToString gnomeSupport}"
"-Dntlm=disabled" "-Dntlm=disabled"
] ++ lib.optionals (!stdenv.isLinux) [ ] ++ lib.optionals (!stdenv.isLinux) [
@ -73,6 +70,12 @@ stdenv.mkDerivation rec {
doCheck = false; # ERROR:../tests/socket-test.c:37:do_unconnected_socket_test: assertion failed (res == SOUP_STATUS_OK): (2 == 200) doCheck = false; # ERROR:../tests/socket-test.c:37:do_unconnected_socket_test: assertion failed (res == SOUP_STATUS_OK): (2 == 200)
postPatch = '' postPatch = ''
# fixes finding vapigen when cross-compiling
# the commit is in 3.0.6
# https://gitlab.gnome.org/GNOME/libsoup/-/commit/5280e936d0a76f94dbc5d8489cfbdc0a06343f65
substituteInPlace meson.build \
--replace "required: vapi_opt)" "required: vapi_opt, native: false)"
patchShebangs libsoup/ patchShebangs libsoup/
''; '';

View file

@ -11,6 +11,12 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" "devdoc" ]; outputs = [ "out" "dev" "devdoc" ];
patches = [
# https://github.com/libssh2/libssh2/pull/700
# openssl: add support for LibreSSL 3.5.x
./openssl_add_support_for_libressl_3_5.patch
];
buildInputs = [ openssl zlib ] buildInputs = [ openssl zlib ]
++ lib.optional stdenv.hostPlatform.isMinGW windows.mingw_w64; ++ lib.optional stdenv.hostPlatform.isMinGW windows.mingw_w64;

View file

@ -0,0 +1,26 @@
From f0681a4573d7c7f7484d3157ddff7063a200295b Mon Sep 17 00:00:00 2001
From: Viktor Szakats <commit@vsz.me>
Date: Thu, 19 May 2022 13:25:06 +0000
Subject: [PATCH] openssl: add support for LibreSSL 3.5.x
LibreSSL 3.5.0 made more structures opaque, so let's enable existing
support for that when building against these LibreSSL versions.
Ref: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.5.0-relnotes.txt
---
src/openssl.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/openssl.h b/src/openssl.h
index 658b040..1733b9e 100644
--- a/src/openssl.h
+++ b/src/openssl.h
@@ -58,7 +58,8 @@
#include <openssl/rand.h>
#if OPENSSL_VERSION_NUMBER >= 0x10100000L && \
- !defined(LIBRESSL_VERSION_NUMBER)
+ !defined(LIBRESSL_VERSION_NUMBER) || \
+ LIBRESSL_VERSION_NUMBER >= 0x3050000fL
# define HAVE_OPAQUE_STRUCTS 1
#endif

View file

@ -1,14 +1,14 @@
{ stdenv, lib, fetchFromGitHub, autoconf, automake, libtool, pkg-config, ApplicationServices, CoreServices }: { stdenv, lib, fetchFromGitHub, autoconf, automake, libtool, pkg-config, ApplicationServices, CoreServices }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "1.44.1"; version = "1.44.2";
pname = "libuv"; pname = "libuv";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = pname; owner = pname;
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-12uveSEavRxQW4xVrB4Rkkj+eHZ71Qy8dRG+95ldz50="; sha256 = "sha256-K6v+00basjI32ON27ZjC5spQi/zWCcslDwQwyosq2iY=";
}; };
postPatch = let postPatch = let

View file

@ -35,7 +35,7 @@ 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
# 22.1 on darwin won't build: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6519 # 22.1 on darwin won't build: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6519
version = if stdenv.isDarwin then "22.0.4" else "22.1.3"; version = if stdenv.isDarwin then "22.0.4" else "22.1.4";
branch = versions.major version; branch = versions.major version;
self = stdenv.mkDerivation { self = stdenv.mkDerivation {
@ -50,7 +50,7 @@ self = stdenv.mkDerivation {
"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 = { sha256 = {
"22.1.3" = "1qwky31vdqh3y6i0mxqnrbq7jc39kjcyndpv4mbzz8d2gax353xr"; "22.1.4" = "0xhbcjqy3g5dfxhr4flmqncmsjnwljfqm9idx92jm43jifz8q3b7";
"22.0.4" = "1m0y8wgy48hmcidsr7sbk5hcw3v0qr8359fd2x34fvl2z9c1z5y7"; "22.0.4" = "1m0y8wgy48hmcidsr7sbk5hcw3v0qr8359fd2x34fvl2z9c1z5y7";
}.${version}; }.${version};
}; };

View file

@ -35,6 +35,10 @@ stdenv.mkDerivation rec {
(lib.withFeature sslSupport "ssl") (lib.withFeature sslSupport "ssl")
]; ];
preConfigure = ''
export PKG_CONFIG="$(command -v "$PKG_CONFIG")"
'';
passthru = {inherit compressionSupport sslSupport;}; passthru = {inherit compressionSupport sslSupport;};
meta = with lib; { meta = with lib; {

View file

@ -13,6 +13,7 @@
, protobuf , protobuf
, config , config
, ocl-icd , ocl-icd
, buildPackages
, enableJPEG ? true , enableJPEG ? true
, libjpeg , libjpeg
@ -291,11 +292,15 @@ stdenv.mkDerivation {
"-DOPENCV_GENERATE_PKGCONFIG=ON" "-DOPENCV_GENERATE_PKGCONFIG=ON"
"-DWITH_OPENMP=ON" "-DWITH_OPENMP=ON"
"-DBUILD_PROTOBUF=OFF" "-DBUILD_PROTOBUF=OFF"
"-DProtobuf_PROTOC_EXECUTABLE=${lib.getExe buildPackages.protobuf}"
"-DPROTOBUF_UPDATE_FILES=ON" "-DPROTOBUF_UPDATE_FILES=ON"
"-DOPENCV_ENABLE_NONFREE=${printEnabled enableUnfree}" "-DOPENCV_ENABLE_NONFREE=${printEnabled enableUnfree}"
"-DBUILD_TESTS=OFF" "-DBUILD_TESTS=OFF"
"-DBUILD_PERF_TESTS=OFF" "-DBUILD_PERF_TESTS=OFF"
"-DBUILD_DOCS=${printEnabled enableDocs}" "-DBUILD_DOCS=${printEnabled enableDocs}"
# "OpenCV disables pkg-config to avoid using of host libraries. Consider using PKG_CONFIG_LIBDIR to specify target SYSROOT"
# but we have proper separation of build and host libs :), fixes cross
"-DOPENCV_ENABLE_PKG_CONFIG=ON"
(opencvFlag "IPP" enableIpp) (opencvFlag "IPP" enableIpp)
(opencvFlag "TIFF" enableTIFF) (opencvFlag "TIFF" enableTIFF)
(opencvFlag "WEBP" enableWebP) (opencvFlag "WEBP" enableWebP)

View file

@ -16,26 +16,21 @@
, ninja , ninja
, glib , glib
, python3 , python3
, x11Support? !stdenv.isDarwin, libXft
, withIntrospection ? (stdenv.buildPlatform == stdenv.hostPlatform)
, gobject-introspection , gobject-introspection
, withDocs ? (stdenv.buildPlatform == stdenv.hostPlatform) , x11Support? !stdenv.isDarwin, libXft
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "pango"; pname = "pango";
version = "1.50.7"; version = "1.50.8";
outputs = [ "bin" "out" "dev" ] outputs = [ "bin" "out" "dev" "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 = "BHfzaaPUxpXfcpmmmJ3ABHVqf03ifuysQFxnkLfjrTM="; sha256 = "z2JvWd0UbAIxdMQDSSDpZn8dJawsFWlRbWMTbDESVfo=";
}; };
strictDeps = !withIntrospection;
depsBuildBuild = [ depsBuildBuild = [
pkg-config pkg-config
]; ];
@ -44,9 +39,7 @@ stdenv.mkDerivation rec {
meson ninja meson ninja
glib # for glib-mkenum glib # for glib-mkenum
pkg-config pkg-config
] ++ lib.optionals withIntrospection [
gobject-introspection gobject-introspection
] ++ lib.optionals withDocs [
gi-docgen gi-docgen
python3 python3
]; ];
@ -54,6 +47,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
fribidi fribidi
libthai libthai
gobject-introspection
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
ApplicationServices ApplicationServices
Carbon Carbon
@ -71,8 +65,7 @@ stdenv.mkDerivation rec {
]; ];
mesonFlags = [ mesonFlags = [
"-Dgtk_doc=${lib.boolToString withDocs}" "-Dgtk_doc=true"
"-Dintrospection=${if withIntrospection then "enabled" else "disabled"}"
] ++ lib.optionals (!x11Support) [ ] ++ lib.optionals (!x11Support) [
"-Dxft=disabled" # only works with x11 "-Dxft=disabled" # only works with x11
]; ];
@ -82,9 +75,20 @@ stdenv.mkDerivation rec {
fontDirectories = [ freefont_ttf ]; fontDirectories = [ freefont_ttf ];
}; };
# Run-time dependency gi-docgen found: NO (tried pkgconfig and cmake)
# it should be a build-time dep for build
# TODO: send upstream
postPatch = ''
substituteInPlace meson.build \
--replace "dependency('gi-docgen', ver" "dependency('gi-docgen', native:true, ver"
substituteInPlace docs/meson.build \
--replace "'gi-docgen', req" "'gi-docgen', native:true, req"
'';
doCheck = false; # test-font: FAIL doCheck = false; # test-font: FAIL
postFixup = lib.optionalString withDocs '' postFixup = ''
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back. # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
moveToOutput "share/doc" "$devdoc" moveToOutput "share/doc" "$devdoc"
''; '';

View file

@ -69,7 +69,7 @@ let
self = stdenv.mkDerivation rec { self = stdenv.mkDerivation rec {
pname = "pipewire"; pname = "pipewire";
version = "0.3.54"; version = "0.3.56";
outputs = [ outputs = [
"out" "out"
@ -87,7 +87,7 @@ let
owner = "pipewire"; owner = "pipewire";
repo = "pipewire"; repo = "pipewire";
rev = version; rev = version;
sha256 = "sha256-EFkx/K5v4f7clFguiU1xFt9VacSHeVksRye73rOjPPI="; sha256 = "sha256-wbHHr7BW8Gdj9D1IjzOuD6VuXApJ5E0Zde2iKWImzxg=";
}; };
patches = [ patches = [
@ -150,6 +150,7 @@ let
"-Dinstalled_test_prefix=${placeholder "installedTests"}" "-Dinstalled_test_prefix=${placeholder "installedTests"}"
"-Dpipewire_pulse_prefix=${placeholder "pulse"}" "-Dpipewire_pulse_prefix=${placeholder "pulse"}"
"-Dlibjack-path=${placeholder "jack"}/lib" "-Dlibjack-path=${placeholder "jack"}/lib"
"-Dlibv4l2-path=${placeholder "out"}/lib"
"-Dlibcamera=${mesonEnableFeature libcameraSupport}" "-Dlibcamera=${mesonEnableFeature libcameraSupport}"
"-Droc=${mesonEnableFeature rocSupport}" "-Droc=${mesonEnableFeature rocSupport}"
"-Dlibpulse=${mesonEnableFeature pulseTunnelSupport}" "-Dlibpulse=${mesonEnableFeature pulseTunnelSupport}"

View file

@ -17,6 +17,11 @@ stdenv.mkDerivation rec {
configureFlags = lib.optional stdenv.isAarch32 "--disable-arm-iwmmxt"; configureFlags = lib.optional stdenv.isAarch32 "--disable-arm-iwmmxt";
preConfigure = ''
# https://gitlab.freedesktop.org/pixman/pixman/-/issues/62
export OMP_NUM_THREADS=$((NIX_BUILD_CORES > 184 ? 184 : NIX_BUILD_CORES))
'';
doCheck = true; doCheck = true;
postInstall = glib.flattenInclude; postInstall = glib.flattenInclude;

View file

@ -6,13 +6,14 @@
, expat , expat
, pam , pam
, meson , meson
, mesonEmulatorHook
, ninja , ninja
, perl , perl
, rsync , rsync
, python3 , python3
, fetchpatch , fetchpatch
, gettext , gettext
, spidermonkey_78 , duktape
, gobject-introspection , gobject-introspection
, libxslt , libxslt
, docbook-xsl-nons , docbook-xsl-nons
@ -23,10 +24,6 @@
, useSystemd ? stdenv.isLinux , useSystemd ? stdenv.isLinux
, systemd , systemd
, elogind , elogind
# needed until gobject-introspection does cross-compile (https://github.com/NixOS/nixpkgs/pull/88222)
, withIntrospection ? (stdenv.buildPlatform == stdenv.hostPlatform)
# cross build fails on polkit-1-scan (https://github.com/NixOS/nixpkgs/pull/152704)
, withGtkDoc ? (stdenv.buildPlatform == stdenv.hostPlatform)
# A few tests currently fail on musl (polkitunixusertest, polkitunixgrouptest, polkitidentitytest segfault). # A few tests currently fail on musl (polkitunixusertest, polkitunixgrouptest, polkitidentitytest segfault).
# Not yet investigated; it may be due to the "Make netgroup support optional" # Not yet investigated; it may be due to the "Make netgroup support optional"
# patch not updating the tests correctly yet, or doing something wrong, # patch not updating the tests correctly yet, or doing something wrong,
@ -40,7 +37,7 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "polkit"; pname = "polkit";
version = "0.120"; version = "121";
outputs = [ "bin" "dev" "out" ]; # small man pages in $bin outputs = [ "bin" "dev" "out" ]; # small man pages in $bin
@ -50,7 +47,7 @@ stdenv.mkDerivation rec {
owner = "polkit"; owner = "polkit";
repo = "polkit"; repo = "polkit";
rev = version; rev = version;
sha256 = "oEaRf1g13zKMD+cP1iwIA6jaCDwvNfGy2i8xY8vuVSo="; sha256 = "Lj7KSGILc6CBsNqPO0G0PNt6ClikbRG45E8FZbb46yY=";
}; };
patches = [ patches = [
@ -60,23 +57,6 @@ stdenv.mkDerivation rec {
url = "https://gitlab.freedesktop.org/polkit/polkit/-/commit/7ba07551dfcd4ef9a87b8f0d9eb8b91fabcb41b3.patch"; url = "https://gitlab.freedesktop.org/polkit/polkit/-/commit/7ba07551dfcd4ef9a87b8f0d9eb8b91fabcb41b3.patch";
sha256 = "ebbLILncq1hAZTBMsLm+vDGw6j0iQ0crGyhzyLZQgKA="; sha256 = "ebbLILncq1hAZTBMsLm+vDGw6j0iQ0crGyhzyLZQgKA=";
}) })
# pkexec: local privilege escalation (CVE-2021-4034)
(fetchpatch {
url = "https://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683.patch";
sha256 = "162jkpg2myq0rb0s5k3nfr4pqwv9im13jf6vzj8p5l39nazg5i4s";
})
# File descriptor leak allows an unprivileged user to cause a crash (CVE-2021-4115)
(fetchpatch {
name = "CVE-2021-4115.patch";
url = "https://src.fedoraproject.org/rpms/polkit/raw/0a203bd46a1e2ec8cc4b3626840e2ea9d0d13a9a/f/CVE-2021-4115.patch";
sha256 = "sha256-BivHVVpYB4Ies1YbBDyKwUmNlqq2D1MpMipH9/dZM54=";
})
# Fix build with meson 0.61
# https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/99
(fetchpatch {
url = "https://gitlab.freedesktop.org/polkit/polkit/-/commit/a96c5119f726225f8d79b222c85d71a9f0e32419.patch";
sha256 = "sha256-/hm/m22dKA50sDmw4L1VAlgvCm8CuIyNjHxF/2YgMKo=";
})
] ++ lib.optionals stdenv.hostPlatform.isMusl [ ] ++ lib.optionals stdenv.hostPlatform.isMusl [
# Make netgroup support optional (musl does not have it) # Make netgroup support optional (musl does not have it)
# Upstream MR: https://gitlab.freedesktop.org/polkit/polkit/merge_requests/10 # Upstream MR: https://gitlab.freedesktop.org/polkit/polkit/merge_requests/10
@ -88,6 +68,10 @@ stdenv.mkDerivation rec {
}) })
]; ];
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [ nativeBuildInputs = [
glib glib
gtk-doc gtk-doc
@ -97,7 +81,8 @@ stdenv.mkDerivation rec {
ninja ninja
perl perl
rsync rsync
(python3.withPackages (pp: with pp; [ gobject-introspection
(python3.pythonForBuild.withPackages (pp: with pp; [
dbus-python dbus-python
(python-dbusmock.overridePythonAttrs (attrs: { (python-dbusmock.overridePythonAttrs (attrs: {
# Avoid dependency cycle. # Avoid dependency cycle.
@ -109,17 +94,19 @@ stdenv.mkDerivation rec {
libxslt libxslt
docbook-xsl-nons docbook-xsl-nons
docbook_xml_dtd_412 docbook_xml_dtd_412
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
]; ];
buildInputs = [ buildInputs = [
gobject-introspection
expat expat
pam pam
spidermonkey_78 dbus
duktape
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.isLinux [
# On Linux, fall back to elogind when systemd support is off. # On Linux, fall back to elogind when systemd support is off.
(if useSystemd then systemd else elogind) (if useSystemd then systemd else elogind)
] ++ lib.optionals withIntrospection [
gobject-introspection
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -136,9 +123,7 @@ stdenv.mkDerivation rec {
"-Dsystemdsystemunitdir=${placeholder "out"}/etc/systemd/system" "-Dsystemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
"-Dpolkitd_user=polkituser" #TODO? <nixos> config.ids.uids.polkituser "-Dpolkitd_user=polkituser" #TODO? <nixos> config.ids.uids.polkituser
"-Dos_type=redhat" # only affects PAM includes "-Dos_type=redhat" # only affects PAM includes
"-Dintrospection=${lib.boolToString withIntrospection}"
"-Dtests=${lib.boolToString doCheck}" "-Dtests=${lib.boolToString doCheck}"
"-Dgtk_doc=${lib.boolToString withGtkDoc}"
"-Dman=true" "-Dman=true"
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.isLinux [
"-Dsession_tracking=${if useSystemd then "libsystemd-login" else "libelogind"}" "-Dsession_tracking=${if useSystemd then "libsystemd-login" else "libelogind"}"

View file

@ -17,13 +17,13 @@ in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "sqlite${optionalString interactive "-interactive"}"; pname = "sqlite${optionalString interactive "-interactive"}";
version = "3.39.0"; version = "3.39.1";
# 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-6QvK723VgT/N7k6Gf2tl88m/0K7A8QF/nzu84eTtCeI="; sha256 = "sha256-h8jnp/oMaKso4gi6SfOiKlYADb9TpvkCBuK8WEOTHMQ=";
}; };
outputs = [ "bin" "dev" "out" ]; outputs = [ "bin" "dev" "out" ];

View file

@ -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.39.0"; version = "3.39.1";
# 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-s1hfN90Qbbs9RsjBei0nX5pLh9+MRQm9LWpbQAMkJuY="; sha256 = "sha256-Nmx6u+5dvoiCzXV4phpu0/XQjF9t41NaAAMSW0ZGzFc=";
}; };
nativeBuildInputs = [ unzip ]; nativeBuildInputs = [ unzip ];

View file

@ -66,6 +66,11 @@ stdenv.mkDerivation rec {
url = "https://github.com/apache/thrift/commit/54765854873e19b8ba50a0ec8080dd92d8323851.diff"; url = "https://github.com/apache/thrift/commit/54765854873e19b8ba50a0ec8080dd92d8323851.diff";
sha256 = "wnG2MjY0DtAhVcEdcxu77tDa4T9Xm2pMYZU2wXLx2OA="; sha256 = "wnG2MjY0DtAhVcEdcxu77tDa4T9Xm2pMYZU2wXLx2OA=";
}) })
(fetchpatch {
name = "setuptools-gte-62.1.0.patch";
url = "https://github.com/apache/thrift/pull/2635/commits/c41ad9d5119e9bdae1746167e77e224f390f2c42.patch";
hash = "sha256-FkErrg/6vXTomS4AsCsld7t+Iccc55ZiDaNjJ3W1km0=";
})
]; ];
cmakeFlags = [ cmakeFlags = [

View file

@ -25,27 +25,28 @@
, json-glib , json-glib
, systemd , systemd
, dbus , dbus
, writeText
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "tracker"; pname = "tracker";
version = "3.3.1"; version = "3.3.2";
outputs = [ "out" "dev" "devdoc" ]; outputs = [ "out" "dev" "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 = "Wtb1vJd4Hr9V7NaUfNSuf/QZJRZYDRC9g4Dx3UcZbtI="; sha256 = "DtK5iRiVbW8WQpxgfdihTIT02gpIlw/S64yTq6PPmRM=";
}; };
patches = [
./fix-test-order.patch
];
postPatch = '' postPatch = ''
patchShebangs utils/data-generators/cc/generate patchShebangs utils/data-generators/cc/generate
''; '';
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [ nativeBuildInputs = [
meson meson
ninja ninja
@ -58,13 +59,11 @@ stdenv.mkDerivation rec {
gobject-introspection gobject-introspection
docbook-xsl-nons docbook-xsl-nons
docbook_xml_dtd_45 docbook_xml_dtd_45
python3 # for data-generators (python3.pythonForBuild.withPackages (p: [ p.pygobject3 ]))
systemd # used for checks to install systemd user service ];
dbus # used for checks and pkg-config to install dbus service/s
] ++ checkInputs; # gi is in the main meson.build and checked regardless of
# whether tests are enabled
buildInputs = [ buildInputs = [
gobject-introspection
glib glib
libxml2 libxml2
sqlite sqlite
@ -74,15 +73,24 @@ stdenv.mkDerivation rec {
libuuid libuuid
json-glib json-glib
libstemmer libstemmer
]; dbus
systemd
checkInputs = with python3.pkgs; [
pygobject3
]; ];
mesonFlags = [ mesonFlags = [
"-Ddocs=true" "-Ddocs=true"
]; ] ++ (
let
# https://gitlab.gnome.org/GNOME/tracker/-/blob/master/meson.build#L159
crossFile = writeText "cross-file.conf" ''
[properties]
sqlite3_has_fts5 = '${lib.boolToString (lib.hasInfix "-DSQLITE_ENABLE_FTS3" sqlite.NIX_CFLAGS_COMPILE)}'
'';
in
[
"--cross-file=${crossFile}"
]
);
doCheck = true; doCheck = true;

View file

@ -1,9 +0,0 @@
diff --git a/tests/libtracker-data/algebra/filter-scope-1.rq b/tests/libtracker-data/algebra/filter-scope-1.rq
index 7ee5a24ad..a8cd89ca9 100644
--- a/tests/libtracker-data/algebra/filter-scope-1.rq
+++ b/tests/libtracker-data/algebra/filter-scope-1.rq
@@ -7,3 +7,4 @@ SELECT ?v ?w ?v2
OPTIONAL { :x :p ?v2 FILTER(?v = 1) }
}
}
+ORDER BY ?v ?w ?v2

View file

@ -8,6 +8,7 @@
, libgudev , libgudev
, libpcap , libpcap
, meson , meson
, mesonEmulatorHook
, ninja , ninja
, pkg-config , pkg-config
, python3 , python3
@ -19,13 +20,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "umockdev"; pname = "umockdev";
version = "0.17.9"; version = "0.17.13";
outputs = [ "bin" "out" "dev" "devdoc" ]; outputs = [ "bin" "out" "dev" "devdoc" ];
src = fetchurl { src = fetchurl {
url = "https://github.com/martinpitt/umockdev/releases/download/${version}/${pname}-${version}.tar.xz"; url = "https://github.com/martinpitt/umockdev/releases/download/${version}/${pname}-${version}.tar.xz";
sha256 = "sha256-FEmWjJVmKKckC30zULGI/mZ3VNtirnweZq2gKh/Y5VE="; sha256 = "sha256-bG6/bmIJtqSXRuDZGkSNAntUJxurgu1woTLs8pTKE88=";
}; };
patches = [ patches = [
@ -42,9 +43,12 @@ stdenv.mkDerivation rec {
ninja ninja
pkg-config pkg-config
vala vala
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
]; ];
buildInputs = [ buildInputs = [
gobject-introspection
glib glib
systemd systemd
libgudev libgudev

View file

@ -54,6 +54,9 @@ in stdenv.mkDerivation rec {
# these tests require network access so we need to skip them. # these tests require network access so we need to skip them.
brokenTests = map escapeRegex [ brokenTests = map escapeRegex [
"Ice/udp" "Glacier2" "IceGrid/simple" "IceStorm" "IceDiscovery/simple" "Ice/udp" "Glacier2" "IceGrid/simple" "IceStorm" "IceDiscovery/simple"
# FIXME: certificate expired, remove for next release?
"IceSSL/configuration"
]; ];
# matches CONFIGS flag in makeFlagsArray # matches CONFIGS flag in makeFlagsArray
configFlag = optionalString cpp11 "--config=cpp11-shared"; configFlag = optionalString cpp11 "--config=cpp11-shared";

View file

@ -9,12 +9,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "JPype1"; pname = "JPype1";
version = "1.3.0"; version = "1.4.0";
disabled = isPy27; disabled = isPy27;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "4fc27dba89750cb0c9d692466341ce60c0fe86a16051091cb5347a37cf884151"; sha256 = "sha256-DF9mXuPm4xwn6dLUjdEr9OtP5oWII+ahEgGgNSdMz+E=";
}; };
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [

View file

@ -17,13 +17,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "Mako"; pname = "Mako";
version = "1.2.0"; version = "1.2.1";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-mnx+kiuH2zaGIQz0nV12cDOkHUAQsoTnR2gskr3dizk="; sha256 = "sha256-8FSl/0dDSS8aqezEcXLLM7QrnZk8/8wUbJ3hfnF7Awc=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -8,11 +8,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "absl-py"; pname = "absl-py";
version = "1.0.0"; version = "1.1.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "ac511215c01ee9ae47b19716599e8ccfa746f2e18de72bdf641b79b22afa27ea"; sha256 = "sha256-OqOfiYMpwhVv9SXfppznCeQtd6qxi/SRdxnW8mCqagg=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -12,13 +12,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "acoustics"; pname = "acoustics";
version = "0.2.4.post0"; version = "0.2.6";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "a162625e5e70ed830fab8fab0ddcfe35333cb390cd24b0a827bcefc5bbcae97d"; sha256 = "sha256-0CvMhCUc+i7dPiHH+IXdlj+OjFh/l1wvnU4dmxQrzFI=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -5,7 +5,7 @@
, agate , agate
, sqlalchemy , sqlalchemy
, crate , crate
, nose , pytestCheckHook
, geojson , geojson
}: }:
@ -22,15 +22,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ agate sqlalchemy ]; propagatedBuildInputs = [ agate sqlalchemy ];
# crate is broken in nixpkgs, with SQLAlchemy > 1.3 checkInputs = [ crate geojson pytestCheckHook ];
# Skip tests for now as they rely on it.
doCheck = false;
checkInputs = [ crate nose geojson ];
checkPhase = ''
nosetests
'';
pythonImportsCheck = [ "agatesql" ]; pythonImportsCheck = [ "agatesql" ];

View file

@ -33,6 +33,10 @@ buildPythonPackage rec {
trustme trustme
]; ];
pytestFlagsArray = [
"--asyncio-mode=legacy"
];
disabledTests = lib.optionals stdenv.isDarwin [ disabledTests = lib.optionals stdenv.isDarwin [
# uses 127.0.0.2, which macos doesn't like # uses 127.0.0.2, which macos doesn't like
"test_pasv_connection_pasv_forced_response_address" "test_pasv_connection_pasv_forced_response_address"

View file

@ -1,5 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, aiocoap
, bleak
, chacha20poly1305-reuseable , chacha20poly1305-reuseable
, commentjson , commentjson
, cryptography , cryptography
@ -13,16 +15,16 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiohomekit"; pname = "aiohomekit";
version = "0.7.20"; version = "1.1.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Jc2k"; owner = "Jc2k";
repo = pname; repo = pname;
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
sha256 = "sha256-g7N+CIBJCMnW4FjN502SahhSpPS1p7AXZvduteHu+Z4="; sha256 = "sha256-tHCkWNWcEsxoznaB8nysEMSx8g6cceNFP+gVB2jqG9g=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -30,6 +32,8 @@ buildPythonPackage rec {
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiocoap
bleak
chacha20poly1305-reuseable chacha20poly1305-reuseable
commentjson commentjson
cryptography cryptography

View file

@ -41,6 +41,10 @@ buildPythonPackage rec {
time-machine time-machine
]; ];
pytestFlagsArray = [
"--asyncio-mode=legacy"
];
disabledTests = [ disabledTests = [
# AssertionError: Expected <14:00> to be equal to <17:00>, but was not. # AssertionError: Expected <14:00> to be equal to <17:00>, but was not.
"test_schedule_parser_with_a_weekly_recurring_enabled_schedule_data" "test_schedule_parser_with_a_weekly_recurring_enabled_schedule_data"

View file

@ -34,6 +34,10 @@ buildPythonPackage rec {
pytest-mock pytest-mock
]; ];
pytestFlagsArray = [
"--asyncio-mode=legacy"
];
postPatch = '' postPatch = ''
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace " --cov=aiosyncthing --cov-report=html" "" --replace " --cov=aiosyncthing --cov-report=html" ""

View file

@ -9,14 +9,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiounittest"; pname = "aiounittest";
version = "1.4.1"; version = "1.4.2";
disabled = isPy27; disabled = isPy27;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "kwarunek"; owner = "kwarunek";
repo = pname; repo = pname;
rev = version; rev = "refs/tags/${version}";
sha256 = "sha256-FixGF1JLJVqTgLaWugbeu8f+SDjpHSdSLoGklYBup4M="; sha256 = "sha256-7lDOI1SHPpRZLTHRTmfbKlZH18T73poJdFyVmb+HKms=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -13,14 +13,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "alembic"; pname = "alembic";
version = "1.7.7"; version = "1.8.1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-SWEkgXPq186KIe+z3jePE7g5jmYw+rDrJY3HSoryTFg="; sha256 = "sha256-zQteRbFLcGQmuDPwY2m5ptXuA/gm7DI4cjzoyq9uX/o=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -1,6 +1,6 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchFromGitHub
, jsonconversion , jsonconversion
, six , six
, pytestCheckHook , pytestCheckHook
@ -9,15 +9,18 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "amazon-ion"; pname = "amazon-ion";
version = "0.9.1"; version = "0.9.2";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { # test vectors require git submodule
pname = "amazon.ion"; src = fetchFromGitHub {
inherit version; owner = "amzn";
hash = "sha256-Moq1e7LmI0L7DHg6UNYvseEDbqdL23aCwL38wDm3yCA="; repo = "ion-python";
rev = "v${version}";
fetchSubmodules = true;
hash = "sha256-BLlKxm63KsmMFajS4uJne/LPNXboOfy4uVm8HqO9Wfo=";
}; };
postPatch = '' postPatch = ''

View file

@ -17,7 +17,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "amqtt"; pname = "amqtt";
version = "unstable-2022-01-11"; version = "unstable-2022-05-29";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -25,8 +25,8 @@ buildPythonPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Yakifo"; owner = "Yakifo";
repo = pname; repo = pname;
rev = "8961b8fff57007a5d9907b98bc555f0519974ce9"; rev = "09ac98d39a711dcff0d8f22686916e1c2495144b";
hash = "sha256-3uwz4RSoa6KRC8mlVfeIMLPH6F2kOJjQjjXCrnVX0Jo="; hash = "sha256-8T1XhBSOiArlUQbQ41LsUogDgOurLhf+M8mjIrrAC4s=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -48,14 +48,12 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
postPatch = '' pytestFlagsArray = [
substituteInPlace pyproject.toml \ "--asyncio-mode=legacy"
--replace 'PyYAML = "^5.4.0"' 'PyYAML = "*"' ];
'';
disabledTestPaths = [ disabledTestPaths = [
# Test are not ported from hbmqtt yet # Test are not ported from hbmqtt yet
"tests/test_cli.py"
"tests/test_client.py" "tests/test_client.py"
]; ];

View file

@ -2,14 +2,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "ansi2html"; pname = "ansi2html";
version = "1.7.0"; version = "1.8.0";
format = "pyproject"; format = "pyproject";
disabled = !isPy3k; disabled = !isPy3k;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-aTFr6MaKyRxVgtOXwokOacmTzHzaUgYqx+Rfy2YNjtw="; sha256 = "sha256-OLgqKYSCofomE/D5yb6z23Ko+DLurFjrLke/Ms039tU=";
}; };
nativeBuildInputs = [ setuptools-scm ]; nativeBuildInputs = [ setuptools-scm ];

View file

@ -17,7 +17,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "ansible-doctor"; pname = "ansible-doctor";
version = "1.4.0"; version = "1.4.1";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -25,8 +25,8 @@ buildPythonPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "thegeeklab"; owner = "thegeeklab";
repo = "ansible-doctor"; repo = "ansible-doctor";
rev = "v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-onRur31Sa95nsXUYFJdAHySm4nIXqP01nT70IFPwLCo="; hash = "sha256-kfBEV3PXU+C7FD9xiBMvdamb3b2KXp+Qi23/xUnoXHM=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -57,7 +57,8 @@ buildPythonPackage rec {
--replace 'anyconfig = "0.13.0"' 'anyconfig = "*"' \ --replace 'anyconfig = "0.13.0"' 'anyconfig = "*"' \
--replace 'environs = "9.5.0"' 'environs = "*"' \ --replace 'environs = "9.5.0"' 'environs = "*"' \
--replace 'jsonschema = "4.6.0"' 'jsonschema = "*"' \ --replace 'jsonschema = "4.6.0"' 'jsonschema = "*"' \
--replace '"ruamel.yaml" = "0.17.21"' '"ruamel.yaml" = "*"' --replace '"ruamel.yaml" = "0.17.21"' '"ruamel.yaml" = "*"' \
--replace 'python-json-logger = "2.0.2"' 'python-json-logger = "*"'
''; '';
# Module has no tests # Module has no tests

View file

@ -1,4 +1,6 @@
{ lib { lib
, ansible
, ansible-core
, anyconfig , anyconfig
, appdirs , appdirs
, buildPythonPackage , buildPythonPackage
@ -21,7 +23,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "ansible-later"; pname = "ansible-later";
version = "2.0.14"; version = "2.0.16";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -30,14 +32,28 @@ buildPythonPackage rec {
owner = "thegeeklab"; owner = "thegeeklab";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-iY+5p6LNrlCTGi61cm2DJdyt8SmAwYqKmXNXescjAVQ="; hash = "sha256-AlLy8rqqNrJtoI01OHq8W1Oi8iN8RiBdtq2sZ7zlTyM=";
}; };
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'version = "0.0.0"' 'version = "${version}"' \
--replace " --cov=ansiblelater --cov-report=xml:coverage.xml --cov-report=term --cov-append --no-cov-on-fail" "" \
--replace 'PyYAML = "6.0"' 'PyYAML = "*"' \
--replace 'unidiff = "0.7.3"' 'unidiff = "*"' \
--replace 'jsonschema = "' 'jsonschema = "^' \
--replace 'python-json-logger = "' 'python-json-logger = "^' \
--replace 'toolz = "0.11.2' 'toolz = "*' \
--replace 'yamllint = "' 'yamllint = "^'
'';
nativeBuildInputs = [ nativeBuildInputs = [
poetry-core poetry-core
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
ansible
ansible-core
anyconfig anyconfig
appdirs appdirs
colorama colorama
@ -57,15 +73,6 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'version = "0.0.0"' 'version = "${version}"' \
--replace " --cov=ansiblelater --cov-report=xml:coverage.xml --cov-report=term --cov-append --no-cov-on-fail" "" \
--replace 'PyYAML = "6.0"' 'PyYAML = "*"' \
--replace 'unidiff = "0.7.3"' 'unidiff = "*"' \
--replace 'jsonschema = "' 'jsonschema = "^'
'';
postInstall = '' postInstall = ''
rm $out/lib/python*/site-packages/LICENSE rm $out/lib/python*/site-packages/LICENSE
''; '';

View file

@ -19,12 +19,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "ansible-runner"; pname = "ansible-runner";
version = "2.1.3"; version = "2.2.1";
format = "setuptools"; format = "setuptools";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-2m5dD+gGDL5LnY7QbDYiGdu4GYu0C49WU29GZY2bnBo="; hash = "sha256-zZtssRdAEbTi4KWZPU0E2SjN5f4iqJk67UQ4STOHwYI=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -7,13 +7,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "anyascii"; pname = "anyascii";
version = "0.3.0"; version = "0.3.1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.3"; disabled = pythonOlder "3.3";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-JPJ0Mftkxsk6MxJftm+MugB6UmK8H6q+r+2l9LtwtZM="; sha256 = "sha256-3t9XcoIG4obJHu18dZUFpeRcjNATZ91Awvcki7FcEfY=";
}; };
checkInputs = [ checkInputs = [

View file

@ -65,13 +65,13 @@
, mkYarnPackage , mkYarnPackage
}: }:
let let
version = "2.2.4"; version = "2.3.3";
airflow-src = fetchFromGitHub rec { airflow-src = fetchFromGitHub rec {
owner = "apache"; owner = "apache";
repo = "airflow"; repo = "airflow";
rev = version; rev = "refs/tags/${version}";
sha256 = "sha256-JCcEgCq1sB8lBaeJy7QQbWU00sGAh5vUmJAptF8M9qo="; sha256 = "sha256-N+6ljfSo6+UvSAnvDav6G0S49JZ1VJwxmaiKPV3/DjA=";
}; };
# airflow bundles a web interface, which is built using webpack by an undocumented shell script in airflow's source tree. # airflow bundles a web interface, which is built using webpack by an undocumented shell script in airflow's source tree.

View file

@ -1,41 +1,47 @@
{ lib, buildPythonPackage, fetchPypi { lib
, pytest, setuptools-scm, isPy3k }: , buildPythonPackage
, fetchFromGitHub
, hatch-vcs
, hatchling
, pytestCheckHook
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "apipkg"; pname = "apipkg";
version = "2.1.1"; version = "3.0.1";
format = "pyproject";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "pytest-dev";
sha256 = "sha256-zKNAIkFKE5duM6HjjWoJBWfve2jQNy+SPGmaj4wIivw="; repo = pname;
rev = "v${version}";
hash = "sha256-gf84SzfuKLGYfI88IzPRJCqMZWwowUR10FgIbwXjwuY=";
}; };
nativeBuildInputs = [ setuptools-scm ]; SETUPTOOLS_SCM_PRETEND_VERSION = version;
checkInputs = [ pytest ];
# Fix pytest 4 support. See: https://github.com/pytest-dev/apipkg/issues/14 nativeBuildInputs = [
postPatch = '' hatch-vcs
substituteInPlace "test_apipkg.py" \ hatchling
--replace "py.test.ensuretemp('test_apipkg')" "py.path.local('test_apipkg')" ];
'';
# Failing tests on Python 3 checkInputs = [
# https://github.com/pytest-dev/apipkg/issues/17 pytestCheckHook
checkPhase = let ];
disabledTests = lib.optionals isPy3k [
"test_error_loading_one_element" pytestFlagsArray = [
"test_aliasmodule_proxy_methods" "test_apipkg.py"
"test_eagerload_on_bython" ];
];
testExpression = lib.optionalString (disabledTests != []) pythonImportsCheck = [
"-k 'not ${lib.concatStringsSep " and not " disabledTests}'"; "apipkg"
in '' ];
py.test ${testExpression}
'';
meta = with lib; { meta = with lib; {
changelog = "https://github.com/pytest-dev/apipkg/blob/main/CHANGELOG";
description = "Namespace control and lazy-import mechanism"; description = "Namespace control and lazy-import mechanism";
homepage = "https://github.com/pytest-dev/apipkg"; homepage = "https://github.com/pytest-dev/apipkg";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ ];
}; };
} }

View file

@ -5,11 +5,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "appnope"; pname = "appnope";
version = "0.1.2"; version = "0.1.3";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "dd83cd4b5b460958838f6eb3000c660b1f9caf2a5b1de4264e941512f603258a"; sha256 = "sha256-Ar2RxN6Gn7seHFCq/ECYgnp6VKsvOdncumyVR+2SDiQ=";
}; };
meta = { meta = {

View file

@ -9,7 +9,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "apsw"; pname = "apsw";
version = "3.38.1-r1"; version = "3.38.5-r1";
format = "setuptools"; format = "setuptools";
disabled = isPyPy; disabled = isPyPy;
@ -17,8 +17,8 @@ buildPythonPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rogerbinns"; owner = "rogerbinns";
repo = "apsw"; repo = "apsw";
rev = version; rev = "refs/tags/${version}";
hash = "sha256-pbb6wCu1T1mPlgoydB1Y1AKv+kToGkdVUjiom2vTqf4="; hash = "sha256-pPviSrONGgWZUREMENPt34bpHggR00Kl6DrB40JWm+w=";
}; };
buildInputs = [ buildInputs = [

View file

@ -16,7 +16,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "astroid"; pname = "astroid";
version = "2.11.5"; # Check whether the version is compatible with pylint version = "2.11.7"; # Check whether the version is compatible with pylint
disabled = pythonOlder "3.6.2"; disabled = pythonOlder "3.6.2";
@ -24,7 +24,7 @@ buildPythonPackage rec {
owner = "PyCQA"; owner = "PyCQA";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-GKda3hNdOrsd11pi+6NpYodW4TAgSvqbv2hF4GaIvtM="; sha256 = "sha256-HpniGxKf+daMh/sxP9T9UriYRrUFWqk7kDa8r+EqtVI=";
}; };
SETUPTOOLS_SCM_PRETEND_VERSION = version; SETUPTOOLS_SCM_PRETEND_VERSION = version;

View file

@ -19,7 +19,7 @@
let let
pname = "astropy"; pname = "astropy";
version = "5.0.3"; version = "5.1";
in in
buildPythonPackage { buildPythonPackage {
inherit pname version; inherit pname version;
@ -29,7 +29,7 @@ buildPythonPackage {
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-GxZOxV63HH8Pil8zVDOcWkLWEpg1ayFOT7n/JWqGgUc="; sha256 = "sha256-HbGyx+3fx3PKZvozvQeyXVucO17uK5NODKJ3+lsbe34=";
}; };
SETUPTOOLS_SCM_PRETEND_VERSION = version; SETUPTOOLS_SCM_PRETEND_VERSION = version;

View file

@ -61,6 +61,11 @@ buildPythonPackage rec {
"test_deferred_callback_url" "test_deferred_callback_url"
]; ];
disabledTestPaths = [
# Tries to bind to multicast socket and fails to find proper interface
"tests/test_ssdp_listener.py"
];
pythonImportsCheck = [ pythonImportsCheck = [
"async_upnp_client" "async_upnp_client"
]; ];

View file

@ -8,14 +8,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "asyncpg"; pname = "asyncpg";
version = "0.25.0"; version = "0.26.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-Y/jmppczsoVJfChVRko03mV/LMzSWurutQcYcuk4JUA="; hash = "sha256-d+aEok/uF7o+SHypgtAlntF7rhr2gAb0zyhLI7og6iw=";
}; };
checkInputs = [ checkInputs = [

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