Merge staging-next into staging

This commit is contained in:
github-actions[bot] 2024-09-07 06:04:40 +00:00 committed by GitHub
commit 50da31693c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
72 changed files with 1311 additions and 764 deletions

View File

@ -258,26 +258,39 @@ It returns a derivation with all `package-lock.json` dependencies downloaded int
#### importNpmLock {#javascript-buildNpmPackage-importNpmLock} #### importNpmLock {#javascript-buildNpmPackage-importNpmLock}
`importNpmLock` is a Nix function that requires the following optional arguments: This function replaces the npm dependency references in `package.json` and `package-lock.json` with paths to the Nix store.
How each dependency is fetched can be customized with the `fetcherOpts` argument.
- `npmRoot`: Path to package directory containing the source tree This is a simpler and more convenient alternative to [`fetchNpmDeps`](#javascript-buildNpmPackage-fetchNpmDeps) for managing npm dependencies in Nixpkgs.
There is no need to specify a `hash`, since it relies entirely on the integrity hashes already present in the `package-lock.json` file.
##### Inputs {#javascript-buildNpmPackage-inputs}
- `npmRoot`: Path to package directory containing the source tree.
If this is omitted, the `package` and `packageLock` arguments must be specified instead.
- `package`: Parsed contents of `package.json` - `package`: Parsed contents of `package.json`
- `packageLock`: Parsed contents of `package-lock.json` - `packageLock`: Parsed contents of `package-lock.json`
- `pname`: Package name - `pname`: Package name
- `version`: Package version - `version`: Package version
- `fetcherOpts`: An attribute set of arguments forwarded to the underlying fetcher.
It returns a derivation with a patched `package.json` & `package-lock.json` with all dependencies resolved to Nix store paths. It returns a derivation with a patched `package.json` & `package-lock.json` with all dependencies resolved to Nix store paths.
This function is analogous to using `fetchNpmDeps`, but instead of specifying `hash` it uses metadata from `package.json` & `package-lock.json`. :::{.note}
`npmHooks.npmConfigHook` cannot be used with `importNpmLock`.
Use `importNpmLock.npmConfigHook` instead.
:::
Note that `npmHooks.npmConfigHook` cannot be used with `importNpmLock`. You will instead need to use `importNpmLock.npmConfigHook`: :::{.example}
##### `pkgs.importNpmLock` usage example {#javascript-buildNpmPackage-example}
```nix ```nix
{ buildNpmPackage, importNpmLock }: { buildNpmPackage, importNpmLock }:
buildNpmPackage { buildNpmPackage {
pname = "hello"; pname = "hello";
version = "0.1.0"; version = "0.1.0";
src = ./.;
npmDeps = importNpmLock { npmDeps = importNpmLock {
npmRoot = ./.; npmRoot = ./.;
@ -286,6 +299,38 @@ buildNpmPackage {
npmConfigHook = importNpmLock.npmConfigHook; npmConfigHook = importNpmLock.npmConfigHook;
} }
``` ```
:::
:::{.example}
##### `pkgs.importNpmLock` usage example with `fetcherOpts` {#javascript-buildNpmPackage-example-fetcherOpts}
`importNpmLock` uses the following fetchers:
- `pkgs.fetchurl` for `http(s)` dependencies
- `builtins.fetchGit` for `git` dependencies
It is possible to provide additional arguments to individual fetchers as needed:
```nix
{ buildNpmPackage, importNpmLock }:
buildNpmPackage {
pname = "hello";
version = "0.1.0";
src = ./.;
npmDeps = importNpmLock {
npmRoot = ./.;
fetcherOpts = {
# Pass 'curlOptsList' to 'pkgs.fetchurl' while fetching 'axios'
{ "node_modules/axios" = { curlOptsList = [ "--verbose" ]; }; }
};
};
npmConfigHook = importNpmLock.npmConfigHook;
}
```
:::
#### importNpmLock.buildNodeModules {#javascript-buildNpmPackage-importNpmLock.buildNodeModules} #### importNpmLock.buildNodeModules {#javascript-buildNpmPackage-importNpmLock.buildNodeModules}

View File

@ -567,8 +567,7 @@ buildPythonPackage rec {
}; };
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit src sourceRoot; inherit pname version src sourceRoot;
name = "${pname}-${version}";
hash = "sha256-miW//pnOmww2i6SOGbkrAIdc/JMDT4FJLqdMFojZeoY="; hash = "sha256-miW//pnOmww2i6SOGbkrAIdc/JMDT4FJLqdMFojZeoY=";
}; };
@ -611,9 +610,8 @@ buildPythonPackage rec {
}; };
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit src; inherit pname version src;
sourceRoot = "${pname}-${version}/${cargoRoot}"; sourceRoot = "${pname}-${version}/${cargoRoot}";
name = "${pname}-${version}";
hash = "sha256-PS562W4L1NimqDV2H0jl5vYhL08H9est/pbIxSdYVfo="; hash = "sha256-PS562W4L1NimqDV2H0jl5vYhL08H9est/pbIxSdYVfo=";
}; };
@ -652,8 +650,7 @@ buildPythonPackage rec {
}; };
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit src; inherit pname version src;
name = "${pname}-${version}";
hash = "sha256-heOBK8qi2nuc/Ib+I/vLzZ1fUUD/G/KTw9d7M4Hz5O0="; hash = "sha256-heOBK8qi2nuc/Ib+I/vLzZ1fUUD/G/KTw9d7M4Hz5O0=";
}; };
@ -697,8 +694,7 @@ stdenv.mkDerivation rec {
}; };
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit src; inherit pname version src;
name = "${pname}-${version}";
hash = "sha256-8fa3fa+sFi5H+49B5sr2vYPkp9C9s6CcE0zv4xB8gww="; hash = "sha256-8fa3fa+sFi5H+49B5sr2vYPkp9C9s6CcE0zv4xB8gww=";
}; };

View File

@ -4851,6 +4851,12 @@
name = "David Morgan"; name = "David Morgan";
keys = [ { fingerprint = "9B43 6B14 77A8 79C2 6CDB 6604 C171 2510 02C2 00F2"; } ]; keys = [ { fingerprint = "9B43 6B14 77A8 79C2 6CDB 6604 C171 2510 02C2 00F2"; } ];
}; };
deekahy = {
email = "Lennart.Diego.Kahn@gmail.com";
github = "deekahy";
githubId = 97156953;
name = "Lennart Diego Kahn";
};
deemp = { deemp = {
email = "deempleton@gmail.com"; email = "deempleton@gmail.com";
github = "deemp"; github = "deemp";

View File

@ -45,13 +45,13 @@ let
specialisation.samba.configuration = { specialisation.samba.configuration = {
services.samba = { services.samba = {
enable = true; enable = true;
extraConfig = '' settings.global = {
registry shares = yes "registry shares" = true;
usershare path = ${usersharePath} "usershare path" = "${usersharePath}";
usershare allow guests = yes "usershare allow guests" = true;
usershare max shares = 100 "usershare max shares" = "100";
usershare owner only = no "usershare owner only" = false;
''; };
}; };
systemd.services.samba-smbd.serviceConfig.ExecStartPre = systemd.services.samba-smbd.serviceConfig.ExecStartPre =
"${pkgs.coreutils}/bin/mkdir -m +t -p ${usersharePath}"; "${pkgs.coreutils}/bin/mkdir -m +t -p ${usersharePath}";
@ -213,8 +213,8 @@ in {
enableSystemdStage1 = true; enableSystemdStage1 = true;
}; };
installerBoot = (import ./installer.nix { }).separateBootZfs; installerBoot = (import ./installer.nix { inherit system; }).separateBootZfs;
installer = (import ./installer.nix { }).zfsroot; installer = (import ./installer.nix { inherit system; }).zfsroot;
expand-partitions = makeTest { expand-partitions = makeTest {
name = "multi-disk-zfs"; name = "multi-disk-zfs";

View File

@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
}; };
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit pname version src; inherit src;
hash = "sha256-XTfKqKs7874ak7Lzscxw8E2qcnJOWMZaaol8TpIB6Vw="; hash = "sha256-XTfKqKs7874ak7Lzscxw8E2qcnJOWMZaaol8TpIB6Vw=";
}; };

View File

@ -406,8 +406,8 @@ let
mktplcRef = { mktplcRef = {
name = "vscode-neovim"; name = "vscode-neovim";
publisher = "asvetliakov"; publisher = "asvetliakov";
version = "1.18.7"; version = "1.18.10";
hash = "sha256-ltgygZBWLG79FNxKqloOm8NNSDBbXU2bNkmd+9ksuOg="; hash = "sha256-0Bb1DFuVjpAaMGK6o8+yIprVZgEf64itSh87H3jL7R8=";
}; };
meta = { meta = {
changelog = "https://marketplace.visualstudio.com/items/asvetliakov.vscode-neovim/changelog"; changelog = "https://marketplace.visualstudio.com/items/asvetliakov.vscode-neovim/changelog";

View File

@ -50,17 +50,18 @@
, moltenvk , moltenvk
, OpenGL , OpenGL
, VideoToolbox , VideoToolbox
, xcbuild
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "dolphin-emu"; pname = "dolphin-emu";
version = "2407"; version = "2409";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dolphin-emu"; owner = "dolphin-emu";
repo = "dolphin"; repo = "dolphin";
rev = "refs/tags/${finalAttrs.version}"; rev = "refs/tags/${finalAttrs.version}";
hash = "sha256-8W4KyIj+rhDkWnQogjpzlEJVo3HJenfpWKimSyMGN7c="; hash = "sha256-x4ZtV/5bwUjcmdYneG7n7uFVyPmYj0sD8TXEqsqbUFU=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
@ -70,6 +71,8 @@ stdenv.mkDerivation (finalAttrs: {
cmake cmake
pkg-config pkg-config
wrapQtAppsHook wrapQtAppsHook
] ++ lib.optionals stdenv.isDarwin [
xcbuild # for plutil
]; ];
buildInputs = [ buildInputs = [

View File

@ -77,6 +77,7 @@
tbb, tbb,
wayland, wayland,
wayland-protocols, wayland-protocols,
wayland-scanner,
waylandSupport ? stdenv.isLinux, waylandSupport ? stdenv.isLinux,
zlib, zlib,
zstd, zstd,
@ -149,6 +150,7 @@ stdenv.mkDerivation (finalAttrs: {
cmakeFlags = cmakeFlags =
[ [
"-DMaterialX_DIR=${python3Packages.materialx}/lib/cmake/MaterialX"
"-DPYTHON_INCLUDE_DIR=${python3}/include/${python3.libPrefix}" "-DPYTHON_INCLUDE_DIR=${python3}/include/${python3.libPrefix}"
"-DPYTHON_LIBPATH=${python3}/lib" "-DPYTHON_LIBPATH=${python3}/lib"
"-DPYTHON_LIBRARY=${python3.libPrefix}" "-DPYTHON_LIBRARY=${python3.libPrefix}"
@ -156,21 +158,28 @@ stdenv.mkDerivation (finalAttrs: {
"-DPYTHON_NUMPY_PATH=${python3Packages.numpy}/${python3.sitePackages}" "-DPYTHON_NUMPY_PATH=${python3Packages.numpy}/${python3.sitePackages}"
"-DPYTHON_VERSION=${python3.pythonVersion}" "-DPYTHON_VERSION=${python3.pythonVersion}"
"-DWITH_ALEMBIC=ON" "-DWITH_ALEMBIC=ON"
"-DWITH_BUILDINFO=OFF"
"-DWITH_CODEC_FFMPEG=ON" "-DWITH_CODEC_FFMPEG=ON"
"-DWITH_CODEC_SNDFILE=ON" "-DWITH_CODEC_SNDFILE=ON"
"-DWITH_CPU_CHECK=OFF"
"-DWITH_CYCLES_DEVICE_OPTIX=${if cudaSupport then "ON" else "OFF"}"
"-DWITH_CYCLES_OSL=OFF"
"-DWITH_FFTW3=ON" "-DWITH_FFTW3=ON"
"-DWITH_IMAGE_OPENJPEG=ON" "-DWITH_IMAGE_OPENJPEG=ON"
"-DWITH_INSTALL_PORTABLE=OFF" "-DWITH_INSTALL_PORTABLE=OFF"
"-DMaterialX_DIR=${python3Packages.materialx}/lib/cmake/MaterialX" "-DWITH_JACK=${if jackaudioSupport then "ON" else "OFF"}"
"-DWITH_LIBS_PRECOMPILED=OFF"
"-DWITH_MOD_OCEANSIM=ON" "-DWITH_MOD_OCEANSIM=ON"
"-DWITH_OPENCOLLADA=${if colladaSupport then "ON" else "OFF"}" "-DWITH_OPENCOLLADA=${if colladaSupport then "ON" else "OFF"}"
"-DWITH_OPENCOLORIO=ON" "-DWITH_OPENCOLORIO=ON"
"-DWITH_OPENSUBDIV=ON" "-DWITH_OPENSUBDIV=ON"
"-DWITH_OPENVDB=ON" "-DWITH_OPENVDB=ON"
"-DWITH_PULSEAUDIO=OFF"
"-DWITH_PYTHON_INSTALL=OFF" "-DWITH_PYTHON_INSTALL=OFF"
"-DWITH_PYTHON_INSTALL_NUMPY=OFF" "-DWITH_PYTHON_INSTALL_NUMPY=OFF"
"-DWITH_PYTHON_INSTALL_REQUESTS=OFF" "-DWITH_PYTHON_INSTALL_REQUESTS=OFF"
"-DWITH_SDL=OFF" "-DWITH_SDL=OFF"
"-DWITH_STRICT_BUILD_OPTIONS=ON"
"-DWITH_TBB=ON" "-DWITH_TBB=ON"
"-DWITH_USD=ON" "-DWITH_USD=ON"
@ -189,16 +198,13 @@ stdenv.mkDerivation (finalAttrs: {
] ]
++ lib.optionals stdenv.isDarwin [ ++ lib.optionals stdenv.isDarwin [
"-DLIBDIR=/does-not-exist" "-DLIBDIR=/does-not-exist"
"-DWITH_CYCLES_OSL=OFF" # causes segfault on aarch64-darwin
"-DSSE2NEON_INCLUDE_DIR=${sse2neon}/lib" "-DSSE2NEON_INCLUDE_DIR=${sse2neon}/lib"
"-DWITH_USD=OFF" # currently fails on darwin "-DWITH_USD=OFF" # currently fails on darwin
] ]
++ lib.optional stdenv.cc.isClang "-DPYTHON_LINKFLAGS=" # Clang doesn't support "-export-dynamic" ++ lib.optional stdenv.cc.isClang "-DPYTHON_LINKFLAGS=" # Clang doesn't support "-export-dynamic"
++ lib.optional jackaudioSupport "-DWITH_JACK=ON"
++ lib.optionals cudaSupport [ ++ lib.optionals cudaSupport [
"-DOPTIX_ROOT_DIR=${optix}" "-DOPTIX_ROOT_DIR=${optix}"
"-DWITH_CYCLES_CUDA_BINARIES=ON" "-DWITH_CYCLES_CUDA_BINARIES=ON"
"-DWITH_CYCLES_DEVICE_OPTIX=ON"
]; ];
preConfigure = '' preConfigure = ''
@ -223,7 +229,10 @@ stdenv.mkDerivation (finalAttrs: {
addDriverRunpath addDriverRunpath
cudaPackages.cuda_nvcc cudaPackages.cuda_nvcc
] ]
++ lib.optionals waylandSupport [ pkg-config ]; ++ lib.optionals waylandSupport [
pkg-config
wayland-scanner
];
buildInputs = buildInputs =
[ [

View File

@ -24,7 +24,7 @@ let
vivaldiName = if isSnapshot then "vivaldi-snapshot" else "vivaldi"; vivaldiName = if isSnapshot then "vivaldi-snapshot" else "vivaldi";
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "vivaldi"; pname = "vivaldi";
version = "6.8.3381.57"; version = "6.9.3447.37";
suffix = { suffix = {
aarch64-linux = "arm64"; aarch64-linux = "arm64";
@ -34,8 +34,8 @@ in stdenv.mkDerivation rec {
src = fetchurl { src = fetchurl {
url = "https://downloads.vivaldi.com/${branch}/vivaldi-${branch}_${version}-1_${suffix}.deb"; url = "https://downloads.vivaldi.com/${branch}/vivaldi-${branch}_${version}-1_${suffix}.deb";
hash = { hash = {
aarch64-linux = "sha256-Tehc9T9+7NHaMYu7l7qB/09ips41rTx1VDCalUyO6Nw="; aarch64-linux = "sha256-kYTnWad/jrJt9z+AhjXzHYxVSIwIIO3RKD7szuPEg2s=";
x86_64-linux = "sha256-PC5fzMRIC2bW8xmPCG2nNIwwz0wha6+VDLAV1ihbQkM="; x86_64-linux = "sha256-+h7SHci8gZ+epKFHD0PiXyME2xT+loD2KXpJGFCfIFg=";
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); }.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
}; };

View File

@ -63,14 +63,14 @@ let
in in
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "telegram-desktop"; pname = "telegram-desktop";
version = "5.4.1"; version = "5.5.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "telegramdesktop"; owner = "telegramdesktop";
repo = "tdesktop"; repo = "tdesktop";
rev = "v${finalAttrs.version}"; rev = "v${finalAttrs.version}";
fetchSubmodules = true; fetchSubmodules = true;
hash = "sha256-AWu0LH6DH/omcIsgIBHQIg1uCKN9Ly6EVj4U9QxoSlg="; hash = "sha256-PTa79SbSsOyWlZJ0ad4w6YIiChLzqaSZGRmzyq5qVK0=";
}; };
patches = [ patches = [

View File

@ -7,11 +7,11 @@
let let
pname = "electron-mail"; pname = "electron-mail";
version = "5.2.2"; version = "5.2.3";
src = fetchurl { src = fetchurl {
url = "https://github.com/vladimiry/ElectronMail/releases/download/v${version}/electron-mail-${version}-linux-x86_64.AppImage"; url = "https://github.com/vladimiry/ElectronMail/releases/download/v${version}/electron-mail-${version}-linux-x86_64.AppImage";
sha256 = "sha256-bGqTPP+djpr+RFS6X7jUlSbxl7UDUaZLWQ3D/R76zEI="; sha256 = "sha256-ajekPPRgprYNWE2osAXe46qVjnxXzkXa+MkWiNYJ5Fc=";
}; };
appimageContents = appimageTools.extract { inherit pname version src; }; appimageContents = appimageTools.extract { inherit pname version src; };

View File

@ -1,116 +1,156 @@
{ lib, stdenv, cacert, git, cargo, python3 }: {
let cargo-vendor-normalise = stdenv.mkDerivation { lib,
name = "cargo-vendor-normalise"; stdenv,
src = ./cargo-vendor-normalise.py; cacert,
nativeBuildInputs = [ python3.pkgs.wrapPython ]; git,
dontUnpack = true; cargo,
installPhase = "install -D $src $out/bin/cargo-vendor-normalise"; python3,
pythonPath = [ python3.pkgs.toml ]; }:
postFixup = "wrapPythonPrograms"; let
doInstallCheck = true; cargo-vendor-normalise = stdenv.mkDerivation {
installCheckPhase = '' name = "cargo-vendor-normalise";
# check that ../fetchcargo-default-config.toml is a fix point src = ./cargo-vendor-normalise.py;
reference=${../fetchcargo-default-config.toml} nativeBuildInputs = [ python3.pkgs.wrapPython ];
< $reference $out/bin/cargo-vendor-normalise > test; dontUnpack = true;
cmp test $reference installPhase = "install -D $src $out/bin/cargo-vendor-normalise";
''; pythonPath = [ python3.pkgs.toml ];
preferLocalBuild = true; postFixup = "wrapPythonPrograms";
}; doInstallCheck = true;
installCheckPhase = ''
# check that ../fetchcargo-default-config.toml is a fix point
reference=${../fetchcargo-default-config.toml}
< $reference $out/bin/cargo-vendor-normalise > test;
cmp test $reference
'';
preferLocalBuild = true;
};
in in
{ name ? "cargo-deps" {
, src ? null pname ? null,
, srcs ? [] version ? null,
, patches ? [] name ? if args ? pname && args ? version then "${pname}-${version}" else "cargo-deps",
, sourceRoot ? "" src ? null,
, cargoUpdateHook ? "" srcs ? [ ],
, nativeBuildInputs ? [] patches ? [ ],
, ... sourceRoot ? "",
} @ args: cargoUpdateHook ? "",
nativeBuildInputs ? [ ],
...
}@args:
let hash_ = assert lib.assertMsg (
if args ? hash then (args ? pname || args ? version) -> !(args ? name)
{ ) "Either specify `pname` with `version`, or specify `name` only, not a mix of both.";
outputHashAlgo = if args.hash == "" then "sha256" else null; assert lib.assertMsg (
outputHash = args.hash; args ? pname == args ? version
} ) "If `pname` is specified, `version` must be also, and vice versa.";
else if args ? sha256 then { outputHashAlgo = "sha256"; outputHash = args.sha256; } let
else throw "fetchCargoTarball requires a hash for ${name}"; # args to remove from the final call to stdenv.mkDerivation, as we've already handled them
in stdenv.mkDerivation ({ removedArgs = [
name = "${name}-vendor.tar.gz"; "name"
nativeBuildInputs = [ cacert git cargo-vendor-normalise cargo ] ++ nativeBuildInputs; "pname"
"version"
"sha256"
"cargoUpdateHook"
"nativeBuildInputs"
];
buildPhase = '' hash_ =
runHook preBuild if args ? hash then
{
outputHashAlgo = if args.hash == "" then "sha256" else null;
outputHash = args.hash;
}
else if args ? sha256 then
{
outputHashAlgo = "sha256";
outputHash = args.sha256;
}
else
throw "fetchCargoTarball requires a hash for ${name}";
in
stdenv.mkDerivation (
{
name = "${name}-vendor.tar.gz";
nativeBuildInputs = [
cacert
git
cargo-vendor-normalise
cargo
] ++ nativeBuildInputs;
# Ensure deterministic Cargo vendor builds buildPhase = ''
export SOURCE_DATE_EPOCH=1 runHook preBuild
if [[ ! -f Cargo.lock ]]; then # Ensure deterministic Cargo vendor builds
echo export SOURCE_DATE_EPOCH=1
echo "ERROR: The Cargo.lock file doesn't exist"
echo
echo "Cargo.lock is needed to make sure that cargoHash/cargoSha256 doesn't change"
echo "when the registry is updated."
echo
exit 1 if [[ ! -f Cargo.lock ]]; then
fi echo
echo "ERROR: The Cargo.lock file doesn't exist"
echo
echo "Cargo.lock is needed to make sure that cargoHash/cargoSha256 doesn't change"
echo "when the registry is updated."
echo
# Keep the original around for copyLockfile exit 1
cp Cargo.lock Cargo.lock.orig fi
export CARGO_HOME=$(mktemp -d cargo-home.XXX) # Keep the original around for copyLockfile
CARGO_CONFIG=$(mktemp cargo-config.XXXX) cp Cargo.lock Cargo.lock.orig
if [[ -n "$NIX_CRATES_INDEX" ]]; then export CARGO_HOME=$(mktemp -d cargo-home.XXX)
cat >$CARGO_HOME/config.toml <<EOF CARGO_CONFIG=$(mktemp cargo-config.XXXX)
[source.crates-io]
replace-with = 'mirror'
[source.mirror]
registry = "$NIX_CRATES_INDEX"
EOF
fi
${cargoUpdateHook} if [[ -n "$NIX_CRATES_INDEX" ]]; then
cat >$CARGO_HOME/config.toml <<EOF
[source.crates-io]
replace-with = 'mirror'
[source.mirror]
registry = "$NIX_CRATES_INDEX"
EOF
fi
# Override the `http.cainfo` option usually specified in `.cargo/config`. ${cargoUpdateHook}
export CARGO_HTTP_CAINFO=${cacert}/etc/ssl/certs/ca-bundle.crt
if grep '^source = "git' Cargo.lock; then # Override the `http.cainfo` option usually specified in `.cargo/config`.
echo export CARGO_HTTP_CAINFO=${cacert}/etc/ssl/certs/ca-bundle.crt
echo "ERROR: The Cargo.lock contains git dependencies"
echo
echo "This is currently not supported in the fixed-output derivation fetcher."
echo "Use cargoLock.lockFile / importCargoLock instead."
echo
exit 1 if grep '^source = "git' Cargo.lock; then
fi echo
echo "ERROR: The Cargo.lock contains git dependencies"
echo
echo "This is currently not supported in the fixed-output derivation fetcher."
echo "Use cargoLock.lockFile / importCargoLock instead."
echo
cargo vendor $name --respect-source-config | cargo-vendor-normalise > $CARGO_CONFIG exit 1
fi
# Create an empty vendor directory when there is no dependency to vendor cargo vendor $name --respect-source-config | cargo-vendor-normalise > $CARGO_CONFIG
mkdir -p $name
# Add the Cargo.lock to allow hash invalidation
cp Cargo.lock.orig $name/Cargo.lock
# Packages with git dependencies generate non-default cargo configs, so # Create an empty vendor directory when there is no dependency to vendor
# always install it rather than trying to write a standard default template. mkdir -p $name
install -D $CARGO_CONFIG $name/.cargo/config; # Add the Cargo.lock to allow hash invalidation
cp Cargo.lock.orig $name/Cargo.lock
runHook postBuild # Packages with git dependencies generate non-default cargo configs, so
''; # always install it rather than trying to write a standard default template.
install -D $CARGO_CONFIG $name/.cargo/config;
# Build a reproducible tar, per instructions at https://reproducible-builds.org/docs/archives/ runHook postBuild
installPhase = '' '';
tar --owner=0 --group=0 --numeric-owner --format=gnu \
--sort=name --mtime="@$SOURCE_DATE_EPOCH" \
-czf $out $name
'';
inherit (hash_) outputHashAlgo outputHash; # Build a reproducible tar, per instructions at https://reproducible-builds.org/docs/archives/
installPhase = ''
tar --owner=0 --group=0 --numeric-owner --format=gnu \
--sort=name --mtime="@$SOURCE_DATE_EPOCH" \
-czf $out $name
'';
impureEnvVars = lib.fetchers.proxyImpureEnvVars ++ [ "NIX_CRATES_INDEX" ]; inherit (hash_) outputHashAlgo outputHash;
} // (builtins.removeAttrs args [
"name" "sha256" "cargoUpdateHook" "nativeBuildInputs" impureEnvVars = lib.fetchers.proxyImpureEnvVars ++ [ "NIX_CRATES_INDEX" ];
])) }
// (removeAttrs args removedArgs)
)

View File

@ -6,7 +6,7 @@
}: }:
let let
pname = "asm-lsp"; pname = "asm-lsp";
version = "0.7.4"; version = "0.9.0";
in in
rustPlatform.buildRustPackage { rustPlatform.buildRustPackage {
inherit pname version; inherit pname version;
@ -15,7 +15,7 @@ rustPlatform.buildRustPackage {
owner = "bergercookie"; owner = "bergercookie";
repo = "asm-lsp"; repo = "asm-lsp";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-tgwiCAlHuFdeMr1GA4vPg8i94zfRj+uyPMAXYh+Smo4="; hash = "sha256-0GB3tXZuCu3syh+RG+eXoliZVHMPOhYC3RchSSx4u5w=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -26,7 +26,7 @@ rustPlatform.buildRustPackage {
openssl openssl
]; ];
cargoHash = "sha256-UBYD0rs7bEtVZatu/kRgyCwKHvcgYJWRgyfBi3ooPGQ="; cargoHash = "sha256-AtCnYOOtViMpg+rz8miuBZg1pENBPaf9kamSPaVUyiw=";
# tests expect ~/.cache/asm-lsp to be writable # tests expect ~/.cache/asm-lsp to be writable
preCheck = '' preCheck = ''

View File

@ -26,20 +26,20 @@ let
in in
buildNpmPackage' rec { buildNpmPackage' rec {
pname = "bruno"; pname = "bruno";
version = "1.25.0"; version = "1.28.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "usebruno"; owner = "usebruno";
repo = "bruno"; repo = "bruno";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-TXEe0ICrkljxfnvW1wv/e1BB7J6p/KW3JklCvYyjqSs="; hash = "sha256-SLND+eEEMFVHE5XPt2EKkJ+BjENqvUSrWkqnC6ghUBI=";
postFetch = '' postFetch = ''
${lib.getExe npm-lockfile-fix} $out/package-lock.json ${lib.getExe npm-lockfile-fix} $out/package-lock.json
''; '';
}; };
npmDepsHash = "sha256-/1/QPKjSgJJDtmUipgbiVR+Buea9cXO+HvICfKVX/2g="; npmDepsHash = "sha256-RFn7Bbx1xMm4gt++lhPflXjEfTIgmls2TkrJ8Ta2qpI=";
npmFlags = [ "--legacy-peer-deps" ]; npmFlags = [ "--legacy-peer-deps" ];
nativeBuildInputs = nativeBuildInputs =
@ -79,16 +79,13 @@ buildNpmPackage' rec {
--replace-fail 'if [ "$1" == "snap" ]; then' 'exit 0; if [ "$1" == "snap" ]; then' --replace-fail 'if [ "$1" == "snap" ]; then' 'exit 0; if [ "$1" == "snap" ]; then'
''; '';
ELECTRON_SKIP_BINARY_DOWNLOAD = 1; postConfigure = ''
# sh: line 1: /build/source/packages/bruno-common/node_modules/.bin/rollup: cannot execute: required file not found
# remove giflib dependency patchShebangs packages/*/node_modules
npmRebuildFlags = [ "--ignore-scripts" ];
preBuild = ''
substituteInPlace node_modules/canvas/binding.gyp \
--replace-fail "'with_gif%': '<!(node ./util/has_lib.js gif)'" "'with_gif%': 'false'"
npm rebuild
''; '';
ELECTRON_SKIP_BINARY_DOWNLOAD = 1;
dontNpmBuild = true; dontNpmBuild = true;
postBuild = '' postBuild = ''
npm run build --workspace=packages/bruno-common npm run build --workspace=packages/bruno-common
@ -96,6 +93,8 @@ buildNpmPackage' rec {
npm run build --workspace=packages/bruno-app npm run build --workspace=packages/bruno-app
npm run build --workspace=packages/bruno-query npm run build --workspace=packages/bruno-query
npm run sandbox:bundle-libraries --workspace=packages/bruno-js
bash scripts/build-electron.sh bash scripts/build-electron.sh
pushd packages/bruno-electron pushd packages/bruno-electron

View File

@ -26,7 +26,7 @@ stdenv.mkDerivation (finalAttrs: {
}; };
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit (finalAttrs) pname version src; inherit (finalAttrs) src;
hash = "sha256-Q4CfDQxlhspjg7Et+0zHwZ/iSnp0CnwwpW/gT7htlL8="; hash = "sha256-Q4CfDQxlhspjg7Et+0zHwZ/iSnp0CnwwpW/gT7htlL8=";
}; };

View File

@ -0,0 +1,27 @@
{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "ccat";
version = "001";
src = fetchFromGitHub {
owner = "DeeKahy";
repo = "CopyCat";
rev = "refs/tags/${version}";
hash = "sha256-zllxQifRMNEMa3RO5WKrwGAUf1xQg6YrQBzIHzy43F0=";
};
cargoHash = "sha256-LYVhvq5l+PCZXW+elWi3zZFxLekgPn+plo4dybbLK9g=";
meta = {
description = "Utility to copy project tree contents to clipboard";
homepage = "https://github.com/DeeKahy/CopyCat";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.deekahy ];
mainProgram = "ccat";
};
}

View File

@ -2,9 +2,9 @@
buildDotnetGlobalTool { buildDotnetGlobalTool {
pname = "fantomas"; pname = "fantomas";
version = "6.3.11"; version = "6.3.12";
nugetHash = "sha256-11bHGEAZTNtdp2pTg5zqLrQiyI/j/AT7GGL/2CR4+dw="; nugetHash = "sha256-LFZn2cO72FlsmLI0vTLz52Bn4XBeGILTOr8rz/EuXeg=";
meta = with lib; { meta = with lib; {
description = "F# source code formatter"; description = "F# source code formatter";

View File

@ -26,7 +26,7 @@ stdenv.mkDerivation (finalAttrs: {
}; };
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit (finalAttrs) pname version src; inherit (finalAttrs) src;
hash = "sha256-YVbaXGGwQaqjUkA47ryW1VgJpZTx5ApRGdCcB5aA71M="; hash = "sha256-YVbaXGGwQaqjUkA47ryW1VgJpZTx5ApRGdCcB5aA71M=";
}; };

View File

@ -11,11 +11,11 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "gitlab-timelogs"; pname = "gitlab-timelogs";
version = "0.3.0"; version = "0.4.0";
src = fetchCrate { src = fetchCrate {
inherit pname version; inherit pname version;
hash = "sha256-n+Jvm4RqHkXIeQcY55iOEBgwvbr77vLMhqxXgdau5MQ="; hash = "sha256-EWFzMNuNquHR0grmmi14vuraIwvrmkw88QAYkvbO2QM=";
}; };
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
@ -27,7 +27,7 @@ rustPlatform.buildRustPackage rec {
iconv iconv
]; ];
cargoHash = "sha256-REE7DWY0l4TTDTwWFWVr3Zk/oLQlOjrbFEWSFUlBEig="; cargoHash = "sha256-IXiIrX+nR7uB7UYqdVgKR+IHJlRl0i0cklwITGF5jAg=";
meta = { meta = {
description = " CLI utility to support you with your time logs in GitLab"; description = " CLI utility to support you with your time logs in GitLab";

View File

@ -8,14 +8,14 @@
}: }:
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "handheld-daemon"; pname = "handheld-daemon";
version = "3.3.11"; version = "3.3.12";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hhd-dev"; owner = "hhd-dev";
repo = "hhd"; repo = "hhd";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-vjJY9YrULRHEgVIgzwLS5gKfQnbHFKXigU+rlm+BiJQ="; hash = "sha256-3ne9e1rYjWe8opwOvtP5NJMNbTloWg1kj+JzckpeW1M=";
}; };
propagatedBuildInputs = with python3.pkgs; [ propagatedBuildInputs = with python3.pkgs; [

View File

@ -32,7 +32,7 @@ stdenv.mkDerivation (finalAttrs: {
''; '';
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit (finalAttrs) pname version src; inherit (finalAttrs) src;
hash = "sha256-wCJTm0W+g3+O1t1fR4maqJoxpPM0NeJG7d54MMAH33c="; hash = "sha256-wCJTm0W+g3+O1t1fR4maqJoxpPM0NeJG7d54MMAH33c=";
}; };

View File

@ -32,8 +32,7 @@ stdenv.mkDerivation rec {
}; };
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit src; inherit pname version src;
name = "${pname}-${version}";
hash = "sha256-FjnRI1vHA9YF/Uw2+hDtMJmeJVa5RcxaYoG4XgXa9Ds="; hash = "sha256-FjnRI1vHA9YF/Uw2+hDtMJmeJVa5RcxaYoG4XgXa9Ds=";
}; };

View File

@ -27,8 +27,9 @@
fully_kiosk = ps: with ps; [ fully_kiosk = ps: with ps; [
python-fullykiosk python-fullykiosk
]; ];
hass = [ hass = ps: with ps; [
]; # missing hass-client hass-client
];
hass_players = [ hass_players = [
]; ];
jellyfin = ps: with ps; [ jellyfin = ps: with ps; [

View File

@ -7,7 +7,7 @@
let let
bits = if stdenv.is64bit then "x64" else "ia32"; bits = if stdenv.is64bit then "x64" else "ia32";
version = "0.90.0"; version = "0.91.0";
in in
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "nwjs-ffmpeg-prebuilt"; pname = "nwjs-ffmpeg-prebuilt";
@ -16,8 +16,8 @@ stdenv.mkDerivation {
src = src =
let let
hashes = { hashes = {
"x64" = "sha256-AAKV896AuOm9dMV98tkEdHIpdUOSBx1QKyPR01VpqSw="; "x64" = "sha256-C6ZOY+oFyWYqLvpYmM9KnQ3B7y0JAXp4SbeNBYvcUe0=";
"ia32" = "sha256-AAKV896AuOm9dMV98tkEdHIpdUOSBx1QKyPR01VpqSw="; "ia32" = "sha256-C6ZOY+oFyWYqLvpYmM9KnQ3B7y0JAXp4SbeNBYvcUe0=";
}; };
in in
fetchurl { fetchurl {

View File

@ -1,7 +1,7 @@
{ {
lib, lib,
stdenv, stdenv,
fetchFromGitLab, fetchFromGitHub,
rustPlatform, rustPlatform,
asciidoctor, asciidoctor,
installShellFiles, installShellFiles,
@ -11,11 +11,11 @@ rustPlatform.buildRustPackage rec {
pname = "qrtool"; pname = "qrtool";
version = "0.11.4"; version = "0.11.4";
src = fetchFromGitLab { src = fetchFromGitHub {
owner = "sorairolake"; owner = "sorairolake";
repo = "qrtool"; repo = "qrtool";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-lD/xi2k5baZGUUixy/032jTBevr0uQIT/JmX+d+kPyA="; sha256 = "sha256-lD/xi2k5baZGUUixy/032jTBevr0uQIT/JmX+d+kPyA=";
}; };
cargoHash = "sha256-lR/LusIgdA+G7YeSLHjxdcC96tOSqSyalVamS42ORs0="; cargoHash = "sha256-lR/LusIgdA+G7YeSLHjxdcC96tOSqSyalVamS42ORs0=";

View File

@ -7,13 +7,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "quill-log"; pname = "quill-log";
version = "6.1.2"; version = "7.0.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "odygrd"; owner = "odygrd";
repo = "quill"; repo = "quill";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-hnSdyaVOPppa6KCgD6NoD4PKn0jI4iGGPg3Tnx0KX3w="; hash = "sha256-lNbr8oPyD/IOP+R2QKTYm9eF3jpYBCXeCtK25ibXtnM=";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];

View File

@ -5,16 +5,16 @@
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "srgn"; pname = "srgn";
version = "0.12.0"; version = "0.13.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "alexpovel"; owner = "alexpovel";
repo = "srgn"; repo = "srgn";
rev = "srgn-v${version}"; rev = "srgn-v${version}";
hash = "sha256-d53aSo1gzINC8WdMzjCHzU/8+9kvrrGglV4WsiCt+rM="; hash = "sha256-KG5y5V+IWIAlFULnJEomNF2Q/jyKHSSJ6o83J6vlP8w=";
}; };
cargoHash = "sha256-jy7KHcdkI+T8GbT6gH9ppJhQvhv/NPe+jRWKuybtQC4="; cargoHash = "sha256-Xxdsf2YaJ7IDccn6+fCoMZFXquY/4Ha+ymQSWLIhrWs=";
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];

View File

@ -111,7 +111,7 @@ in stdenv.mkDerivation (finalAttrs: {
}; };
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit (finalAttrs) patches src sourceRoot version; inherit (finalAttrs) patches src sourceRoot;
name = "${finalAttrs.pname}-${finalAttrs.version}"; name = "${finalAttrs.pname}-${finalAttrs.version}";
hash = "sha256-LtQS0kH+2P4odV7BJYiH6T51+iZHAM9W9mV96rNfNWs="; hash = "sha256-LtQS0kH+2P4odV7BJYiH6T51+iZHAM9W9mV96rNfNWs=";
}; };

View File

@ -19,11 +19,11 @@
, libGLU ? null , libGLU ? null
, wxGTK ? null , wxGTK ? null
, xorg ? null , xorg ? null
, exdoc ? null , ex_doc ? null
, parallelBuild ? false , parallelBuild ? false
, systemd , systemd
, wxSupport ? true , wxSupport ? true
, exdocSupport ? false , ex_docSupport ? false
, systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd # systemd support in epmd , systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd # systemd support in epmd
# updateScript deps # updateScript deps
, writeScript , writeScript
@ -64,7 +64,7 @@
, installPhase ? "" , installPhase ? ""
, preInstall ? "" , preInstall ? ""
, postInstall ? "" , postInstall ? ""
, installTargets ? [ "install" "install-docs" ] , installTargets ? if ((lib.versionOlder version "27.0") || ex_docSupport) then [ "install" "install-docs" ] else [ "install" ]
, checkPhase ? "" , checkPhase ? ""
, preCheck ? "" , preCheck ? ""
, postCheck ? "" , postCheck ? ""
@ -80,7 +80,7 @@ else libGL != null && libGLU != null && wxGTK != null && xorg != null);
assert odbcSupport -> unixODBC != null; assert odbcSupport -> unixODBC != null;
assert javacSupport -> openjdk11 != null; assert javacSupport -> openjdk11 != null;
assert exdocSupport -> exdoc != null; assert ex_docSupport -> ex_doc != null;
let let
inherit (lib) optional optionals optionalAttrs optionalString; inherit (lib) optional optionals optionalAttrs optionalString;
@ -122,15 +122,15 @@ stdenv.mkDerivation ({
''; '';
# For OTP 27+ we need ex_doc to build the documentation # For OTP 27+ we need ex_doc to build the documentation
# When exdocSupport is enabled, grab the raw ex_doc executable from the exdoc # When ex_docSupport is enabled, grab the raw ex_doc executable from the ex_doc
# derivation. Next, patch the first line to use the escript that will be # derivation. Next, patch the first line to use the escript that will be
# built during the build phase of this derivation. Finally, building the # built during the build phase of this derivation. Finally, building the
# documentation requires the erlang-logo.png asset. # documentation requires the erlang-logo.png asset.
preConfigure = '' preConfigure = ''
./otp_build autoconf ./otp_build autoconf
'' + optionalString exdocSupport '' '' + optionalString ex_docSupport ''
mkdir -p $out/bin mkdir -p $out/bin
cp ${exdoc}/bin/.ex_doc-wrapped $out/bin/ex_doc cp ${ex_doc}/bin/.ex_doc-wrapped $out/bin/ex_doc
sed -i "1 s:^.*$:#!$out/bin/escript:" $out/bin/ex_doc sed -i "1 s:^.*$:#!$out/bin/escript:" $out/bin/ex_doc
export EX_DOC=$out/bin/ex_doc export EX_DOC=$out/bin/ex_doc

View File

@ -33,7 +33,7 @@ stdenv.mkDerivation (finalAttrs: {
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit (finalAttrs) pname version src; inherit (finalAttrs) src;
hash = "sha256-33s62iOWYh1a8ETY/fbPRxvnj8dR4/UfG8mjFyWwz5k="; hash = "sha256-33s62iOWYh1a8ETY/fbPRxvnj8dR4/UfG8mjFyWwz5k=";
}; };

View File

@ -14,13 +14,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libzim"; pname = "libzim";
version = "9.2.2"; version = "9.2.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "openzim"; owner = "openzim";
repo = "libzim"; repo = "libzim";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-V81TzoYUFiI+07ooDQtG7ahxQFEh/6Y8IgoceHMSgOk="; hash = "sha256-z22+cDlFQtLMLFh5+7Nt9LsGFyBPi3HeZhYb0LK86Oc=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -1,6 +1,6 @@
{ callPackage }: { callPackage }:
callPackage ./generic.nix { callPackage ./generic.nix {
version = "2.28.8"; version = "2.28.9";
hash = "sha256-A1DYZrvJ8SRujroVwqPfcTOSgLnT5xRat/RVdq2fL/o="; hash = "sha256-/Bm05CvS9t7WSh4qoMconCaD7frlmA/H9YDyJOuGuFE=";
} }

View File

@ -1,18 +1,6 @@
{ callPackage { callPackage }:
, fetchpatch
}:
callPackage ./generic.nix { callPackage ./generic.nix {
version = "3.6.0"; version = "3.6.1";
hash = "sha256-tCwAKoTvY8VCjcTPNwS3DeitflhpKHLr6ygHZDbR6wQ="; hash = "sha256-SVWz2uOvGIplnBr4g6nwfxKMWVpzdZjusseAhw6GOJ8=";
patches = [
# https://github.com/Mbed-TLS/mbedtls/pull/9000
# Remove at next version update
(fetchpatch {
name = "fix-darwin-memcpy-error.patch";
url = "https://github.com/Mbed-TLS/mbedtls/commit/b32d7ae0fee2f906be59780b42a0cd4468a39bd1.patch";
hash = "sha256-BTkJs9NEkCl+/Q8EwB/LW9uwF95jQOKWmoCK4B/7/sU=";
})
];
} }

View File

@ -5,13 +5,13 @@
buildOctavePackage rec { buildOctavePackage rec {
pname = "fuzzy-logic-toolkit"; pname = "fuzzy-logic-toolkit";
version = "0.6.0"; version = "0.6.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lmarkowsky"; owner = "lmarkowsky";
repo = "fuzzy-logic-toolkit"; repo = "fuzzy-logic-toolkit";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
sha256 = "sha256-veU+3DPFJ2IeGw5PkpxGO8Oo9qEyR890hs4IAzbfxls="; sha256 = "sha256-lnYzX4rq3j7rrbD8m0EnrWpbMJD6tqtMVCYu4mlLFCM=";
}; };
meta = with lib; { meta = with lib; {

View File

@ -15,13 +15,13 @@
stdenvNoCC.mkDerivation (finalAttrs: { stdenvNoCC.mkDerivation (finalAttrs: {
pname = "composer"; pname = "composer";
version = "2.7.7"; version = "2.7.9";
# Hash used by ../../../build-support/php/pkgs/composer-phar.nix to # Hash used by ../../../build-support/php/pkgs/composer-phar.nix to
# use together with the version from this package to keep the # use together with the version from this package to keep the
# bootstrap phar file up-to-date together with the end user composer # bootstrap phar file up-to-date together with the end user composer
# package. # package.
passthru.pharHash = "sha256-qrlAzVPShaVMUEZYIKIID8txgqS6Hl95Wr+xBBSktL4="; passthru.pharHash = "sha256-tt5eZcGZ2AuhGJf74TZOBj6FjUg/aoGhdsTWDysdY0c=";
composer = callPackage ../../../build-support/php/pkgs/composer-phar.nix { composer = callPackage ../../../build-support/php/pkgs/composer-phar.nix {
inherit (finalAttrs) version; inherit (finalAttrs) version;
@ -32,7 +32,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
owner = "composer"; owner = "composer";
repo = "composer"; repo = "composer";
rev = finalAttrs.version; rev = finalAttrs.version;
hash = "sha256-N8el4oyz3ZGIXN2qmpf6Df0SIjuc1GjyuMuQCcR/xN4="; hash = "sha256-aVD3hB7a/Ji1sEsfo0EQ7SDBqjVg6+FRi1dpO94VtZs=";
}; };
nativeBuildInputs = [ makeBinaryWrapper ]; nativeBuildInputs = [ makeBinaryWrapper ];
@ -86,7 +86,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
outputHashMode = "recursive"; outputHashMode = "recursive";
outputHashAlgo = "sha256"; outputHashAlgo = "sha256";
outputHash = "sha256-AsuiTDXJs7jN4N/dJr10BT2PH0f6K2CWDvI8zQW5L9c="; outputHash = "sha256-iNx7AXNsfiDeEaGYKVi+kzzPpMeg+R18WYquful5E0o=";
}; };
installPhase = '' installPhase = ''

View File

@ -22,7 +22,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aioazuredevops"; pname = "aioazuredevops";
version = "2.2.0"; version = "2.2.1";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.12"; disabled = pythonOlder "3.12";
@ -31,7 +31,7 @@ buildPythonPackage rec {
owner = "timmo001"; owner = "timmo001";
repo = "aioazuredevops"; repo = "aioazuredevops";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-1v58I9WOyyrp9n+qdvVeMZ3EObqP/06XCOZYS0nEvPU="; hash = "sha256-RZBiFPzYtEoc51T3irVHL9xVlZgACyM2lu1TkMoatqU=";
}; };
postPatch = '' postPatch = ''
@ -58,6 +58,15 @@ buildPythonPackage rec {
syrupy syrupy
]; ];
disabledTests = [
# https://github.com/timmo001/aioazuredevops/issues/44
"test_get_project"
"test_get_builds"
"test_get_build"
];
pytestFlagsArray = [ "--snapshot-update" ];
pythonImportsCheck = [ "aioazuredevops" ]; pythonImportsCheck = [ "aioazuredevops" ];
meta = with lib; { meta = with lib; {

View File

@ -2,30 +2,49 @@
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
pythonOlder,
# build-system # build-system
setuptools, poetry-core,
# dependencies
mashumaro,
orjson,
# tests
pytestCheckHook,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiorussound"; pname = "aiorussound";
version = "2.3.2"; version = "3.0.5";
pyproject = true; pyproject = true;
# requires newer f-strings introduced in 3.12
disabled = pythonOlder "3.12";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "noahhusby"; owner = "noahhusby";
repo = "aiorussound"; repo = "aiorussound";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-lQDHwm6dpernRYktu6eqV8uP7FHHHAU28viLg0q58+8="; hash = "sha256-tv/Box8YqmFXvnezp44lKrPscK9K24+mXBv9aZw/3M4=";
}; };
build-system = [ setuptools ]; build-system = [ poetry-core ];
doCheck = false; # no tests dependencies = [
mashumaro
orjson
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "aiorussound" ]; pythonImportsCheck = [ "aiorussound" ];
meta = with lib; { meta = with lib; {
changelog = "https://github.com/noahhusby/aiorussound/releases/tag/${version}";
description = "Async python package for interfacing with Russound RIO hardware"; description = "Async python package for interfacing with Russound RIO hardware";
homepage = "https://github.com/noahhusby/aiorussound"; homepage = "https://github.com/noahhusby/aiorussound";
license = licenses.mit; license = licenses.mit;

View File

@ -21,14 +21,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "amaranth"; pname = "amaranth";
format = "pyproject"; format = "pyproject";
version = "0.5.1"; version = "0.5.2";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "amaranth-lang"; owner = "amaranth-lang";
repo = "amaranth"; repo = "amaranth";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-76wuxWz6RikFFJH+5kte57GcVhusJKtcMo5M/2U+Cl8="; hash = "sha256-pf9X1B60FgqTbSw7D80ERHp4GCvCe5lqrlS96xPXLNo=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -46,7 +46,7 @@ buildPythonPackage rec {
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
name = "datafusion-cargo-deps"; name = "datafusion-cargo-deps";
inherit src pname version; inherit src;
hash = "sha256-M2ZNAFWdsnN9C4+YbqFxZVH9fHR10Bimf1Xzrd9oy9E="; hash = "sha256-M2ZNAFWdsnN9C4+YbqFxZVH9fHR10Bimf1Xzrd9oy9E=";
}; };

View File

@ -6,62 +6,56 @@
fetchFromGitHub, fetchFromGitHub,
libopus, libopus,
pynacl, pynacl,
pythonOlder,
withVoice ? true, withVoice ? true,
ffmpeg, ffmpeg,
setuptools,
}: }:
buildPythonPackage rec { let
pname = "discord.py"; pname = "discord.py";
version = "2.4.0"; version = "2.4.0";
format = "setuptools"; in
buildPythonPackage {
disabled = pythonOlder "3.8"; inherit pname version;
pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Rapptz"; owner = "Rapptz";
repo = pname; repo = "discord.py";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-GIwXx7bRCH2+G3zlilJ/Tb8el50SDbxGGX2/1bqL3+U="; hash = "sha256-GIwXx7bRCH2+G3zlilJ/Tb8el50SDbxGGX2/1bqL3+U=";
}; };
propagatedBuildInputs = build-system = [ setuptools ];
[ aiohttp ]
++ lib.optionals withVoice [
libopus
pynacl
ffmpeg
];
patchPhase = dependencies = [ aiohttp ] ++ lib.optionals withVoice [ pynacl ];
''
substituteInPlace "discord/opus.py" \ patchPhase = lib.optionalString withVoice ''
--replace "ctypes.util.find_library('opus')" "'${libopus}/lib/libopus${stdenv.hostPlatform.extensions.sharedLibrary}'" substituteInPlace "discord/opus.py" \
'' --replace-fail "ctypes.util.find_library('opus')" "'${libopus}/lib/libopus${stdenv.hostPlatform.extensions.sharedLibrary}'"
+ lib.optionalString withVoice ''
substituteInPlace "discord/player.py" \ substituteInPlace "discord/player.py" \
--replace "executable='ffmpeg'" "executable='${ffmpeg}/bin/ffmpeg'" --replace-fail "executable: str = 'ffmpeg'" "executable: str = '${lib.getExe ffmpeg}'"
''; '';
# Only have integration tests with discord # Only have integration tests with discord
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [
"discord" "discord"
"discord.file" "discord.types"
"discord.member" "discord.ui"
"discord.user"
"discord.state"
"discord.guild"
"discord.webhook" "discord.webhook"
"discord.ext.commands.bot" "discord.app_commands"
"discord.ext.commands"
"discord.ext.tasks"
]; ];
meta = with lib; { meta = {
description = "Python wrapper for the Discord API"; description = "Python wrapper for the Discord API";
homepage = "https://discordpy.rtfd.org/"; homepage = "https://discordpy.rtfd.org/";
changelog = "https://github.com/Rapptz/discord.py/blob/v${version}/docs/whats_new.rst"; changelog = "https://github.com/Rapptz/discord.py/blob/v${version}/docs/whats_new.rst";
license = licenses.mit; license = lib.licenses.mit;
maintainers = [ ]; maintainers = with lib.maintainers; [ getpsyched ];
}; };
} }

View File

@ -0,0 +1,56 @@
{
aiodns,
aiohttp,
brotli,
buildPythonPackage,
faust-cchardet,
fetchFromGitHub,
lib,
orjson,
setuptools,
}:
buildPythonPackage rec {
pname = "hass-client";
version = "1.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "music-assistant";
repo = "python-hass-client";
rev = "refs/tags/${version}";
hash = "sha256-FA3acaXLWcBMDsabLPxVk6EArSxcTAnmFeO1ixTXB1Q=";
};
build-system = [
setuptools
];
dependencies = [
aiohttp
];
optional-dependencies = {
speedups = [
aiodns
brotli
faust-cchardet
orjson
];
};
pythonImportsCheck = [
"hass_client"
];
# upstream has no tests
doCheck = false;
meta = {
changelog = "https://github.com/music-assistant/python-hass-client/releases/tag/${version}";
description = "Basic client for connecting to Home Assistant over websockets and REST";
homepage = "https://github.com/music-assistant/python-hass-client";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View File

@ -2,44 +2,49 @@
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
# build-system
poetry-core, poetry-core,
pythonOlder,
# dependencies
aiohttp, aiohttp,
dataclasses-json, dataclasses-json,
langchain,
langchain-core, langchain-core,
langchain-standard-tests, langchain,
langsmith, langsmith,
httpx, pyyaml,
lark, requests,
sqlalchemy,
tenacity,
# optional-dependencies
typer,
numpy, numpy,
# tests
httpx,
langchain-standard-tests,
lark,
pandas, pandas,
pytest-asyncio, pytest-asyncio,
pytest-mock, pytest-mock,
pytestCheckHook, pytestCheckHook,
pyyaml,
requests,
requests-mock, requests-mock,
responses, responses,
sqlalchemy,
syrupy, syrupy,
tenacity,
toml, toml,
typer,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "langchain-community"; pname = "langchain-community";
version = "0.2.15"; version = "0.2.16";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "langchain-ai"; owner = "langchain-ai";
repo = "langchain"; repo = "langchain";
rev = "refs/tags/langchain-community==${version}"; rev = "refs/tags/langchain-community==${version}";
hash = "sha256-R1C+tEXCLqYHzQ2zrYaYa6cqJn/UWZEHBMC+WjbdQaQ="; hash = "sha256-0FKbx/ZPX7sioof5pMdqpnVWc46+eOiTIseyxwYK49E=";
}; };
sourceRoot = "${src.name}/libs/community"; sourceRoot = "${src.name}/libs/community";

View File

@ -3,38 +3,45 @@
stdenv, stdenv,
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
# build-system
poetry-core,
# dependencies
jsonpatch,
langsmith,
packaging,
pyyaml,
tenacity,
# optional-dependencies
pydantic,
# tests
freezegun, freezegun,
grandalf, grandalf,
httpx, httpx,
jsonpatch,
langsmith,
numpy, numpy,
packaging,
poetry-core,
pydantic,
pytest-asyncio, pytest-asyncio,
pytest-mock, pytest-mock,
pytest-xdist, pytest-xdist,
pytestCheckHook, pytestCheckHook,
pythonOlder,
pyyaml,
syrupy, syrupy,
tenacity,
# passthru
writeScript, writeScript,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "langchain-core"; pname = "langchain-core";
version = "0.2.37"; version = "0.2.38";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "langchain-ai"; owner = "langchain-ai";
repo = "langchain"; repo = "langchain";
rev = "refs/tags/langchain-core==${version}"; rev = "refs/tags/langchain-core==${version}";
hash = "sha256-An2ApN0pgCrQjqu9XPFfPyPvWx0+6JnUkGPrcD0/3kg="; hash = "sha256-3nRirzQe5KCVoeJ29fYelYuOD6r4adJof4NXreyfrzY=";
}; };
sourceRoot = "${src.name}/libs/core"; sourceRoot = "${src.name}/libs/core";

View File

@ -2,25 +2,28 @@
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
# build-system
poetry-core, poetry-core,
# dependencies
langchain-core, langchain-core,
# tests
pytest-asyncio, pytest-asyncio,
pytestCheckHook, pytestCheckHook,
pythonOlder,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "langchain-text-splitters"; pname = "langchain-text-splitters";
version = "0.2.2"; version = "0.2.4";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "langchain-ai"; owner = "langchain-ai";
repo = "langchain"; repo = "langchain";
rev = "refs/tags/langchain-text-splitters==${version}"; rev = "refs/tags/langchain-text-splitters==${version}";
hash = "sha256-SixF3ZkN+gjQ4KYLhGoezdQAOQ1AlGEC6IBzHePF6/o="; hash = "sha256-8n5eImRXOG/3tN/59Gd2/GpoGpt7P2ABj0T4pJi6xrk=";
}; };
sourceRoot = "${src.name}/libs/text-splitters"; sourceRoot = "${src.name}/libs/text-splitters";

View File

@ -1,46 +1,54 @@
{ {
lib, lib,
aiohttp,
async-timeout,
bash,
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
freezegun, pythonOlder,
# build-system
poetry-core,
# buildInputs
bash,
# dependencies
aiohttp,
langchain-core, langchain-core,
langchain-text-splitters, langchain-text-splitters,
langsmith, langsmith,
lark,
numpy,
pandas,
poetry-core,
pydantic, pydantic,
pyyaml,
requests,
sqlalchemy,
tenacity,
async-timeout,
# optional-dependencies
numpy,
# tests
freezegun,
lark,
pandas,
pytest-asyncio, pytest-asyncio,
pytest-mock, pytest-mock,
pytest-socket, pytest-socket,
pytestCheckHook, pytestCheckHook,
pythonOlder,
pyyaml,
requests-mock, requests-mock,
requests,
responses, responses,
sqlalchemy,
syrupy, syrupy,
tenacity,
toml, toml,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "langchain"; pname = "langchain";
version = "0.2.15"; version = "0.2.16";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "langchain-ai"; owner = "langchain-ai";
repo = "langchain"; repo = "langchain";
rev = "refs/tags/langchain==${version}"; rev = "refs/tags/langchain==${version}";
hash = "sha256-8F6ntFstCTQjQNbE9oiYbpZ7kZ1grcnV3FHAfhFnAzA="; hash = "sha256-8n5eImRXOG/3tN/59Gd2/GpoGpt7P2ABj0T4pJi6xrk=";
}; };
sourceRoot = "${src.name}/libs/langchain"; sourceRoot = "${src.name}/libs/langchain";

View File

@ -2,26 +2,29 @@
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
# build-system
poetry-core,
# dependencies
httpx, httpx,
httpx-sse, httpx-sse,
orjson, orjson,
poetry-core,
pythonOlder, # passthru
writeScript, writeScript,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "langgraph-sdk"; pname = "langgraph-sdk";
version = "0.1.26"; version = "0.1.30";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "langchain-ai"; owner = "langchain-ai";
repo = "langgraph"; repo = "langgraph";
rev = "refs/tags/sdk==${version}"; rev = "refs/tags/sdk==${version}";
hash = "sha256-o7JrB2WSWfPm927tDRMcjzx+6Io6Q+Yjp4XPVs2+F4o="; hash = "sha256-gI12XuxFplqIKVlVjeO60YxT7WG/SSsZ0aWfjg5bHIs=";
}; };
sourceRoot = "${src.name}/libs/sdk-py"; sourceRoot = "${src.name}/libs/sdk-py";

View File

@ -1,43 +1,48 @@
{ {
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
# dependencies
langchain-core,
langgraph-checkpoint,
# tests
aiosqlite, aiosqlite,
dataclasses-json, dataclasses-json,
fetchFromGitHub,
grandalf, grandalf,
httpx, httpx,
langchain-core,
langgraph-sdk,
langgraph-checkpoint,
langgraph-checkpoint-postgres, langgraph-checkpoint-postgres,
langgraph-checkpoint-sqlite, langgraph-checkpoint-sqlite,
psycopg,
langsmith, langsmith,
poetry-core, psycopg,
pydantic, pydantic,
pytest-asyncio, pytest-asyncio,
pytest-mock, pytest-mock,
pytest-repeat, pytest-repeat,
pytest-xdist, pytest-xdist,
pytestCheckHook, pytestCheckHook,
pythonOlder,
syrupy, syrupy,
postgresql, postgresql,
postgresqlTestHook, postgresqlTestHook,
# passthru
langgraph-sdk,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "langgraph"; pname = "langgraph";
version = "0.2.4"; version = "0.2.19";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "langchain-ai"; owner = "langchain-ai";
repo = "langgraph"; repo = "langgraph";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-jUBaWXrHCXAph8EGEJnH7lbKIyjQ8oPt4eDMyIkbURo="; hash = "sha256-qJIZAHftIKyWK0A/MjilalmmB8b8E7JtLnFn156hE08=";
}; };
postgresqlTestSetupPost = '' postgresqlTestSetupPost = ''
@ -65,6 +70,7 @@ buildPythonPackage rec {
langgraph-checkpoint-sqlite langgraph-checkpoint-sqlite
langsmith langsmith
psycopg psycopg
psycopg.pool
pydantic pydantic
pytest-asyncio pytest-asyncio
pytest-mock pytest-mock
@ -93,6 +99,12 @@ buildPythonPackage rec {
"test_remove_message_via_state_update" "test_remove_message_via_state_update"
]; ];
disabledTestPaths = [
# psycopg.errors.InsufficientPrivilege: permission denied to create database
"tests/test_pregel_async.py"
"tests/test_pregel.py"
];
passthru = { passthru = {
updateScript = langgraph-sdk.updateScript; updateScript = langgraph-sdk.updateScript;
}; };

View File

@ -24,14 +24,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "marimo"; pname = "marimo";
version = "0.8.7"; version = "0.8.11";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-gxfb5MYPbl8KnvIL+93CyYLOaJ6UflqaikXLAWCS55g="; hash = "sha256-JHlzyQS7zleHUF6NW8oQ2fULdGuI+Y+vuWfiUO/YCm8=";
}; };
build-system = [ setuptools ]; build-system = [ setuptools ];

View File

@ -21,7 +21,7 @@ buildPythonPackage rec {
}; };
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit pname version src; inherit src;
hash = "sha256-KrEBr998AV/bKcIoq0tX72/QwPD9bQplrS0Zw+JiSMQ="; hash = "sha256-KrEBr998AV/bKcIoq0tX72/QwPD9bQplrS0Zw+JiSMQ=";
}; };

View File

@ -12,7 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pulumi-aws"; pname = "pulumi-aws";
# Version is independant of pulumi's. # Version is independant of pulumi's.
version = "6.49.1"; version = "6.50.1";
pyproject = true; pyproject = true;
build-system = [ setuptools ]; build-system = [ setuptools ];
@ -23,7 +23,7 @@ buildPythonPackage rec {
owner = "pulumi"; owner = "pulumi";
repo = "pulumi-aws"; repo = "pulumi-aws";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-THgLOVCr+LWNO1SCGUrh8L/I75d2RSNw84FcovCSsBM="; hash = "sha256-n+uqEgo71wdfZT1Pu+I8gckAebrTPUd8qNmzFcG6xHY=";
}; };
sourceRoot = "${src.name}/sdk/python"; sourceRoot = "${src.name}/sdk/python";

View File

@ -1,24 +1,39 @@
{ {
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchPypi, fetchFromGitHub,
setuptools,
cffi, cffi,
libheif, libheif,
piexif,
pillow,
pytestCheckHook,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyheif"; pname = "pyheif";
version = "0.7.1"; version = "0.8.0";
format = "setuptools"; pyproject = true;
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "carsales";
hash = "sha256-hqXFF0N51xRrXtGmiJL69yaKE1+39QOaARv7em6QMgA="; repo = "pyheif";
rev = "refs/tags/release-${version}";
hash = "sha256-7De8ekDceSkUcOgK7ppKad5W5qE0yxdS4kbgYVjxTGg=";
}; };
propagatedBuildInputs = [ build-system = [ setuptools ];
cffi
libheif buildInputs = [ libheif ];
dependencies = [ cffi ];
pythonImportsCheck = [ "pyheif" ];
nativeCheckInputs = [
piexif
pillow
pytestCheckHook
]; ];
meta = with lib; { meta = with lib; {

View File

@ -12,7 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pypck"; pname = "pypck";
version = "0.7.21"; version = "0.7.22";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "alengwenus"; owner = "alengwenus";
repo = "pypck"; repo = "pypck";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-6Ng+Jw5ZDtkKOftFVhy1uOjzcmeKI5VqWzPn3EkKfGI="; hash = "sha256-rtlcsmjvhC232yjt258ne51tL//eKsCKYYc/yHG7HUU=";
}; };
postPatch = '' postPatch = ''

View File

@ -26,14 +26,14 @@ let
in in
buildPythonPackage rec { buildPythonPackage rec {
pname = "raylib-python-cffi"; pname = "raylib-python-cffi";
version = "5.0.0.2"; version = "5.0.0.3";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "electronstudio"; owner = "electronstudio";
repo = "raylib-python-cffi"; repo = "raylib-python-cffi";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-DlnZRJZ0ZnkLii09grA/lGsJHPUYrbaJ55BVWJ8JzfM="; hash = "sha256-R/w39zYkoOF5JqHDyqVIdON9yXFo2PeosyEQZOd4aYo=";
}; };
build-system = [ setuptools ]; build-system = [ setuptools ];

View File

@ -15,16 +15,16 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "sfrbox-api"; pname = "sfrbox-api";
version = "0.0.9"; version = "0.0.10";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hacf-fr"; owner = "hacf-fr";
repo = "sfrbox-api"; repo = "sfrbox-api";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-rMfX9vA8IuWxXvVs4WYNHO6neeoie/3gABwhXyJoAF8="; hash = "sha256-xvtusgqCseXAmiPQBFFZnRS9KmuhzHhZUAj5aaqyFrE=";
}; };
pythonRelaxDeps = [ pythonRelaxDeps = [
@ -32,9 +32,9 @@ buildPythonPackage rec {
"pydantic" "pydantic"
]; ];
nativeBuildInputs = [ poetry-core ]; build-system = [ poetry-core ];
propagatedBuildInputs = [ dependencies = [
defusedxml defusedxml
httpx httpx
pydantic pydantic
@ -54,10 +54,10 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Module for the SFR Box API"; description = "Module for the SFR Box API";
mainProgram = "sfrbox-api";
homepage = "https://github.com/hacf-fr/sfrbox-api"; homepage = "https://github.com/hacf-fr/sfrbox-api";
changelog = "https://github.com/hacf-fr/sfrbox-api/releases/tag/v${version}"; changelog = "https://github.com/hacf-fr/sfrbox-api/releases/tag/v${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
mainProgram = "sfrbox-api";
}; };
} }

View File

@ -12,7 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "sphinxcontrib-confluencebuilder"; pname = "sphinxcontrib-confluencebuilder";
version = "2.6.1"; version = "2.7.1";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -20,7 +20,7 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
pname = "sphinxcontrib_confluencebuilder"; pname = "sphinxcontrib_confluencebuilder";
inherit version; inherit version;
hash = "sha256-9ymYfxL50ZDGlLzo2LXiBnuo2svWxnl37H/c6ENACjA="; hash = "sha256-Tj9m0TcPkg+FIWwYixahpox27Yn+0tXPppwb5EwmBk0=";
}; };
build-system = [ flit-core ]; build-system = [ flit-core ];

View File

@ -11,14 +11,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "trimesh"; pname = "trimesh";
version = "4.4.7"; version = "4.4.9";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-5mGccMmQBtQfF1vV4bosjD39sAwrQdZQWZF5QuL2lxo="; hash = "sha256-6fVMtO9w+dtJRGytOEW3qAQ/x9YtkZKyQXQfP7DYE6w=";
}; };
build-system = [ setuptools ]; build-system = [ setuptools ];

View File

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "esbuild"; pname = "esbuild";
version = "0.23.0"; version = "0.23.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "evanw"; owner = "evanw";
repo = "esbuild"; repo = "esbuild";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-AH4Y5ELPicAdJZY5CBf2byOxTzOyQFRh4XoqRUQiAQw="; hash = "sha256-2E5FkUnU/8tf+eDd+KIEcc0HlnpYYn5QMPq/w2sa914=";
}; };
vendorHash = "sha256-+BfxCyg0KkDQpHt/wycy/8CTG6YBA/VJvJFhhzUnSiQ="; vendorHash = "sha256-+BfxCyg0KkDQpHt/wycy/8CTG6YBA/VJvJFhhzUnSiQ=";

View File

@ -8,13 +8,13 @@
buildGoModule rec { buildGoModule rec {
pname = "helm-ls"; pname = "helm-ls";
version = "0.0.22"; version = "0.1.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mrjosh"; owner = "mrjosh";
repo = "helm-ls"; repo = "helm-ls";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-h3ppVj+Y1jtvsZLWzZxmFmmxr0My9Nd4zQBqeDSX0ZI="; hash = "sha256-EuZbbeRssacrctIbxBbd2GOh8zgFi2OBRregfC88se0=";
}; };
vendorHash = "sha256-AWKCE2BZGVYcr6Pe8URQo11Xnr3sfgWWkm9v7vvILOo="; vendorHash = "sha256-AWKCE2BZGVYcr6Pe8URQo11Xnr3sfgWWkm9v7vvILOo=";

View File

@ -8,16 +8,16 @@
}: }:
buildGoModule rec { buildGoModule rec {
pname = "turso-cli"; pname = "turso-cli";
version = "0.97.0"; version = "0.97.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tursodatabase"; owner = "tursodatabase";
repo = "turso-cli"; repo = "turso-cli";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-m/0LfUs9oMWSjRPkVSPyHsFw8U1Fk2SXjqfOrLYsZlI="; hash = "sha256-sS9H9mdbjV2EEsMKikQKND+gPeghH5cqRxhHcbjr7ok=";
}; };
vendorHash = "sha256-c8dX60GPZSNMoCaF51jLWJK+aNDmw6TdzlBYS+vSuEY="; vendorHash = "sha256-tBO21IgUczwMgrEyV7scV3YTY898lYHASaLeXqvBopU=";
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];

View File

@ -15,14 +15,14 @@
buildPythonApplication rec { buildPythonApplication rec {
pname = "nile"; pname = "nile";
version = "1.1.1-unstable-2024-08-07"; version = "1.1.1-unstable-2024-09-05";
format = "pyproject"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "imLinguin"; owner = "imLinguin";
repo = "nile"; repo = "nile";
rev = "9ce614f82a550a714ae55c4365658dba7bb1bb15"; rev = "aefa5dd9c3a5146669da22317c8e0e3c12665f64";
hash = "sha256-7EzU8aUYiYe1eXFs6nE1qchlMzIKh2U09uIGmiN32xM="; hash = "sha256-wZdiUJH4sGYJqJ7Ssjl+30MiUbXupLzbSpiOU1M/3Fg=";
}; };
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";

View File

@ -182,10 +182,11 @@ let
# Remove tests because they add a runtime dependency on gcc # Remove tests because they add a runtime dependency on gcc
rm -rf $out/share/zfs/zfs-tests rm -rf $out/share/zfs/zfs-tests
# Add Bash completions. ${optionalString (lib.versionOlder version "2.2") ''
install -v -m444 -D -t $out/share/bash-completion/completions contrib/bash_completion.d/zfs # Add Bash completions.
'' + optionalString (lib.versionOlder version "2.2.6") '' install -v -m444 -D -t $out/share/bash-completion/completions contrib/bash_completion.d/zfs
(cd $out/share/bash-completion/completions; ln -s zfs zpool) (cd $out/share/bash-completion/completions; ln -s zfs zpool)
''}
''; '';
postFixup = let postFixup = let

View File

@ -2,7 +2,7 @@
# Do not edit! # Do not edit!
{ {
version = "2024.9.0"; version = "2024.9.1";
components = { components = {
"3_day_blinds" = ps: with ps; [ "3_day_blinds" = ps: with ps; [
]; ];

View File

@ -414,7 +414,7 @@ let
extraBuildInputs = extraPackages python.pkgs; extraBuildInputs = extraPackages python.pkgs;
# Don't forget to run update-component-packages.py after updating # Don't forget to run update-component-packages.py after updating
hassVersion = "2024.9.0"; hassVersion = "2024.9.1";
in python.pkgs.buildPythonApplication rec { in python.pkgs.buildPythonApplication rec {
pname = "homeassistant"; pname = "homeassistant";
@ -432,13 +432,13 @@ in python.pkgs.buildPythonApplication rec {
owner = "home-assistant"; owner = "home-assistant";
repo = "core"; repo = "core";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-tzEiT+1NvwmH/j1FnmUcanwjSGS8+M/FJ2wZY7qAdYk="; hash = "sha256-jwkLlmwP9rxwGFVagVyVrO6scOMzuva1Pz706nb3Ato=";
}; };
# Secondary source is pypi sdist for translations # Secondary source is pypi sdist for translations
sdist = fetchPypi { sdist = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-KTseRVRn3O75Sjot4f7fgKioKKEY33eXHcFufsPKLak="; hash = "sha256-0+tXKnkcpjISqapvFh7nPKfPxJrSACuxulejk4pCPUQ=";
}; };
build-system = with python.pkgs; [ build-system = with python.pkgs; [

View File

@ -4,7 +4,7 @@ buildPythonPackage rec {
# the frontend version corresponding to a specific home-assistant version can be found here # the frontend version corresponding to a specific home-assistant version can be found here
# https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/frontend/manifest.json # https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/frontend/manifest.json
pname = "home-assistant-frontend"; pname = "home-assistant-frontend";
version = "20240904.0"; version = "20240906.0";
format = "wheel"; format = "wheel";
src = fetchPypi { src = fetchPypi {
@ -12,7 +12,7 @@ buildPythonPackage rec {
pname = "home_assistant_frontend"; pname = "home_assistant_frontend";
dist = "py3"; dist = "py3";
python = "py3"; python = "py3";
hash = "sha256-UauRL6AbyQgk7av1AuE49nlWEkuRRQxQykFHeo3ZpGU="; hash = "sha256-iWSpwgp5mdAhuZgF+1uNL0aovjM7CZ4SbM0HHQktfAk=";
}; };
# there is nothing to strip in this package # there is nothing to strip in this package

View File

@ -8,7 +8,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "homeassistant-stubs"; pname = "homeassistant-stubs";
version = "2024.9.0"; version = "2024.9.1";
pyproject = true; pyproject = true;
disabled = python.version != home-assistant.python.version; disabled = python.version != home-assistant.python.version;
@ -17,7 +17,7 @@ buildPythonPackage rec {
owner = "KapJI"; owner = "KapJI";
repo = "homeassistant-stubs"; repo = "homeassistant-stubs";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-8t8r0CjiMvu73A+NtwF6/KMm+LkvMc/k4d1YPgWzWt8="; hash = "sha256-snYfeMKZhQWJx3hi7cvY9tswmPxmtiPHz4S8IM31DvU=";
}; };
build-system = [ build-system = [

File diff suppressed because it is too large Load Diff

View File

@ -1,22 +1,21 @@
{ wasm-bindgen-cli, ... }@args: { wasm-bindgen-cli, ... }@args:
import ../generic.nix (args // { import ../generic.nix (args // {
version = "16.1.4"; version = "16.2.0";
hash = "sha256-WgMQzS7nwIwPojcf9HTLajLd0WV+RYEbyp/aWr9XFWc="; hash = "sha256-3LLoO7SNJfEfDEU7JnAhmAOIdRO+TkgiJKjT8sqzelo=";
vendorHash = "sha256-8WN4hVueA2o2bHhhxLGPYxPX+1qky8QHGTRqhEGNh9s="; vendorHash = "sha256-iyYfht0aB9Vv2hsaqrieFHXbDhlotKQYfLn4JFqpve8=";
pnpmHash = "sha256-phDrOSFQsgA+I4PDK9LJasUBXBO8EkVtQIMx9M4v8u0="; pnpmHash = "sha256-phDrOSFQsgA+I4PDK9LJasUBXBO8EkVtQIMx9M4v8u0=";
cargoLock = { cargoLock = {
lockFile = ./Cargo.lock; lockFile = ./Cargo.lock;
outputHashes = { outputHashes = {
"boring-4.7.0" = "sha256-ACzw4Bfo6OUrwvi3h21tvx5CpdQaWCEIDkslzjzy9o8="; "boring-4.7.0" = "sha256-ACzw4Bfo6OUrwvi3h21tvx5CpdQaWCEIDkslzjzy9o8=";
"ironrdp-async-0.1.0" = "sha256-nE5O/wRJ3vJqJG5zdYmpVkhx6JC6Yb92pR4EKSWSdkA="; "ironrdp-async-0.1.0" = "sha256-DOwDHavDaEda+JK9M6kbvseoXe2LxJg3MLTY/Nu+PN0=";
"sspi-0.10.1" = "sha256-fkclC/plTh2d8zcmqthYmr5yXqbPTeFxI1VuaPX5vxk="; };
};
}; };
# wasm-bindgen-cli version must match the version of wasm-bindgen in Cargo.lock # wasm-bindgen-cli version must match the version of wasm-bindgen in Cargo.lock
wasm-bindgen-cli = wasm-bindgen-cli.override { wasm-bindgen-cli = wasm-bindgen-cli.override {
version = "0.2.92"; version = "0.2.93";
hash = "sha256-1VwY8vQy7soKEgbki4LD+v259751kKxSxmo/gqE6yV0="; hash = "sha256-DDdu5mM3gneraM85pAepBXWn3TMofarVR4NbjMdz3r0=";
cargoHash = "sha256-aACJ+lYNEU8FFBs158G1/JG8sc6Rq080PeKCMnwdpH0="; cargoHash = "sha256-birrg+XABBHHKJxfTKAMSlmTVYLmnmqMDfRnmG6g/YQ=";
}; };
}) })

View File

@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
}; };
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit pname version src; inherit src;
hash = "sha256-1KzOKo5Q1uBqO3aCBYUJJxla4873AzrwoFPaNpKKFJU="; hash = "sha256-1KzOKo5Q1uBqO3aCBYUJJxla4873AzrwoFPaNpKKFJU=";
}; };

View File

@ -5,14 +5,14 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "pulldown-cmark"; pname = "pulldown-cmark";
version = "0.12.0"; version = "0.12.1";
src = fetchCrate { src = fetchCrate {
inherit pname version; inherit pname version;
hash = "sha256-LBaWfcTA5qxhrEUG0FeusGZBgvRjuQS0/1pqeKQQWbk="; hash = "sha256-PfkmzmK98Mzay6P48NTEJhtpuoCiTb3JqUIYObcS41k=";
}; };
cargoHash = "sha256-UPv7F/itmISaUikR6jdAj3FvTF56VqwdMvD3L3WruA4="; cargoHash = "sha256-BhlKFisM1ho7xcwBnjtODQdacE/B9UoqYXj3dIAeTXE=";
meta = { meta = {
description = "Pull parser for CommonMark written in Rust"; description = "Pull parser for CommonMark written in Rust";

View File

@ -16517,6 +16517,12 @@ with pkgs;
wxSupport = false; wxSupport = false;
systemdSupport = false; systemdSupport = false;
}; };
beam_nodocs = callPackage ./beam-packages.nix {
beam = beam_nodocs;
wxSupport = false;
systemdSupport = false;
ex_docSupport = false;
};
inherit (beam.interpreters) inherit (beam.interpreters)
erlang erlang_27 erlang_26 erlang_25 erlang_24 erlang erlang_27 erlang_26 erlang_25 erlang_24

View File

@ -1,9 +1,11 @@
{ lib { lib
, beam , beam
, beam_nodocs
, callPackage , callPackage
, wxGTK32 , wxGTK32
, buildPackages , buildPackages
, stdenv , stdenv
, ex_docSupport ? true
, wxSupport ? true , wxSupport ? true
, systemd , systemd
, systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd , systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd
@ -30,9 +32,8 @@ in
wxGTK = wxGTK32; wxGTK = wxGTK32;
parallelBuild = true; parallelBuild = true;
autoconf = buildPackages.autoconf269; autoconf = buildPackages.autoconf269;
exdocSupport = true; inherit (beam_nodocs.packages.erlang_27) ex_doc;
exdoc = self.packages.erlang_26.ex_doc; inherit ex_docSupport wxSupport systemdSupport;
inherit wxSupport systemdSupport;
}; };
erlang_26 = self.beamLib.callErlang ../development/interpreters/erlang/26.nix { erlang_26 = self.beamLib.callErlang ../development/interpreters/erlang/26.nix {

View File

@ -5523,6 +5523,8 @@ self: super: with self; {
hap-python = callPackage ../development/python-modules/hap-python { }; hap-python = callPackage ../development/python-modules/hap-python { };
hass-client = callPackage ../development/python-modules/hass-client { };
hass-nabucasa = callPackage ../development/python-modules/hass-nabucasa { }; hass-nabucasa = callPackage ../development/python-modules/hass-nabucasa { };
hass-splunk = callPackage ../development/python-modules/hass-splunk { }; hass-splunk = callPackage ../development/python-modules/hass-splunk { };