Merge staging-next into staging
This commit is contained in:
+1
-1
@@ -321,7 +321,7 @@ All the review template samples provided in this section are generic and meant a
|
||||
|
||||
To get more information about how to review specific parts of Nixpkgs, refer to the documents linked to in the [overview section][overview].
|
||||
|
||||
If a pull request contains documentation changes that might require feedback from the documentation team, ping [@NixOS/documentation-reviewers](https://github.com/orgs/nixos/teams/documentation-reviewers) on the pull request.
|
||||
If a pull request contains documentation changes that might require feedback from the documentation team, ping [@NixOS/documentation-team](https://github.com/orgs/nixos/teams/documentation-team) on the pull request.
|
||||
|
||||
If you consider having enough knowledge and experience in a topic and would like to be a long-term reviewer for related submissions, please contact the current reviewers for that topic. They will give you information about the reviewing process. The main reviewers for a topic can be hard to find as there is no list, but checking past pull requests to see who reviewed or git-blaming the code to see who committed to that topic can give some hints.
|
||||
|
||||
|
||||
+1
-1
@@ -345,4 +345,4 @@ Typographic replacements are enabled. Check the [list of possible replacement pa
|
||||
|
||||
## Getting help
|
||||
|
||||
If you need documentation-specific help or reviews, ping [@NixOS/documentation-reviewers](https://github.com/orgs/nixos/teams/documentation-reviewers) on your pull request.
|
||||
If you need documentation-specific help or reviews, ping [@NixOS/documentation-team](https://github.com/orgs/nixos/teams/documentation-team) on your pull request.
|
||||
|
||||
@@ -263,6 +263,9 @@ with lib.maintainers; {
|
||||
|
||||
docs = {
|
||||
members = [ ];
|
||||
githubTeams = [
|
||||
"documentation-team"
|
||||
];
|
||||
scope = "Maintain nixpkgs/NixOS documentation and tools for building it.";
|
||||
shortName = "Docs";
|
||||
enableFeatureFreezePing = true;
|
||||
|
||||
@@ -42,9 +42,11 @@ The first steps to all these are the same:
|
||||
will be safer to use the `nixos-*` channels instead:
|
||||
|
||||
```ShellSession
|
||||
$ nix-channel --add https://nixos.org/channels/nixos-version nixpkgs
|
||||
$ nix-channel --add https://nixos.org/channels/nixos-<version> nixpkgs
|
||||
```
|
||||
|
||||
Where `<version>` corresponds to the latest version available on [channels.nixos.org](https://channels.nixos.org/).
|
||||
|
||||
You may want to throw in a `nix-channel --update` for good measure.
|
||||
|
||||
1. Install the NixOS installation tools:
|
||||
|
||||
@@ -33,13 +33,24 @@ let
|
||||
}
|
||||
trap on_exit EXIT
|
||||
|
||||
borgWrapper () {
|
||||
local result
|
||||
borg "$@" && result=$? || result=$?
|
||||
if [[ -z "${toString cfg.failOnWarnings}" ]] && [[ "$result" == 1 ]]; then
|
||||
echo "ignoring warning return value 1"
|
||||
return 0
|
||||
else
|
||||
return "$result"
|
||||
fi
|
||||
}
|
||||
|
||||
archiveName="${optionalString (cfg.archiveBaseName != null) (cfg.archiveBaseName + "-")}$(date ${cfg.dateFormat})"
|
||||
archiveSuffix="${optionalString cfg.appendFailedSuffix ".failed"}"
|
||||
${cfg.preHook}
|
||||
'' + optionalString cfg.doInit ''
|
||||
# Run borg init if the repo doesn't exist yet
|
||||
if ! borg list $extraArgs > /dev/null; then
|
||||
borg init $extraArgs \
|
||||
if ! borgWrapper list $extraArgs > /dev/null; then
|
||||
borgWrapper init $extraArgs \
|
||||
--encryption ${cfg.encryption.mode} \
|
||||
$extraInitArgs
|
||||
${cfg.postInit}
|
||||
@@ -48,7 +59,7 @@ let
|
||||
(
|
||||
set -o pipefail
|
||||
${optionalString (cfg.dumpCommand != null) ''${escapeShellArg cfg.dumpCommand} | \''}
|
||||
borg create $extraArgs \
|
||||
borgWrapper create $extraArgs \
|
||||
--compression ${cfg.compression} \
|
||||
--exclude-from ${mkExcludeFile cfg} \
|
||||
--patterns-from ${mkPatternsFile cfg} \
|
||||
@@ -57,16 +68,16 @@ let
|
||||
${if cfg.paths == null then "-" else escapeShellArgs cfg.paths}
|
||||
)
|
||||
'' + optionalString cfg.appendFailedSuffix ''
|
||||
borg rename $extraArgs \
|
||||
borgWrapper rename $extraArgs \
|
||||
"::$archiveName$archiveSuffix" "$archiveName"
|
||||
'' + ''
|
||||
${cfg.postCreate}
|
||||
'' + optionalString (cfg.prune.keep != { }) ''
|
||||
borg prune $extraArgs \
|
||||
borgWrapper prune $extraArgs \
|
||||
${mkKeepArgs cfg} \
|
||||
${optionalString (cfg.prune.prefix != null) "--glob-archives ${escapeShellArg "${cfg.prune.prefix}*"}"} \
|
||||
$extraPruneArgs
|
||||
borg compact $extraArgs $extraCompactArgs
|
||||
borgWrapper compact $extraArgs $extraCompactArgs
|
||||
${cfg.postPrune}
|
||||
'');
|
||||
|
||||
@@ -488,6 +499,15 @@ in {
|
||||
default = true;
|
||||
};
|
||||
|
||||
failOnWarnings = mkOption {
|
||||
type = types.bool;
|
||||
description = ''
|
||||
Fail the whole backup job if any borg command returns a warning
|
||||
(exit code 1), for example because a file changed during backup.
|
||||
'';
|
||||
default = true;
|
||||
};
|
||||
|
||||
doInit = mkOption {
|
||||
type = types.bool;
|
||||
description = ''
|
||||
|
||||
@@ -66,7 +66,7 @@ let
|
||||
'';
|
||||
|
||||
};
|
||||
applicablePostgresqlVersions = filterAttrs (_: value: versionAtLeast value.version "12") postgresql-versions;
|
||||
applicablePostgresqlVersions = filterAttrs (_: value: versionAtLeast value.version "14") postgresql-versions;
|
||||
in
|
||||
mapAttrs'
|
||||
(name: package: {
|
||||
|
||||
@@ -4,21 +4,21 @@ import ./make-test-python.nix ({ lib, pkgs, ... }: {
|
||||
nodes.machine = { pkgs, ... }: {
|
||||
testing.initrdBackdoor = true;
|
||||
boot.initrd.systemd.enable = true;
|
||||
boot.initrd.kernelModules = [ "loop" ]; # Load module in initrd.
|
||||
boot.initrd.kernelModules = [ "tcp_hybla" ]; # Load module in initrd.
|
||||
boot.extraModprobeConfig = ''
|
||||
options loop max_loop=42
|
||||
options tcp_hybla rtt0=42
|
||||
'';
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
machine.wait_for_unit("initrd.target")
|
||||
max_loop = machine.succeed("cat /sys/module/loop/parameters/max_loop")
|
||||
assert int(max_loop) == 42, "Parameter should be respected for initrd kernel modules"
|
||||
rtt = machine.succeed("cat /sys/module/tcp_hybla/parameters/rtt0")
|
||||
assert int(rtt) == 42, "Parameter should be respected for initrd kernel modules"
|
||||
|
||||
# Make sure it sticks in stage 2
|
||||
machine.switch_root()
|
||||
machine.wait_for_unit("multi-user.target")
|
||||
max_loop = machine.succeed("cat /sys/module/loop/parameters/max_loop")
|
||||
assert int(max_loop) == 42, "Parameter should be respected for initrd kernel modules"
|
||||
rtt = machine.succeed("cat /sys/module/tcp_hybla/parameters/rtt0")
|
||||
assert int(rtt) == 42, "Parameter should be respected for initrd kernel modules"
|
||||
'';
|
||||
})
|
||||
|
||||
@@ -21,8 +21,8 @@ vscode-utils.buildVscodeMarketplaceExtension rec {
|
||||
mktplcRef = {
|
||||
name = "python";
|
||||
publisher = "ms-python";
|
||||
version = "2023.1.10091012";
|
||||
hash = "sha256-JosFv6ngJmw1XRILwTZMVxlGIdWFLFQjj4olfnVwAIM=";
|
||||
version = "2024.5.11021008";
|
||||
hash = "sha256-UnI0leRKqCtFLBdGS/UvLuCcxQhibyY0ChmzQ9uytoY=";
|
||||
};
|
||||
|
||||
buildInputs = [ icu ];
|
||||
@@ -37,11 +37,11 @@ vscode-utils.buildVscodeMarketplaceExtension rec {
|
||||
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/
|
||||
rm -r python_files/lib
|
||||
mkdir -p python_files/lib/python/
|
||||
ln -s ${python3.pkgs.debugpy}/lib/*/site-packages/debugpy python_files/lib/python/
|
||||
buildPythonPath "$propagatedBuildInputs"
|
||||
for i in pythonFiles/*.py; do
|
||||
for i in python_files/*.py; do
|
||||
patchPythonScript "$i"
|
||||
done
|
||||
''
|
||||
|
||||
@@ -1,27 +1,25 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1894,7 +1894,7 @@ if(WITH_COMPILER_SHORT_FILE_MACRO)
|
||||
ADD_CHECK_CXX_COMPILER_FLAG(CXX_PREFIX_MAP_FLAGS CXX_MACRO_PREFIX_MAP -fmacro-prefix-map=foo=bar)
|
||||
--- a/CMakeLists.txt 2024-03-01 08:08:05
|
||||
+++ b/CMakeLists.txt 2024-04-24 15:45:30
|
||||
@@ -2134,7 +2134,7 @@
|
||||
)
|
||||
if(C_MACRO_PREFIX_MAP AND CXX_MACRO_PREFIX_MAP)
|
||||
if(APPLE)
|
||||
- if(XCODE AND ${XCODE_VERSION} VERSION_LESS 12.0)
|
||||
+ if(FALSE)
|
||||
# Developers may have say LLVM Clang-10.0.1 toolchain (which supports the flag)
|
||||
# with Xcode-11 (the Clang of which doesn't support the flag).
|
||||
message(WARNING
|
||||
diff --git a/build_files/cmake/platform/platform_apple.cmake b/build_files/cmake/platform/platform_apple.cmake
|
||||
--- a/build_files/cmake/platform/platform_apple.cmake
|
||||
+++ b/build_files/cmake/platform/platform_apple.cmake
|
||||
@@ -60,7 +60,6 @@ else()
|
||||
message(STATUS "Using pre-compiled LIBDIR: ${LIBDIR}")
|
||||
message(
|
||||
--- a/build_files/cmake/platform/platform_apple.cmake 2024-02-22 15:31:36
|
||||
+++ b/build_files/cmake/platform/platform_apple.cmake 2024-04-24 16:06:13
|
||||
@@ -55,7 +55,6 @@
|
||||
endif()
|
||||
endif()
|
||||
if(NOT EXISTS "${LIBDIR}/")
|
||||
if(NOT EXISTS "${LIBDIR}/.git")
|
||||
- message(FATAL_ERROR "Mac OSX requires pre-compiled libs at: '${LIBDIR}'")
|
||||
endif()
|
||||
|
||||
# Prefer lib directory paths
|
||||
@@ -98,10 +97,6 @@ if(WITH_CODEC_SNDFILE)
|
||||
if(FIRST_RUN)
|
||||
message(STATUS "Using pre-compiled LIBDIR: ${LIBDIR}")
|
||||
@@ -115,10 +114,6 @@
|
||||
find_library(_sndfile_VORBIS_LIBRARY NAMES vorbis HINTS ${LIBDIR}/ffmpeg/lib)
|
||||
find_library(_sndfile_VORBISENC_LIBRARY NAMES vorbisenc HINTS ${LIBDIR}/ffmpeg/lib)
|
||||
list(APPEND LIBSNDFILE_LIBRARIES
|
||||
@@ -32,44 +30,26 @@ diff --git a/build_files/cmake/platform/platform_apple.cmake b/build_files/cmake
|
||||
)
|
||||
|
||||
print_found_status("SndFile libraries" "${LIBSNDFILE_LIBRARIES}")
|
||||
@@ -118,7 +113,7 @@ if(WITH_PYTHON)
|
||||
# Normally cached but not since we include them with blender.
|
||||
set(PYTHON_INCLUDE_DIR "${LIBDIR}/python/include/python${PYTHON_VERSION}")
|
||||
set(PYTHON_EXECUTABLE "${LIBDIR}/python/bin/python${PYTHON_VERSION}")
|
||||
- set(PYTHON_LIBRARY ${LIBDIR}/python/lib/libpython${PYTHON_VERSION}.a)
|
||||
+ set(PYTHON_LIBRARY ${LIBDIR}/python/lib/libpython${PYTHON_VERSION}.dylib)
|
||||
set(PYTHON_LIBPATH "${LIBDIR}/python/lib/python${PYTHON_VERSION}")
|
||||
else()
|
||||
# Module must be compiled against Python framework.
|
||||
@@ -147,7 +142,7 @@ endif()
|
||||
|
||||
# FreeType compiled with Brotli compression for woff2.
|
||||
find_package(Freetype REQUIRED)
|
||||
-list(APPEND FREETYPE_LIBRARIES
|
||||
+message(TRACE APPEND FREETYPE_LIBRARIES
|
||||
${LIBDIR}/brotli/lib/libbrotlicommon-static.a
|
||||
${LIBDIR}/brotli/lib/libbrotlidec-static.a)
|
||||
|
||||
@@ -159,9 +154,7 @@ if(WITH_CODEC_FFMPEG)
|
||||
@@ -162,9 +157,7 @@
|
||||
set(FFMPEG_ROOT_DIR ${LIBDIR}/ffmpeg)
|
||||
set(FFMPEG_FIND_COMPONENTS
|
||||
avcodec avdevice avformat avutil
|
||||
- mp3lame ogg opus swresample swscale
|
||||
- theora theoradec theoraenc vorbis vorbisenc
|
||||
- vorbisfile vpx x264 xvidcore)
|
||||
+ swresample swscale)
|
||||
- vorbisfile vpx x264)
|
||||
+ swresample swscale)
|
||||
if(EXISTS ${LIBDIR}/ffmpeg/lib/libaom.a)
|
||||
list(APPEND FFMPEG_FIND_COMPONENTS aom)
|
||||
endif()
|
||||
@@ -273,7 +266,6 @@ if(WITH_BOOST)
|
||||
endif()
|
||||
@@ -275,7 +268,6 @@
|
||||
add_bundled_libraries(boost/lib)
|
||||
|
||||
if(WITH_INTERNATIONAL OR WITH_CODEC_FFMPEG)
|
||||
- string(APPEND PLATFORM_LINKFLAGS " -liconv") # boost_locale and ffmpeg needs it !
|
||||
endif()
|
||||
|
||||
if(WITH_PUGIXML)
|
||||
@@ -402,7 +394,7 @@ endif()
|
||||
@@ -350,7 +342,7 @@
|
||||
|
||||
# CMake FindOpenMP doesn't know about AppleClang before 3.12, so provide custom flags.
|
||||
if(WITH_OPENMP)
|
||||
@@ -78,3 +58,12 @@ diff --git a/build_files/cmake/platform/platform_apple.cmake b/build_files/cmake
|
||||
# Use OpenMP from our precompiled libraries.
|
||||
message(STATUS "Using ${LIBDIR}/openmp for OpenMP")
|
||||
set(OPENMP_CUSTOM ON)
|
||||
@@ -427,7 +419,7 @@
|
||||
" -Wl,-unexported_symbols_list,'${PLATFORM_SYMBOLS_MAP}'"
|
||||
)
|
||||
|
||||
-if(${XCODE_VERSION} VERSION_GREATER_EQUAL 15.0)
|
||||
+if(FALSE)
|
||||
if("${CMAKE_OSX_ARCHITECTURES}" STREQUAL "x86_64")
|
||||
# Silence "no platform load command found in <static library>, assuming: macOS".
|
||||
string(APPEND PLATFORM_LINKFLAGS " -Wl,-ld_classic")
|
||||
|
||||
@@ -8,12 +8,14 @@
|
||||
addOpenGLRunpath,
|
||||
alembic,
|
||||
boost,
|
||||
brotli,
|
||||
callPackage,
|
||||
cmake,
|
||||
colladaSupport ? true,
|
||||
config,
|
||||
cudaPackages,
|
||||
cudaSupport ? config.cudaSupport,
|
||||
darwin,
|
||||
dbus,
|
||||
embree,
|
||||
fetchurl,
|
||||
@@ -51,6 +53,7 @@
|
||||
libxkbcommon,
|
||||
llvmPackages,
|
||||
makeWrapper,
|
||||
materialx,
|
||||
mesa,
|
||||
ocl-icd,
|
||||
openal,
|
||||
@@ -71,6 +74,7 @@
|
||||
rocmPackages, # comes with a significantly larger closure size
|
||||
runCommand,
|
||||
spaceNavSupport ? stdenv.isLinux,
|
||||
sse2neon,
|
||||
stdenv,
|
||||
tbb,
|
||||
wayland,
|
||||
@@ -114,15 +118,14 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
''
|
||||
: > build_files/cmake/platform/platform_apple_xcode.cmake
|
||||
substituteInPlace source/creator/CMakeLists.txt \
|
||||
--replace '${"$"}{LIBDIR}/python' \
|
||||
'${python3}'
|
||||
substituteInPlace build_files/cmake/platform/platform_apple.cmake \
|
||||
--replace '${"$"}{LIBDIR}/python' \
|
||||
--replace-fail '${"$"}{LIBDIR}/python' \
|
||||
'${python3}' \
|
||||
--replace '${"$"}{LIBDIR}/opencollada' \
|
||||
'${opencollada}' \
|
||||
--replace '${"$"}{PYTHON_LIBPATH}/site-packages/numpy' \
|
||||
'${python3Packages.numpy}/${python3.sitePackages}/numpy'
|
||||
--replace-fail '${"$"}{LIBDIR}/materialx/' '${materialx}/'
|
||||
substituteInPlace build_files/cmake/platform/platform_apple.cmake \
|
||||
--replace-fail '${"$"}{LIBDIR}/brotli/lib/libbrotlicommon-static.a' \
|
||||
'${lib.getLib brotli}/lib/libbrotlicommon.dylib' \
|
||||
--replace-fail '${"$"}{LIBDIR}/brotli/lib/libbrotlidec-static.a' \
|
||||
'${lib.getLib brotli}/lib/libbrotlidec.dylib'
|
||||
''
|
||||
else
|
||||
''
|
||||
@@ -150,6 +153,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"-DWITH_FFTW3=ON"
|
||||
"-DWITH_IMAGE_OPENJPEG=ON"
|
||||
"-DWITH_INSTALL_PORTABLE=OFF"
|
||||
"-DMaterialX_DIR=${materialx}/lib/cmake/MaterialX"
|
||||
"-DWITH_MOD_OCEANSIM=ON"
|
||||
"-DWITH_OPENCOLLADA=${if colladaSupport then "ON" else "OFF"}"
|
||||
"-DWITH_OPENCOLORIO=ON"
|
||||
@@ -164,7 +168,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
# Blender supplies its own FindAlembic.cmake (incompatible with the Alembic-supplied config file)
|
||||
"-DALEMBIC_INCLUDE_DIR=${lib.getDev alembic}/include"
|
||||
"-DALEMBIC_LIBRARY=${lib.getLib alembic}/lib/libAlembic.so"
|
||||
"-DALEMBIC_LIBRARY=${lib.getLib alembic}/lib/libAlembic${stdenv.hostPlatform.extensions.sharedLibrary}"
|
||||
]
|
||||
++ lib.optionals waylandSupport [
|
||||
"-DWITH_GHOST_WAYLAND=ON"
|
||||
@@ -172,11 +176,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"-DWITH_GHOST_WAYLAND_DYNLOAD=OFF"
|
||||
"-DWITH_GHOST_WAYLAND_LIBDECOR=ON"
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isAarch64 [ "-DWITH_CYCLES_EMBREE=OFF" ]
|
||||
++ lib.optionals (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux) [ "-DWITH_CYCLES_EMBREE=OFF" ]
|
||||
++ lib.optionals stdenv.isDarwin [
|
||||
"-DLIBDIR=/does-not-exist"
|
||||
"-DWITH_CYCLES_OSL=OFF" # requires LLVM
|
||||
"-DWITH_OPENVDB=OFF" # OpenVDB currently doesn't build on darwin
|
||||
"-DWITH_CYCLES_OSL=OFF" # causes segfault on aarch64-darwin
|
||||
"-DSSE2NEON_INCLUDE_DIR=${sse2neon}/lib"
|
||||
"-DWITH_USD=OFF" # currently fails on darwin
|
||||
]
|
||||
++ lib.optional stdenv.cc.isClang "-DPYTHON_LINKFLAGS=" # Clang doesn't support "-export-dynamic"
|
||||
++ lib.optional jackaudioSupport "-DWITH_JACK=ON"
|
||||
@@ -219,21 +224,22 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
libsndfile
|
||||
libtiff
|
||||
libwebp
|
||||
materialx
|
||||
opencolorio
|
||||
openexr
|
||||
openimageio
|
||||
openjpeg
|
||||
openpgl
|
||||
(opensubdiv.override { inherit cudaSupport; })
|
||||
openvdb
|
||||
potrace
|
||||
pugixml
|
||||
pyPkgsOpenusd
|
||||
python3
|
||||
tbb
|
||||
zlib
|
||||
zstd
|
||||
]
|
||||
++ lib.optionals (!stdenv.isAarch64) [
|
||||
++ lib.optionals (!stdenv.isAarch64 && stdenv.isLinux) [
|
||||
embree
|
||||
(openimagedenoise.override { inherit cudaSupport; })
|
||||
]
|
||||
@@ -248,8 +254,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
libXrender
|
||||
libXxf86vm
|
||||
openal
|
||||
openvdb # OpenVDB currently doesn't build on darwin
|
||||
openxr-loader
|
||||
pyPkgsOpenusd
|
||||
]
|
||||
else
|
||||
[
|
||||
@@ -259,7 +265,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
OpenAL
|
||||
OpenGL
|
||||
SDL
|
||||
brotli
|
||||
embree
|
||||
llvmPackages.openmp
|
||||
(openimagedenoise.override { inherit cudaSupport; })
|
||||
sse2neon
|
||||
]
|
||||
)
|
||||
++ lib.optionals cudaSupport [ cudaPackages.cuda_cudart ]
|
||||
@@ -280,11 +290,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
ps = python3Packages;
|
||||
in
|
||||
[
|
||||
materialx
|
||||
ps.numpy
|
||||
ps.requests
|
||||
ps.zstandard
|
||||
pyPkgsOpenusd
|
||||
];
|
||||
]
|
||||
++ lib.optionals (!stdenv.isDarwin) [ pyPkgsOpenusd ];
|
||||
|
||||
blenderExecutable =
|
||||
placeholder "out"
|
||||
@@ -295,8 +306,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
mkdir $out/Applications
|
||||
mv $out/Blender.app $out/Applications
|
||||
''
|
||||
+ ''
|
||||
+ lib.optionalString stdenv.isLinux ''
|
||||
mv $out/share/blender/${lib.versions.majorMinor finalAttrs.version}/python{,-ext}
|
||||
''
|
||||
+ ''
|
||||
buildPythonPath "$pythonPath"
|
||||
wrapProgram $blenderExecutable \
|
||||
--prefix PATH : $program_PATH \
|
||||
@@ -311,6 +324,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
isELF "$program" || continue
|
||||
addOpenGLRunpath "$program"
|
||||
done
|
||||
''
|
||||
+ lib.optionalString stdenv.isDarwin ''
|
||||
makeWrapper $out/Applications/Blender.app/Contents/MacOS/Blender $out/bin/blender
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
@@ -327,15 +343,13 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
tests = {
|
||||
render = runCommand "${finalAttrs.pname}-test" { } ''
|
||||
set -euo pipefail
|
||||
|
||||
export LIBGL_DRIVERS_PATH=${mesa.drivers}/lib/dri
|
||||
export __EGL_VENDOR_LIBRARY_FILENAMES=${mesa.drivers}/share/glvnd/egl_vendor.d/50_mesa.json
|
||||
|
||||
cat <<'PYTHON' > scene-config.py
|
||||
import bpy
|
||||
bpy.context.scene.eevee.taa_render_samples = 32
|
||||
bpy.context.scene.cycles.samples = 32
|
||||
if ${if stdenv.isAarch64 then "True" else "False"}:
|
||||
if ${if (stdenv.isAarch64 && stdenv.isLinux) then "True" else "False"}:
|
||||
bpy.context.scene.cycles.use_denoising = False
|
||||
bpy.context.scene.render.resolution_x = 100
|
||||
bpy.context.scene.render.resolution_y = 100
|
||||
@@ -347,7 +361,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
for engine in BLENDER_EEVEE CYCLES; do
|
||||
echo "Rendering with $engine..."
|
||||
# Beware that argument order matters
|
||||
${finalAttrs.finalPackage}/bin/blender \
|
||||
${lib.getExe finalAttrs.finalPackage} \
|
||||
--background \
|
||||
-noaudio \
|
||||
--factory-startup \
|
||||
@@ -372,8 +386,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"aarch64-linux"
|
||||
"x86_64-darwin"
|
||||
"x86_64-linux"
|
||||
"aarch64-darwin"
|
||||
];
|
||||
broken = stdenv.isDarwin;
|
||||
# the current apple sdk is too old (currently 11_0) and fails to build "metal" on x86_64-darwin
|
||||
broken = stdenv.hostPlatform.system == "x86_64-darwin";
|
||||
maintainers = with lib.maintainers; [
|
||||
goibhniu
|
||||
veprbl
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, gtk3, libwnck, libxklavier
|
||||
{ lib, stdenv, fetchFromGitHub, fetchurl, git, autoreconfHook, pkg-config, gtk3, libwnck, libxklavier
|
||||
, appindicatorSupport ? true, libayatana-appindicator
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gxkb";
|
||||
version = "0.9.3";
|
||||
version = "0.9.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zen-tools";
|
||||
repo = "gxkb";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-9r1eZl7PgIt2ZpK+QQHaa460imIHT3Lh5mpzcFglyWc=";
|
||||
sha256 = "sha256-oBIBIkj4p6HlF0PRQtI/K5dhLs7pbPxN7Cgr/YZaI1s=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
||||
@@ -19,6 +19,18 @@ stdenv.mkDerivation rec {
|
||||
configureFlags = lib.optional appindicatorSupport "--enable-appindicator=yes";
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
# This patch restore data which was wiped by upstream without any technical reasons
|
||||
# https://github.com/omgbebebe/gxkb/commit/727ec8b595a91dbb540e6087750f43b85d0dfbc0
|
||||
# NOTE: the `patch` hook cannot be used here due to lack of support for git binary patches
|
||||
p1 = fetchurl {
|
||||
url = "https://github.com/omgbebebe/gxkb/commit/727ec8b595a91dbb540e6087750f43b85d0dfbc0.patch";
|
||||
hash = "sha256-x7x3MHHrOnPivvlzOFqgFAA5BDB2LOXMlalPYbwM/1Q=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
${git}/bin/git apply ${p1}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "X11 keyboard indicator and switcher";
|
||||
homepage = "https://zen-tools.github.io/gxkb/";
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "glooctl";
|
||||
version = "1.16.10";
|
||||
version = "1.16.11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "solo-io";
|
||||
repo = "gloo";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-GC0/HGPO/sbkyf2bLY0A+pQrPYqMv6BP0zNUHENpQjg=";
|
||||
hash = "sha256-3GTSIZRELj8Pdm02SUKSCk6/Q7Hkuggvq+XjJAH9qU0=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-UyzqKpF2WBj25Bm4MtkF6yjl87A61vGsteBNCjJV178=";
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "nova";
|
||||
version = "3.8.0";
|
||||
version = "3.9.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "FairwindsOps";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-3bSxMb/JFIy3b6N/94cXfGlUbPIm046O9m2KPan8YIs=";
|
||||
hash = "sha256-9ccWH0bh67LCwzKmyaE32j+qeKfNauclSMjpRwdblH8=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-c30B8Wjvwp4NnB1P8h4/raGiGAX/cbTZ/KQqh/qeNhA=";
|
||||
vendorHash = "sha256-Vt2yUYm2i1NHzW7GxDRqBpaFS4dLfODNEMPO+CTwrLY=";
|
||||
|
||||
ldflags = [ "-X main.version=${version}" "-s" "-w" ];
|
||||
|
||||
|
||||
@@ -29,6 +29,11 @@ buildNpmPackage rec {
|
||||
|
||||
npmDepsHash = "sha256-4R+To2LhcnEM9x1noo6MhCckyBKgPWiAi7zgDqAmaN0=";
|
||||
|
||||
# Fix error: no member named 'aligned_alloc' in the global namespace
|
||||
env.NIX_CFLAGS_COMPILE = lib.optionalString (
|
||||
stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinSdkVersion "11.0"
|
||||
) "-D_LIBCPP_HAS_NO_LIBRARY_ALIGNED_ALLOCATION=1";
|
||||
|
||||
nativeBuildInputs = [
|
||||
jq
|
||||
python3
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
{ hostPlatform, callPackage }: {
|
||||
signal-desktop = if hostPlatform.system == "aarch64-linux"
|
||||
then callPackage ./signal-desktop-aarch64.nix { }
|
||||
else callPackage ./signal-desktop.nix { };
|
||||
signal-desktop-beta = callPackage ./signal-desktop-beta.nix{ };
|
||||
{ hostPlatform, callPackage }:
|
||||
{
|
||||
signal-desktop =
|
||||
if hostPlatform.system == "aarch64-linux" then
|
||||
callPackage ./signal-desktop-aarch64.nix { }
|
||||
else
|
||||
callPackage ./signal-desktop.nix { };
|
||||
signal-desktop-beta = (callPackage ./signal-desktop-beta.nix { }).overrideAttrs (old: {
|
||||
meta = old.meta // {
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "signalbackup-tools";
|
||||
version = "20240506";
|
||||
version = "20240509-1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bepaald";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-rPM5Qz1n9bTOF//sqpT+LvEjBSCT2BjyQBIxjV6CkGU=";
|
||||
hash = "sha256-GUh/OTeJNBg3TDij/8jIEXfw9ox1wvq6tRq61JbMiZg=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, buildPythonApplication
|
||||
, fetchpatch
|
||||
, pem
|
||||
, pyside6
|
||||
, twisted
|
||||
@@ -14,7 +13,7 @@
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "syncplay";
|
||||
version = "1.7.0";
|
||||
version = "1.7.2";
|
||||
|
||||
format = "other";
|
||||
|
||||
@@ -22,15 +21,10 @@ buildPythonApplication rec {
|
||||
owner = "Syncplay";
|
||||
repo = "syncplay";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-Te81yOv3D6M6aMfC5XrM6/I6BlMdlY1yRk1RRJa9Mxg=";
|
||||
sha256 = "sha256-PERPE6141LXmb8fmW17Vu54Unpf9vEK+ahm6q1byRTU=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "fix-typeerror.patch";
|
||||
url = "https://github.com/Syncplay/syncplay/commit/b62b038cdf58c54205987dfc52ebf228505ad03b.patch";
|
||||
hash = "sha256-pSP33Qn1I+nJBW8T1E1tSJKRh5OnZMRsbU+jr5z4u7c=";
|
||||
})
|
||||
./trusted_certificates.patch
|
||||
];
|
||||
|
||||
@@ -52,6 +46,6 @@ buildPythonApplication rec {
|
||||
description = "Free software that synchronises media players";
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
maintainers = with maintainers; [ Enzime ];
|
||||
maintainers = with maintainers; [ assistant Enzime ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -19,11 +19,10 @@
|
||||
, symlinkJoin
|
||||
, substituteAll
|
||||
, extraPackages ? [ ]
|
||||
, runc
|
||||
, crun
|
||||
, gvisor
|
||||
, youki
|
||||
, runc
|
||||
, conmon
|
||||
, extraRuntimes ? lib.optionals stdenv.isLinux [ runc ] # e.g.: runc, gvisor, youki
|
||||
, slirp4netns
|
||||
, fuse-overlayfs
|
||||
, util-linux
|
||||
@@ -59,7 +58,9 @@ let
|
||||
netavark
|
||||
slirp4netns
|
||||
passt
|
||||
];
|
||||
conmon
|
||||
crun
|
||||
] ++ extraRuntimes;
|
||||
};
|
||||
in
|
||||
buildGoModule rec {
|
||||
@@ -74,13 +75,13 @@ buildGoModule rec {
|
||||
};
|
||||
|
||||
patches = [
|
||||
# we intentionally don't build and install the helper so we shouldn't display messages to users about it
|
||||
./rm-podman-mac-helper-msg.patch
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
(substituteAll {
|
||||
src = ./hardcode-paths.patch;
|
||||
inherit crun runc gvisor youki conmon;
|
||||
bin_path = helpersBin;
|
||||
})
|
||||
|
||||
# we intentionally don't build and install the helper so we shouldn't display messages to users about it
|
||||
./rm-podman-mac-helper-msg.patch
|
||||
];
|
||||
|
||||
vendorHash = null;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
diff --git a/vendor/github.com/containers/common/pkg/config/default.go b/vendor/github.com/containers/common/pkg/config/default.go
|
||||
index 19c4bb6bf..2743de4b2 100644
|
||||
index 3a6d804ad..5628e2bf6 100644
|
||||
--- a/vendor/github.com/containers/common/pkg/config/default.go
|
||||
+++ b/vendor/github.com/containers/common/pkg/config/default.go
|
||||
@@ -364,75 +364,34 @@ func defaultEngineConfig() (*EngineConfig, error) {
|
||||
@@ -366,75 +366,34 @@ func defaultEngineConfig() (*EngineConfig, error) {
|
||||
c.Retry = 3
|
||||
c.OCIRuntimes = map[string][]string{
|
||||
"crun": {
|
||||
@@ -13,7 +13,7 @@ index 19c4bb6bf..2743de4b2 100644
|
||||
- "/sbin/crun",
|
||||
- "/bin/crun",
|
||||
- "/run/current-system/sw/bin/crun",
|
||||
+ "@crun@/bin/crun",
|
||||
+ "@bin_path@/bin/crun",
|
||||
},
|
||||
"crun-vm": {
|
||||
- "/usr/bin/crun-vm",
|
||||
@@ -22,7 +22,7 @@ index 19c4bb6bf..2743de4b2 100644
|
||||
- "/sbin/crun-vm",
|
||||
- "/bin/crun-vm",
|
||||
- "/run/current-system/sw/bin/crun-vm",
|
||||
+ // TODO: "@crun-vm@/bin/crun-vm",
|
||||
+ "@bin_path@/bin/crun-vm",
|
||||
},
|
||||
"crun-wasm": {
|
||||
- "/usr/bin/crun-wasm",
|
||||
@@ -32,7 +32,7 @@ index 19c4bb6bf..2743de4b2 100644
|
||||
- "/sbin/crun-wasm",
|
||||
- "/bin/crun-wasm",
|
||||
- "/run/current-system/sw/bin/crun-wasm",
|
||||
+ // TODO: "@crun-wasm@/bin/crun-wasm",
|
||||
+ "@bin_path@/bin/crun-wasm",
|
||||
},
|
||||
"runc": {
|
||||
- "/usr/bin/runc",
|
||||
@@ -43,11 +43,11 @@ index 19c4bb6bf..2743de4b2 100644
|
||||
- "/bin/runc",
|
||||
- "/usr/lib/cri-o-runc/sbin/runc",
|
||||
- "/run/current-system/sw/bin/runc",
|
||||
+ "@runc@/bin/runc",
|
||||
+ "@bin_path@/bin/runc",
|
||||
},
|
||||
"runj": {
|
||||
- "/usr/local/bin/runj",
|
||||
+ // TODO: "@runj@/bin/runj",
|
||||
+ "@bin_path@/bin/runj",
|
||||
},
|
||||
"kata": {
|
||||
- "/usr/bin/kata-runtime",
|
||||
@@ -58,7 +58,7 @@ index 19c4bb6bf..2743de4b2 100644
|
||||
- "/bin/kata-runtime",
|
||||
- "/usr/bin/kata-qemu",
|
||||
- "/usr/bin/kata-fc",
|
||||
+ // TODO: "@kata@/bin/kata",
|
||||
+ "@bin_path@/bin/kata-runtime",
|
||||
},
|
||||
"runsc": {
|
||||
- "/usr/bin/runsc",
|
||||
@@ -68,27 +68,27 @@ index 19c4bb6bf..2743de4b2 100644
|
||||
- "/bin/runsc",
|
||||
- "/sbin/runsc",
|
||||
- "/run/current-system/sw/bin/runsc",
|
||||
+ "@gvisor@/bin/runsc",
|
||||
+ "@bin_path@/bin/runsc",
|
||||
},
|
||||
"youki": {
|
||||
- "/usr/local/bin/youki",
|
||||
- "/usr/bin/youki",
|
||||
- "/bin/youki",
|
||||
- "/run/current-system/sw/bin/youki",
|
||||
+ "@youki@/bin/youki",
|
||||
+ "@bin_path@/bin/youki",
|
||||
},
|
||||
"krun": {
|
||||
- "/usr/bin/krun",
|
||||
- "/usr/local/bin/krun",
|
||||
+ // TODO: "@krun@/bin/krun",
|
||||
+ "@bin_path@/bin/krun",
|
||||
},
|
||||
"ocijail": {
|
||||
- "/usr/local/bin/ocijail",
|
||||
+ // TODO: "@ocijail@/bin/ocijail",
|
||||
+ "@bin_path@/bin/ocijail",
|
||||
},
|
||||
}
|
||||
c.PlatformToOCIRuntime = map[string]string{
|
||||
@@ -443,16 +402,9 @@ func defaultEngineConfig() (*EngineConfig, error) {
|
||||
@@ -445,26 +404,12 @@ func defaultEngineConfig() (*EngineConfig, error) {
|
||||
// Needs to be called after populating c.OCIRuntimes.
|
||||
c.OCIRuntime = c.findRuntime()
|
||||
|
||||
@@ -103,7 +103,18 @@ index 19c4bb6bf..2743de4b2 100644
|
||||
- "/usr/local/bin/conmon",
|
||||
- "/usr/local/sbin/conmon",
|
||||
- "/run/current-system/sw/bin/conmon",
|
||||
+ "@conmon@/bin/conmon",
|
||||
+ "@bin_path@/bin/conmon",
|
||||
})
|
||||
c.ConmonRsPath.Set([]string{
|
||||
"/usr/libexec/podman/conmonrs",
|
||||
- "/usr/libexec/podman/conmonrs",
|
||||
- "/usr/local/libexec/podman/conmonrs",
|
||||
- "/usr/local/lib/podman/conmonrs",
|
||||
- "/usr/bin/conmonrs",
|
||||
- "/usr/sbin/conmonrs",
|
||||
- "/usr/local/bin/conmonrs",
|
||||
- "/usr/local/sbin/conmonrs",
|
||||
- "/run/current-system/sw/bin/conmonrs",
|
||||
+ "@bin_path@/bin/conmonrs",
|
||||
})
|
||||
c.PullPolicy = DefaultPullPolicy
|
||||
c.RuntimeSupportsJSON.Set([]string{
|
||||
|
||||
@@ -81,6 +81,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
hwdata
|
||||
jq
|
||||
makeWrapper
|
||||
meson
|
||||
@@ -114,7 +115,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
pciutils
|
||||
tomlplusplus
|
||||
# for subproject wlroots-hyprland
|
||||
hwdata
|
||||
seatd
|
||||
libliftoff
|
||||
libdisplay-info
|
||||
|
||||
@@ -21,20 +21,20 @@
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "audio-sharing";
|
||||
version = "0.2.2";
|
||||
version = "0.2.4";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.gnome.org";
|
||||
owner = "World";
|
||||
repo = "AudioSharing";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-ejNktgN9tfi4TzWDQJnESGcBkpvLVH34sukTFCBfo3U=";
|
||||
hash = "sha256-yUMiy5DaCPfCmBIGCXpqtvSSmQl5wo6vsLdW7Tt/Wfo=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||
inherit (finalAttrs) src;
|
||||
name = "${finalAttrs.pname}-${finalAttrs.version}";
|
||||
hash = "sha256-c19DxHF4HFN0qTqC2CNzwko79uVeLeyrrXAvuyxeiOQ=";
|
||||
hash = "sha256-FfjSttXf6WF2w59CP6L/+BIuuXp2yKPTku7FMvdIHg0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
{ lib, fetchFromGitHub, rustPlatform }:
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
darwin,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "buckle";
|
||||
@@ -12,6 +18,11 @@ rustPlatform.buildRustPackage rec {
|
||||
sha256 = "sha256-eWhcDzw+6I5N0dse5avwhcQ/y6YZ6b3QKyBwWBrA/xo=";
|
||||
};
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.Security
|
||||
darwin.apple_sdk.frameworks.SystemConfiguration
|
||||
];
|
||||
|
||||
checkFlags = [
|
||||
# Both tests access the network.
|
||||
"--skip=test_buck2_latest"
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
pkg-config,
|
||||
curl,
|
||||
libgit2,
|
||||
openssl,
|
||||
darwin,
|
||||
}:
|
||||
let
|
||||
version = "0.16.1";
|
||||
src = fetchFromGitHub {
|
||||
owner = "google";
|
||||
repo = "cargo-raze";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-dn1MrF+FYBG+vD5AfXCwmzskmKK/TXArnMWW2BAfFFQ=";
|
||||
};
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "cargo-raze";
|
||||
inherit src version;
|
||||
|
||||
sourceRoot = "${src.name}/impl";
|
||||
|
||||
# Make it build on Rust >1.76. Since upstream is unmaintained,
|
||||
# there's no counting on them to fix this any time soon...
|
||||
# See #310673 and #310125 for similar fixes
|
||||
cargoPatches = [ ./rustc-serialize-fix.patch ];
|
||||
|
||||
cargoHash = "sha256-V8FkkWcXrYcDmhbdJztpbd4gBVbtbPY0NHS4pb/z8HM=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
libgit2
|
||||
openssl
|
||||
curl
|
||||
] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
||||
|
||||
preCheck = lib.optionalString stdenv.isDarwin ''
|
||||
# Darwin issue: Os { code: 24, kind: Uncategorized, message: "Too many open files" }
|
||||
# https://github.com/google/cargo-raze/issues/544
|
||||
ulimit -n 1024
|
||||
'';
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = {
|
||||
description = "Generate Bazel BUILD files from Cargo dependencies";
|
||||
homepage = "https://github.com/google/cargo-raze";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ elasticdog ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
diff --git a/impl/Cargo.lock b/impl/Cargo.lock
|
||||
index 0c963206..7db3432f 100644
|
||||
--- a/Cargo.lock
|
||||
+++ b/Cargo.lock
|
||||
@@ -1957,9 +1957,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rustc-serialize"
|
||||
-version = "0.3.24"
|
||||
+version = "0.3.25"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
-checksum = "dcf128d1287d2ea9d80910b5f1120d0b8eede3fbf1abe91c40d39ea7d51e6fda"
|
||||
+checksum = "fe834bc780604f4674073badbad26d7219cadfb4a2275802db12cbae17498401"
|
||||
|
||||
[[package]]
|
||||
name = "ryu"
|
||||
diff --git a/impl/Cargo.toml b/impl/Cargo.toml
|
||||
index 9dd6dd99..a559febf 100644
|
||||
--- a/Cargo.toml
|
||||
+++ b/Cargo.toml
|
||||
@@ -38,7 +38,7 @@ itertools = "0.10.0"
|
||||
log = "0.4.13"
|
||||
pathdiff = "0.2.0"
|
||||
regex = "1.5.5"
|
||||
-rustc-serialize = "0.3.24"
|
||||
+rustc-serialize = "0.3.25"
|
||||
semver = { version = "1", features = ["serde"] }
|
||||
serde = "1.0.120"
|
||||
serde_derive = "1.0.120"
|
||||
@@ -8,16 +8,16 @@
|
||||
let
|
||||
argset = {
|
||||
pname = "chezmoi";
|
||||
version = "2.48.0";
|
||||
version = "2.48.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "twpayne";
|
||||
repo = "chezmoi";
|
||||
rev = "v${argset.version}";
|
||||
hash = "sha256-TclY4O5mA14cI7+qvGwt5jSHftxhGaa3ICVn8qdrKqs=";
|
||||
hash = "sha256-v24gS80s7dTDlOO9ouf+Am7KyZPTBWzjG+HyBfFZynw=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-qoXfneNEAsvUgaEFHPF1bf/S8feFX+8HtwQy7nzy8Bo=";
|
||||
vendorHash = "sha256-8KcseMkYww+Ccaw+ovwXhakO9ira2TRI4uQ5TbCZcSE=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
|
||||
Generated
+376
-977
File diff suppressed because it is too large
Load Diff
@@ -21,13 +21,13 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "cosmic-edit";
|
||||
version = "unstable-2024-02-28";
|
||||
version = "unstable-2024-03-30";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pop-os";
|
||||
repo = pname;
|
||||
rev = "536a66eff9c032afd76b60be6a9067a14ed38ab1";
|
||||
hash = "sha256-UsZBxeamw8VuHtHrVtTwHhPPG+SMBrGY5taw+da/Ll0=";
|
||||
rev = "cd1b32218078979aa9a944b3a32f9b96996764a1";
|
||||
hash = "sha256-54DwcI/pwN6nRnHC6GeDYVJXNgS+xBQTnRrKV2YMGUA=";
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
@@ -35,14 +35,15 @@ rustPlatform.buildRustPackage rec {
|
||||
outputHashes = {
|
||||
"accesskit-0.12.2" = "sha256-ksaYMGT/oug7isQY8/1WD97XDUsX2ShBdabUzxWffYw=";
|
||||
"atomicwrites-0.4.2" = "sha256-QZSuGPrJXh+svMeFWqAXoqZQxLq/WfIiamqvjJNVhxA=";
|
||||
"cosmic-config-0.1.0" = "sha256-Zyi95zcBAohM1WBropLzJczSIfNNNBK2odB4AmW4h5I=";
|
||||
"cosmic-files-0.1.0" = "sha256-64An0MPgnFgyVlWmtBGBs+IV2z+4vmEY2uRPetZM4/M=";
|
||||
"clipboard_macos-0.1.0" = "sha256-PEH+aCpjDCEIj8s39nIeWxb7qu3u9IfriGqf0pYObMk=";
|
||||
"cosmic-config-0.1.0" = "sha256-x/xWMR5w2oEbghTSa8iCi24DA2s99+tcnga8K6jS6HQ=";
|
||||
"cosmic-files-0.1.0" = "sha256-4uwqRzkttmPQlqkX6xLjxyXRcqUhchCjAzZH9wmR+Tk=";
|
||||
"cosmic-syntax-theme-0.1.0" = "sha256-BNb9wrryD5FJImboD3TTdPRIfiBqPpItqwGdT1ZiNng=";
|
||||
"cosmic-text-0.11.2" = "sha256-Y9i5stMYpx+iqn4y5DJm1O1+3UIGp0/fSsnNq3Zloug=";
|
||||
"cosmic-text-0.11.2" = "sha256-gUIQFHPaFTmtUfgpVvsGTnw2UKIBx9gl0K67KPuynWs=";
|
||||
"d3d12-0.19.0" = "sha256-usrxQXWLGJDjmIdw1LBXtBvX+CchZDvE8fHC0LjvhD4=";
|
||||
"glyphon-0.5.0" = "sha256-j1HrbEpUBqazWqNfJhpyjWuxYAxkvbXzRKeSouUoPWg=";
|
||||
"smithay-clipboard-0.8.0" = "sha256-OZOGbdzkgRIeDFrAENXE7g62eQTs60Je6lYVr0WudlE=";
|
||||
"softbuffer-0.4.1" = "sha256-a0bUFz6O8CWRweNt/OxTvflnPYwO5nm6vsyc/WcXyNg=";
|
||||
"systemicons-0.7.0" = "sha256-zzAI+6mnpQOh+3mX7/sJ+w4a7uX27RduQ99PNxLNF78=";
|
||||
"taffy-0.3.11" = "sha256-SCx9GEIJjWdoNVyq+RZAGn0N71qraKZxf9ZWhvyzLaI=";
|
||||
"winit-0.29.10" = "sha256-ScTII2AzK3SC8MVeASZ9jhVWsEaGrSQ2BnApTxgfxK4=";
|
||||
};
|
||||
@@ -50,7 +51,7 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
# COSMIC applications now uses vergen for the About page
|
||||
# Update the COMMIT_DATE to match when the commit was made
|
||||
env.VERGEN_GIT_COMMIT_DATE = "2024-02-28";
|
||||
env.VERGEN_GIT_COMMIT_DATE = "2024-03-30";
|
||||
env.VERGEN_GIT_SHA = src.rev;
|
||||
|
||||
postPatch = ''
|
||||
|
||||
Generated
+195
-178
File diff suppressed because it is too large
Load Diff
@@ -5,12 +5,12 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "cosmic-store";
|
||||
version = "unstable-2024-03-13";
|
||||
version = "unstable-2024-04-14";
|
||||
src = fetchFromGitHub {
|
||||
owner = "pop-os";
|
||||
repo = pname;
|
||||
rev = "df014ea82ae0465470f5d237bfe71d2c085d29a0";
|
||||
hash = "sha256-1Sp6/qVONK+O5FLEcsu45eEBNaVbJLptt+ByXOZYwpo=";
|
||||
rev = "b1bbeaa6e6bdc85c84d329ae01b69d72716411fc";
|
||||
hash = "sha256-KHYcQnaRFoYzl/00mFkS6MJS7Th0T0fQhxYUErjzGCo=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
@@ -20,10 +20,12 @@ rustPlatform.buildRustPackage rec {
|
||||
"accesskit-0.12.2" = "sha256-ksaYMGT/oug7isQY8/1WD97XDUsX2ShBdabUzxWffYw=";
|
||||
"appstream-0.2.2" = "sha256-Qb/zzZJ2sM97nGVtp8amecTlwuaDrx1cacDcZOwhUm8=";
|
||||
"atomicwrites-0.4.2" = "sha256-QZSuGPrJXh+svMeFWqAXoqZQxLq/WfIiamqvjJNVhxA=";
|
||||
"cosmic-config-0.1.0" = "sha256-J6c2pRCpyfCFMmzwJ4RdEghSaFDshDtZL6DteAiaq1o=";
|
||||
"cosmic-text-0.11.2" = "sha256-6mvGyMCFC/tSIiDgDX+zuDUi15S9dXI6Dc6pj36hIJM=";
|
||||
"clipboard_macos-0.1.0" = "sha256-PEH+aCpjDCEIj8s39nIeWxb7qu3u9IfriGqf0pYObMk=";
|
||||
"cosmic-config-0.1.0" = "sha256-Ps2QIzlwgW8ENB+uD6cOjCkjlZvmWspazsXNxDFCu7g=";
|
||||
"cosmic-text-0.11.2" = "sha256-K9cZeClr1zz4LanJS0WPEpxAplQrXfCjFKrSn5n4rDA=";
|
||||
"d3d12-0.19.0" = "sha256-usrxQXWLGJDjmIdw1LBXtBvX+CchZDvE8fHC0LjvhD4=";
|
||||
"glyphon-0.5.0" = "sha256-j1HrbEpUBqazWqNfJhpyjWuxYAxkvbXzRKeSouUoPWg=";
|
||||
"smithay-clipboard-0.8.0" = "sha256-OZOGbdzkgRIeDFrAENXE7g62eQTs60Je6lYVr0WudlE=";
|
||||
"softbuffer-0.4.1" = "sha256-a0bUFz6O8CWRweNt/OxTvflnPYwO5nm6vsyc/WcXyNg=";
|
||||
"taffy-0.3.11" = "sha256-SCx9GEIJjWdoNVyq+RZAGn0N71qraKZxf9ZWhvyzLaI=";
|
||||
"winit-0.29.10" = "sha256-ScTII2AzK3SC8MVeASZ9jhVWsEaGrSQ2BnApTxgfxK4=";
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
buildNpmPackage,
|
||||
darwin,
|
||||
makeWrapper,
|
||||
ffmpeg_5,
|
||||
git,
|
||||
@@ -66,9 +67,14 @@ rustPlatform.buildRustPackage rec {
|
||||
git
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
sqlite
|
||||
] ++ lib.optional libvaSupport libva;
|
||||
buildInputs =
|
||||
[ sqlite ]
|
||||
++ lib.optional stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.Security
|
||||
darwin.apple_sdk.frameworks.CoreServices
|
||||
darwin.apple_sdk.frameworks.SystemConfiguration
|
||||
]
|
||||
++ lib.optional libvaSupport libva;
|
||||
|
||||
buildFeatures = lib.optional libvaSupport "vaapi";
|
||||
|
||||
@@ -95,7 +101,7 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/dim \
|
||||
--prefix PATH : ${lib.makeBinPath [ffmpeg_5]}
|
||||
--prefix PATH : ${lib.makeBinPath [ ffmpeg_5 ]}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
}:
|
||||
|
||||
let
|
||||
version = "0.2.0";
|
||||
version = "0.2.1";
|
||||
gitSrc = fetchFromGitHub {
|
||||
owner = "glasskube";
|
||||
repo = "glasskube";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-r14gYgrenUk3OFUEab4QlwmwUeEwqocJJ3Vje9wRdBA=";
|
||||
hash = "sha256-yHktQZ/s3RYcRQd0U+0VTnLOMTyRmlny9RtAdfFT6J8=";
|
||||
};
|
||||
web-bundle = buildNpmPackage rec {
|
||||
inherit version;
|
||||
@@ -40,7 +40,7 @@ in buildGoModule rec {
|
||||
|
||||
src = gitSrc;
|
||||
|
||||
vendorHash = "sha256-sj9TEAWhExwaaKlMJ10U7m3/xbUNl0dVZwrCb2TTu4o=";
|
||||
vendorHash = "sha256-ADa3nQZ/5K9m0aB5NwGQpjqhGwAne5pN2Z5RUb3eEcU=";
|
||||
|
||||
CGO_ENABLED = 0;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
let
|
||||
pname = "lefthook";
|
||||
version = "1.6.10";
|
||||
version = "1.6.11";
|
||||
in
|
||||
buildGoModule {
|
||||
inherit pname version;
|
||||
@@ -15,7 +15,7 @@ buildGoModule {
|
||||
owner = "evilmartians";
|
||||
repo = "lefthook";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-6VjvlGA6PBYLa1Ct05jokgF9zlYKihr+ESG4C8MHnO0=";
|
||||
hash = "sha256-l94RysGILYju0u1jOIGxLVe/TECw1naMq9SzpYq6ooM=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-sDqP+fzAFavqtvJ98nwsD5+GxNhmLgtOkTzIK06wp9E=";
|
||||
|
||||
@@ -72,13 +72,13 @@ let
|
||||
in
|
||||
effectiveStdenv.mkDerivation (finalAttrs: {
|
||||
pname = "llama-cpp";
|
||||
version = "2781";
|
||||
version = "2843";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ggerganov";
|
||||
repo = "llama.cpp";
|
||||
rev = "refs/tags/b${finalAttrs.version}";
|
||||
hash = "sha256-a+Ji8h0Yh52pGnDsrJSgfG5kdMDAmhEQ6YKdtZRc7S8=";
|
||||
hash = "sha256-wT/E4osmhZUSSW73DoNTs5BMTa1yU4E2mDpwiS0pEQc=";
|
||||
leaveDotGit = true;
|
||||
postFetch = ''
|
||||
git -C "$out" rev-parse --short HEAD > $out/COMMIT
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
darwin,
|
||||
libX11,
|
||||
libXt,
|
||||
libGL,
|
||||
openimageio,
|
||||
imath,
|
||||
python3Packages,
|
||||
python3
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonPackage rec {
|
||||
pname = "materialx";
|
||||
version = "1.38.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "AcademySoftwareFoundation";
|
||||
repo = "MaterialX";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-/kMHmW2dptZNtjuhE5s+jvPRIdtY+FRiVtMU+tiBgQo=";
|
||||
};
|
||||
|
||||
format = "other";
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
python3Packages.setuptools
|
||||
];
|
||||
|
||||
buildInputs =
|
||||
[
|
||||
openimageio
|
||||
imath
|
||||
]
|
||||
++ lib.optionals stdenv.isDarwin (
|
||||
with darwin.apple_sdk.frameworks;
|
||||
[
|
||||
OpenGL
|
||||
Cocoa
|
||||
]
|
||||
)
|
||||
++ lib.optionals (!stdenv.isDarwin) [
|
||||
libX11
|
||||
libXt
|
||||
libGL
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "MATERIALX_BUILD_OIIO" true)
|
||||
(lib.cmakeBool "MATERIALX_BUILD_PYTHON" true)
|
||||
# don't build MSL shader back-end on x86_x64-darwin, as it requires a newer SDK with metal support
|
||||
(lib.cmakeBool "MATERIALX_BUILD_GEN_MSL" (stdenv.isLinux || (stdenv.isAarch64 && stdenv.isDarwin)))
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "MaterialX" ];
|
||||
|
||||
postInstall = ''
|
||||
# Make python lib properly accessible
|
||||
target_dir=$out/${python3.sitePackages}
|
||||
mkdir -p $(dirname $target_dir)
|
||||
# required for cmake to find the bindings, when included in other projects
|
||||
ln -s $out/python $target_dir
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Open standard for representing rich material and look-development content in computer graphics";
|
||||
homepage = "https://materialx.org";
|
||||
maintainers = [ lib.maintainers.gador ];
|
||||
platforms = lib.platforms.unix;
|
||||
license = lib.licenses.mpl20;
|
||||
};
|
||||
}
|
||||
@@ -12,7 +12,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "OpenPathGuidingLibrary";
|
||||
repo = finalAttrs.pname;
|
||||
repo = "openpgl";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-dbHmGGiHQkU0KPpQYpY/o0uCWdb3L5namETdOcOREgs=";
|
||||
};
|
||||
@@ -31,12 +31,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"-DTBB_ROOT=${tbb.out}"
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isAarch64 "-flax-vector-conversions";
|
||||
env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isAarch64 && !stdenv.isDarwin) "-flax-vector-conversions";
|
||||
|
||||
meta = {
|
||||
description = "Intel Open Path Guiding Library";
|
||||
homepage = "https://github.com/OpenPathGuidingLibrary/openpgl";
|
||||
platforms = lib.platforms.linux;
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = [ lib.maintainers.amarshall ];
|
||||
license = lib.licenses.asl20;
|
||||
};
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
renode.overrideAttrs (finalAttrs: _: {
|
||||
pname = "renode-unstable";
|
||||
version = "1.15.0+20240502gita79411a5d";
|
||||
version = "1.15.0+20240509git8750f2500";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://builds.renode.io/renode-${finalAttrs.version}.linux-portable.tar.gz";
|
||||
hash = "sha256-JgmoVTFq5z/4YFnmqn/nct7M50JOevQHWfMsaVtBybo=";
|
||||
hash = "sha256-bvPY+VPKCHG0/QHBsM7frU0+9sSMHV0ImISChHfWiAE=";
|
||||
};
|
||||
|
||||
passthru.updateScript =
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
stdenv,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "sse2neon";
|
||||
version = "1.7.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "DLTcollab";
|
||||
repo = "sse2neon";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-riFFGIA0H7e5StYSjO0/JDrduzfwS+lOASzk5BRUyo4=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# remove warning about gcc < 10
|
||||
substituteInPlace sse2neon.h --replace-fail "#warning \"GCC versions" "// "
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
dontInstall = true;
|
||||
# use postBuild instead of installPhase, because the build
|
||||
# in itself doesn't produce any ($out) output
|
||||
postBuild = ''
|
||||
mkdir -p $out/lib
|
||||
install -m444 sse2neon.h $out/lib/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Mono library that provides a GDI+-compatible API on non-Windows operating systems";
|
||||
homepage = "https://www.mono-project.com/docs/gui/libgdiplus/";
|
||||
platforms = lib.platforms.unix;
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.gador ];
|
||||
};
|
||||
})
|
||||
@@ -9,16 +9,16 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "erg";
|
||||
version = "0.6.35";
|
||||
version = "0.6.36";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "erg-lang";
|
||||
repo = "erg";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-aDYT2bXd2OcRRgYd6ycjeLPQ1LuRxejivhEFkiqZoGw=";
|
||||
hash = "sha256-fwuAlIUPEzc2ZjKJ+4gdzXM679MAAJpg9Mh0d7LAt5s=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-I5g+Nqdr/UYS/+F9sGelOSnb2vnT5vHc0/VeRASBsQY=";
|
||||
cargoHash = "sha256-MfetCaYK5bBsV6EszNkwqlBFMykmLW7jX4gZWuIbHek=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import ./generic.nix {
|
||||
major_version = "5";
|
||||
minor_version = "2";
|
||||
patch_version = "0-beta2";
|
||||
src = fetchTarball {
|
||||
url = "https://caml.inria.fr/pub/distrib/ocaml-5.2/ocaml-5.2.0~beta2.tar.xz";
|
||||
sha256 = "sha256:1cyw0w79j7kyr3x0ivsqm1si704b29ic33yj621dq7f125jabk00";
|
||||
};
|
||||
patch_version = "0";
|
||||
sha256 = "sha256-L0v0efUUefm/jH8WlKbqcza793T0rW2mtZ0a1JOd2Kc=";
|
||||
}
|
||||
|
||||
@@ -23,7 +23,10 @@
|
||||
, testers
|
||||
, gobject-introspection
|
||||
, mesonEmulatorHook
|
||||
, withIntrospection ? stdenv.hostPlatform.emulatorAvailable buildPackages && lib.meta.availableOn stdenv.hostPlatform gobject-introspection
|
||||
, withIntrospection ?
|
||||
stdenv.hostPlatform.emulatorAvailable buildPackages &&
|
||||
lib.meta.availableOn stdenv.hostPlatform gobject-introspection &&
|
||||
stdenv.hostPlatform.isLittleEndian == stdenv.buildPlatform.isLittleEndian
|
||||
}:
|
||||
|
||||
assert stdenv.isLinux -> util-linuxMinimal != null;
|
||||
|
||||
@@ -3,34 +3,54 @@
|
||||
config,
|
||||
cudaPackages,
|
||||
cudaSupport ? config.cudaSupport,
|
||||
darwin,
|
||||
fetchzip,
|
||||
ispc,
|
||||
lib,
|
||||
python3,
|
||||
stdenv,
|
||||
tbb,
|
||||
xcodebuild,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
let
|
||||
stdenv' = if stdenv.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
|
||||
in
|
||||
stdenv'.mkDerivation (finalAttrs: {
|
||||
pname = "openimagedenoise";
|
||||
version = "2.2.2";
|
||||
|
||||
# The release tarballs include pretrained weights, which would otherwise need to be fetched with git-lfs
|
||||
src = fetchzip {
|
||||
url = "https://github.com/OpenImageDenoise/oidn/releases/download/v${version}/oidn-${version}.src.tar.gz";
|
||||
url = "https://github.com/OpenImageDenoise/oidn/releases/download/v${finalAttrs.version}/oidn-${finalAttrs.version}.src.tar.gz";
|
||||
sha256 = "sha256-ZIrs4oEb+PzdMh2x2BUFXKyu/HBlFb3CJX24ciEHy3Q=";
|
||||
};
|
||||
|
||||
patches = lib.optional cudaSupport ./cuda.patch;
|
||||
|
||||
postPatch =
|
||||
''
|
||||
substituteInPlace devices/metal/CMakeLists.txt \
|
||||
--replace-fail "AppleClang" "Clang"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
python3
|
||||
ispc
|
||||
] ++ lib.optional cudaSupport cudaPackages.cuda_nvcc;
|
||||
] ++ lib.optional cudaSupport cudaPackages.cuda_nvcc
|
||||
++ lib.optionals stdenv.isDarwin [ xcodebuild ];
|
||||
|
||||
buildInputs =
|
||||
[ tbb ]
|
||||
++ lib.optionals stdenv.isDarwin (
|
||||
with darwin.apple_sdk_11_0.frameworks;
|
||||
[
|
||||
Accelerate
|
||||
MetalKit
|
||||
MetalPerformanceShadersGraph
|
||||
]
|
||||
)
|
||||
++ lib.optionals cudaSupport [
|
||||
cudaPackages.cuda_cudart
|
||||
cudaPackages.cuda_cccl
|
||||
@@ -50,4 +70,4 @@ stdenv.mkDerivation rec {
|
||||
platforms = platforms.unix;
|
||||
changelog = "https://github.com/OpenImageDenoise/oidn/blob/v${version}/CHANGELOG.md";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec
|
||||
|
||||
buildInputs = [ boost tbb jemalloc c-blosc zlib ];
|
||||
|
||||
cmakeFlags = [ "-DOPENVDB_CORE_STATIC=OFF" ];
|
||||
cmakeFlags = [ "-DOPENVDB_CORE_STATIC=OFF" "-DOPENVDB_BUILD_NANOVDB=ON"];
|
||||
|
||||
# error: aligned deallocation function of type 'void (void *, std::align_val_t) noexcept' is only available on macOS 10.13 or newer
|
||||
env = lib.optionalAttrs (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13" && lib.versionAtLeast tbb.version "2021.8.0") {
|
||||
|
||||
@@ -1,19 +1,38 @@
|
||||
{ lib, stdenv, fetchFromGitHub, cmake, libminc, netpbm }:
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
cmake,
|
||||
libminc,
|
||||
netpbm,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bicpl";
|
||||
version = "unstable-2020-10-15";
|
||||
version = "unstable-2023-01-19";
|
||||
|
||||
# current master is significantly ahead of most recent release, so use Git version:
|
||||
# master is not actively maintained, using develop and develop-apple branches
|
||||
src = fetchFromGitHub {
|
||||
owner = "BIC-MNI";
|
||||
repo = pname;
|
||||
rev = "a58af912a71a4c62014975b89ef37a8e72de3c9d";
|
||||
sha256 = "0iw0pmr8xrifbx5l8a0xidfqbm1v8hwzqrw0lcmimxlzdihyri0g";
|
||||
owner = "BIC-MNI";
|
||||
repo = pname;
|
||||
rev = "884b3ac8db945a17df51a325d29f49b825a61c3e";
|
||||
hash = "sha256-zAA+hPwjMawQ1rJuv8W30EqKO+AI0aq9ybquBnKlzC0=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# fixes build by including missing time.h header
|
||||
(fetchpatch {
|
||||
url = "https://github.com/RaghavSood/bicpl/commit/3def4acd6bae61ff7a930ef8422ad920690382a6.patch";
|
||||
hash = "sha256-VdAKuLWTZY7JriK1rexIiuj8y5ToaSEJ5Y+BbnfdYnI=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ libminc netpbm ];
|
||||
buildInputs = [
|
||||
libminc
|
||||
netpbm
|
||||
];
|
||||
|
||||
cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/cmake" ];
|
||||
|
||||
@@ -25,6 +44,9 @@ stdenv.mkDerivation rec {
|
||||
description = "Brain Imaging Centre programming library";
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
platforms = platforms.unix;
|
||||
license = with licenses; [ hpndUc gpl3Plus ];
|
||||
license = with licenses; [
|
||||
hpndUc
|
||||
gpl3Plus
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -709,9 +709,11 @@ in
|
||||
propagatedBuildInputs = oa.propagatedBuildInputs ++ [ sol2 ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt --replace-fail \
|
||||
"TOML_PLUS_PLUS_SRC" \
|
||||
"${tomlplusplus.src}"
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace-fail "TOML_PLUS_PLUS_SRC" "${tomlplusplus.src}/include/toml++" \
|
||||
--replace-fail "MAGIC_ENUM_SRC" "${magic-enum.src}/include/magic_enum"
|
||||
|
||||
cat CMakeLists.txt
|
||||
'';
|
||||
});
|
||||
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index faae37a..6990d4a 100644
|
||||
index ab3884c..c0fd356 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -38,26 +38,17 @@ include(FetchContent)
|
||||
@@ -38,32 +38,23 @@ include(FetchContent)
|
||||
|
||||
FetchContent_Declare(
|
||||
${TOML++}
|
||||
- GIT_REPOSITORY "https://github.com/marzer/tomlplusplus.git"
|
||||
- GIT_SHALLOW ON
|
||||
- GIT_SUBMODULES ""
|
||||
- GIT_TAG "v3.4.0"
|
||||
+ DOWNLOAD_COMMAND true
|
||||
- GIT_TAG "v3.3.0"
|
||||
+ DOWNLOAD_COMMAND true
|
||||
)
|
||||
|
||||
FetchContent_Declare(
|
||||
@@ -19,7 +19,7 @@ index faae37a..6990d4a 100644
|
||||
- GIT_SHALLOW ON
|
||||
- GIT_SUBMODULES ""
|
||||
- GIT_TAG "v3.3.0"
|
||||
+ DOWNLOAD_COMMAND true
|
||||
+ DOWNLOAD_COMMAND true
|
||||
)
|
||||
|
||||
FetchContent_Declare(
|
||||
@@ -27,26 +27,35 @@ index faae37a..6990d4a 100644
|
||||
- GIT_REPOSITORY "https://github.com/Neargye/magic_enum.git"
|
||||
- GIT_SHALLOW ON
|
||||
- GIT_SUBMODULES ""
|
||||
- GIT_TAG "v0.9.5"
|
||||
+ DOWNLOAD_COMMAND true
|
||||
- GIT_TAG "v0.8.2"
|
||||
+ DOWNLOAD_COMMAND true
|
||||
)
|
||||
|
||||
FetchContent_GetProperties(${TOML++})
|
||||
@@ -112,7 +103,7 @@ if(NOT LUA_INCLUDE_DIR OR (WIN32 AND NOT LUA_LIBRARIES))
|
||||
if(NOT ${TOML++}_POPULATED)
|
||||
message(STATUS "Cloning ${TOML++}")
|
||||
- FetchContent_Populate(${TOML++})
|
||||
+ FetchContent_Populate(${TOML++})
|
||||
FetchContent_MakeAvailable(${TOML++})
|
||||
endif()
|
||||
|
||||
@@ -113,7 +104,7 @@ if(NOT LUA_INCLUDE_DIR OR (WIN32 AND NOT LUA_LIBRARIES))
|
||||
find_package(Lua)
|
||||
endif()
|
||||
|
||||
-include_directories(${LUA_INCLUDE_DIR} src src/include ${${TOML++}_SOURCE_DIR} ${${SOL2}_SOURCE_DIR}/include ${${MAGIC_ENUM}_SOURCE_DIR}/include)
|
||||
+include_directories(${LUA_INCLUDE_DIR} src src/include TOML_PLUS_PLUS_SRC ${${SOL2}_SOURCE_DIR}/include MAGIC_ENUM_SRC/include)
|
||||
+include_directories(${LUA_INCLUDE_DIR} src src/include TOML_PLUS_PLUS_SRC ${${SOL2}_SOURCE_DIR}/include MAGIC_ENUM_SRC)
|
||||
|
||||
set(SOURCES
|
||||
src/toml.cpp
|
||||
@@ -129,7 +120,7 @@ source_group(src FILES ${SOURCES})
|
||||
if(WIN32 AND "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" OR MSVC)
|
||||
@@ -129,8 +120,8 @@ source_group(src FILES ${SOURCES})
|
||||
|
||||
if(WIN32 AND "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
||||
target_link_options(toml.lua PUBLIC ${PROJECT_SOURCE_DIR}\\libs\\lua51.lib)
|
||||
else()
|
||||
- target_link_libraries(toml.lua ${LUA_LIBRARIES} tomlplusplus::tomlplusplus)
|
||||
+ target_link_libraries(toml.lua ${LUA_LIBRARIES} tomlplusplus)
|
||||
-else()
|
||||
- target_link_libraries(toml.lua ${LUA_LIBRARIES})
|
||||
+else()
|
||||
+ target_link_libraries(toml.lua ${LUA_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if (LINK_FLAGS)
|
||||
|
||||
@@ -569,13 +569,17 @@ with self;
|
||||
propagatedBuildInputs = [ base ppx_jane ];
|
||||
};
|
||||
|
||||
ocaml-compiler-libs = janePackage {
|
||||
ocaml-compiler-libs = janePackage ({
|
||||
pname = "ocaml-compiler-libs";
|
||||
version = "0.12.4";
|
||||
hash = "00if2f7j9d8igdkj4rck3p74y17j6b233l91mq02drzrxj199qjv";
|
||||
minimalOCamlVersion = "4.04.1";
|
||||
meta.description = "OCaml compiler libraries repackaged";
|
||||
};
|
||||
} // (if lib.versionAtLeast ocaml.version "5.2" then {
|
||||
version = "0.17.0";
|
||||
hash = "sha256-QaC6BWrpFblra6X1+TrlK+J3vZxLvLJZ2b0427DiQzM=";
|
||||
} else {
|
||||
version = "0.12.4";
|
||||
hash = "00if2f7j9d8igdkj4rck3p74y17j6b233l91mq02drzrxj199qjv";
|
||||
}));
|
||||
|
||||
ocaml-embed-file = janePackage {
|
||||
pname = "ocaml-embed-file";
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
buildOctavePackage rec {
|
||||
pname = "ga";
|
||||
version = "0.10.3";
|
||||
version = "0.10.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz";
|
||||
sha256 = "sha256-cbP7ucua7DdxLL422INxjZxz/x1pHoIq+jkjrtfaabE=";
|
||||
sha256 = "sha256-hsrjh2rZFhP6WA+qaKjiGfJkDtT2nTlXlKr3jAJ5Y44=";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiogram";
|
||||
version = "3.5.0";
|
||||
version = "3.6.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
@@ -34,7 +34,7 @@ buildPythonPackage rec {
|
||||
owner = "aiogram";
|
||||
repo = "aiogram";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-NOaI01Lb969Lp/v38u2UipN9UbOQNJQEbN2JS3lmFno=";
|
||||
hash = "sha256-8hbB6/j9mWONFNpQuC3p91xnHR/74TWA9Cq8E+Gsnlw=";
|
||||
};
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
@@ -88,6 +88,8 @@ buildPythonPackage rec {
|
||||
"coffea"
|
||||
];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Basic tools and wrappers for enabling not-too-alien syntax when running columnar Collider HEP analysis";
|
||||
homepage = "https://github.com/CoffeaTeam/coffea";
|
||||
|
||||
@@ -77,6 +77,8 @@ buildPythonPackage rec {
|
||||
"test_basic_root_works"
|
||||
];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Native Dask collection for awkward arrays, and the library to use it";
|
||||
homepage = "https://github.com/dask-contrib/dask-awkward";
|
||||
|
||||
@@ -51,6 +51,8 @@ buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "";
|
||||
homepage = "https://github.com/dask/dask-expr";
|
||||
|
||||
@@ -59,6 +59,8 @@ buildPythonPackage rec {
|
||||
"test_determinism_distributed"
|
||||
];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Generalized Linear Models with Dask";
|
||||
homepage = "https://github.com/dask/dask-glm/";
|
||||
|
||||
@@ -1,37 +1,47 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, hatch-vcs
|
||||
, hatchling
|
||||
, setuptools-scm
|
||||
, dask
|
||||
, dask-expr
|
||||
, dask-glm
|
||||
, distributed
|
||||
, fetchPypi
|
||||
, multipledispatch
|
||||
, numba
|
||||
, numpy
|
||||
, packaging
|
||||
, pandas
|
||||
, pythonOlder
|
||||
, scikit-learn
|
||||
, scipy
|
||||
, setuptools-scm
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dask-ml";
|
||||
version = "2023.3.24";
|
||||
format = "setuptools";
|
||||
version = "2024.4.4";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-lsCQ220yg2U24/Ccpk3rWZ6GRYeqjj1NLGtK9YhzMwc=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "dask";
|
||||
repo = "dask-ml";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-ZiBpCk3b4Tk0Hwb4uapJLEx+Nb/qHFROCnkBTNGDzoU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
build-system = [
|
||||
hatch-vcs
|
||||
hatchling
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
dask-expr
|
||||
dask-glm
|
||||
distributed
|
||||
multipledispatch
|
||||
@@ -44,9 +54,6 @@ buildPythonPackage rec {
|
||||
] ++ dask.optional-dependencies.array
|
||||
++ dask.optional-dependencies.dataframe;
|
||||
|
||||
# has non-standard build from source, and pypi doesn't include tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"dask_ml"
|
||||
"dask_ml.naive_bayes"
|
||||
@@ -54,10 +61,17 @@ buildPythonPackage rec {
|
||||
"dask_ml.utils"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Scalable Machine Learn with Dask";
|
||||
homepage = "https://github.com/dask/dask-ml";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ ];
|
||||
maintainers = with maintainers; [ GaetanLepage ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "distributed";
|
||||
version = "2024.4.2";
|
||||
version = "2024.5.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
@@ -34,7 +34,7 @@ buildPythonPackage rec {
|
||||
owner = "dask";
|
||||
repo = "distributed";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-xoQ+b7qzstZl9gRNs4jssNOsGQHDdvTXU7pTjBSuyWs=";
|
||||
hash = "sha256-9W5BpBQHw1ZXCOWiFPeIlMns/Yys1gtdwQ4Lhd7qjK8=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -43,7 +43,7 @@ buildPythonPackage rec {
|
||||
--replace 'dynamic = ["version"]' 'version = "${version}"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
build-system = [
|
||||
pythonRelaxDepsHook
|
||||
setuptools
|
||||
setuptools-scm
|
||||
@@ -54,7 +54,7 @@ buildPythonPackage rec {
|
||||
"dask"
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
click
|
||||
cloudpickle
|
||||
dask
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fastcore";
|
||||
version = "1.5.33";
|
||||
version = "1.5.35";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
@@ -19,7 +19,7 @@ buildPythonPackage rec {
|
||||
owner = "fastai";
|
||||
repo = "fastcore";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-Zf6bNHMiYEJrLPU1w7OvEavdKIageG+sJ9W8OE/ET0M=";
|
||||
hash = "sha256-dhYmy7dAHmmRfC2mpn49UsE4+hpqMbB1PHGmrowCTIQ=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
lib,
|
||||
libGL,
|
||||
libX11,
|
||||
libXt,
|
||||
materialx,
|
||||
ninja,
|
||||
numpy,
|
||||
opencolorio,
|
||||
@@ -86,6 +88,7 @@ buildPythonPackage rec {
|
||||
(lib.cmakeBool "PXR_BUILD_PYTHON_DOCUMENTATION" withDocs)
|
||||
(lib.cmakeBool "PXR_BUILD_USDVIEW" withUsdView)
|
||||
(lib.cmakeBool "PXR_BUILD_USD_TOOLS" withTools)
|
||||
(lib.cmakeBool "PXR_ENABLE_MATERIALX_SUPPORT" true)
|
||||
(lib.cmakeBool "PXR_ENABLE_OSL_SUPPORT" (!stdenv.isDarwin && withOsl))
|
||||
];
|
||||
|
||||
@@ -111,6 +114,7 @@ buildPythonPackage rec {
|
||||
embree
|
||||
flex
|
||||
imath
|
||||
materialx
|
||||
opencolorio
|
||||
openimageio
|
||||
opensubdiv
|
||||
@@ -120,6 +124,7 @@ buildPythonPackage rec {
|
||||
++ lib.optionals stdenv.isLinux [
|
||||
libGL
|
||||
libX11
|
||||
libXt
|
||||
]
|
||||
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk_11_0.frameworks; [ Cocoa ])
|
||||
++ lib.optionals withOsl [ osl ]
|
||||
|
||||
@@ -1,23 +1,22 @@
|
||||
{
|
||||
lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, requests
|
||||
, ruamel-yaml
|
||||
, setuptools
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, requests
|
||||
, ruamel-yaml
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "osc-sdk-python";
|
||||
version = "0.27.0";
|
||||
version = "0.29.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "outscale";
|
||||
repo = "osc-sdk-python";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-dp4yE8cTeXAPoixJ6ZtsvcTSKdYpDIebHkddUiqJe5Q=";
|
||||
hash = "sha256-WtKG2ujEGUW0nhYWxfYDkxicN/uEqBxKCh9FcCfjmHM=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchFromGitHub
|
||||
, gsl
|
||||
, swig
|
||||
, numpy
|
||||
@@ -9,12 +9,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pygsl";
|
||||
version = "2.3.3";
|
||||
version = "2.3.4";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-F3m85Bs8sONw0Rv0EAOFK6R1DFHfW4dxuzQmXo4PHfM=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "pygsl";
|
||||
repo = "pygsl";
|
||||
rev = "refs/tags/v.${version}";
|
||||
hash = "sha256-2TalLKDDoJdKGZHr7eNNvVW8fL7wQJjnZv34LJokfow=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -24,10 +26,14 @@ buildPythonPackage rec {
|
||||
buildInputs = [
|
||||
gsl
|
||||
];
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
numpy
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
python setup.py build_ext --inplace
|
||||
'';
|
||||
|
||||
preCheck = ''
|
||||
cd tests
|
||||
'';
|
||||
|
||||
@@ -24,6 +24,11 @@ buildPythonPackage rec {
|
||||
hash = "sha256-zCCypnxkBWSFoxTSwrbbo1SvfuHI+42uG+byk2o3Q0E=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-warn "numpy>=2.0.0rc1,<3" "numpy"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
numpy
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, nose, libarchive, glibcLocales, isPy27
|
||||
# unrar is non-free software
|
||||
, useUnrar ? false, unrar
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pytestCheckHook,
|
||||
libarchive,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
# unrar is non-free software
|
||||
useUnrar ? false,
|
||||
unrar,
|
||||
}:
|
||||
|
||||
assert useUnrar -> unrar != null;
|
||||
@@ -9,35 +17,47 @@ assert !useUnrar -> libarchive != null;
|
||||
buildPythonPackage rec {
|
||||
pname = "rarfile";
|
||||
version = "4.2";
|
||||
format = "setuptools";
|
||||
disabled = isPy27;
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "markokr";
|
||||
repo = "rarfile";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "sha256-ZiwD2LG25fMd4Z+QWsh/x3ceG5QRBH4s/TZDwMnfpNI=";
|
||||
hash = "sha256-ZiwD2LG25fMd4Z+QWsh/x3ceG5QRBH4s/TZDwMnfpNI=";
|
||||
};
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook nose glibcLocales ];
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace rarfile.py \
|
||||
'' + (if useUnrar then
|
||||
''--replace 'UNRAR_TOOL = "unrar"' "UNRAR_TOOL = \"${unrar}/bin/unrar\""
|
||||
prePatch =
|
||||
''
|
||||
substituteInPlace rarfile.py \
|
||||
''
|
||||
+ (
|
||||
if useUnrar then
|
||||
''
|
||||
else
|
||||
''--replace 'ALT_TOOL = "bsdtar"' "ALT_TOOL = \"${libarchive}/bin/bsdtar\""
|
||||
'')
|
||||
+ "";
|
||||
# the tests only work with the standard unrar package
|
||||
--replace 'UNRAR_TOOL = "unrar"' "UNRAR_TOOL = \"${unrar}/bin/unrar\""
|
||||
''
|
||||
else
|
||||
''
|
||||
--replace 'ALT_TOOL = "bsdtar"' "ALT_TOOL = \"${libarchive}/bin/bsdtar\""
|
||||
''
|
||||
)
|
||||
+ "";
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
# The tests only work with the standard unrar package
|
||||
doCheck = useUnrar;
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
|
||||
pythonImportsCheck = [ "rarfile" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "RAR archive reader for Python";
|
||||
homepage = "https://github.com/markokr/rarfile";
|
||||
changelog = "https://github.com/markokr/rarfile/releases/tag/v${version}";
|
||||
license = licenses.isc;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, requests
|
||||
, setuptools
|
||||
, setuptools-scm
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
requests,
|
||||
setuptools,
|
||||
setuptools-scm,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ytmusicapi";
|
||||
version = "1.6.0";
|
||||
version = "1.7.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
@@ -18,30 +19,26 @@ buildPythonPackage rec {
|
||||
owner = "sigma67";
|
||||
repo = "ytmusicapi";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-DqTcdWVivE2R51qm3XQ7cDnD1a90AocmX9TG+M5reto=";
|
||||
hash = "sha256-HMWb9NScT4rRMFsUXw6TW/T0P1eH0a46OegUZ0JceiE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
build-system = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
];
|
||||
dependencies = [ requests ];
|
||||
|
||||
doCheck = false; # requires network access
|
||||
|
||||
pythonImportsCheck = [
|
||||
"ytmusicapi"
|
||||
];
|
||||
pythonImportsCheck = [ "ytmusicapi" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python API for YouTube Music";
|
||||
mainProgram = "ytmusicapi";
|
||||
homepage = "https://github.com/sigma67/ytmusicapi";
|
||||
changelog = "https://github.com/sigma67/ytmusicapi/releases/tag/${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
mainProgram = "ytmusicapi";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "codeql";
|
||||
version = "2.17.1";
|
||||
version = "2.17.2";
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/github/codeql-cli-binaries/releases/download/v${version}/codeql.zip";
|
||||
hash = "sha256-4S6xsxLGYdkdG9SrpqTiFAq5WZMQM2TbnT7c5mRV/kE=";
|
||||
hash = "sha256-l1O3VrO1Ndfp1QIsDmTAhAiUpoOc7+TkQETsoo7m460=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "vscode-langservers-extracted";
|
||||
version = "4.8.0";
|
||||
version = "4.9.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hrsh7th";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-sGnxmEQ0J74zNbhRpsgF/cYoXwn4jh9yBVjk6UiUdK0=";
|
||||
hash = "sha256-4qAQa8Pt7Br0T770ck2F912ZddrzgTKEliSAP/qLvgE=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-LFWC87Ahvjf2moijayFze1Jk0TmTc7rOUd/s489PHro=";
|
||||
npmDepsHash = "sha256-2rRyg+UO3wnq5CuG5q87YOdGng9zBTh9aXueB0xf8ps=";
|
||||
|
||||
buildPhase =
|
||||
let
|
||||
|
||||
@@ -14,47 +14,47 @@ assert lib.assertMsg (!php.ztsSupport) "blackfire only supports non zts versions
|
||||
let
|
||||
phpMajor = lib.versions.majorMinor php.version;
|
||||
|
||||
version = "1.92.14";
|
||||
version = "1.92.15";
|
||||
|
||||
hashes = {
|
||||
"x86_64-linux" = {
|
||||
system = "amd64";
|
||||
hash = {
|
||||
"8.1" = "sha256-a6kPE2HEj92XlgGUSPmil2ply+ypW7QbqPUk4dQR/us=";
|
||||
"8.2" = "sha256-/33/RRQzSGMeV41YXmKQFMawHBS6l8ewaQRwiUnrkl4=";
|
||||
"8.3" = "sha256-M4vFfucys/DTbAm0xwhC2KZ3HrPQ0r2g8WLNzr+cWmQ=";
|
||||
"8.1" = "sha256-CTh3HdTZS5tjnSN5JUX55aioFSqs3FQfy7S5ofXlyBs=";
|
||||
"8.2" = "sha256-q/Zwpvm+pT6JdkC2nX7fEf+eDmWmtLniL+5Cys8kdNI=";
|
||||
"8.3" = "sha256-8MGY3Spa4cWqUL4S/qHKPJql5DRhtvmYEE3oBLNNm3M=";
|
||||
};
|
||||
};
|
||||
"i686-linux" = {
|
||||
system = "i386";
|
||||
hash = {
|
||||
"8.1" = "sha256-w+NRriK0F6DaWUKRF2Irphnw/5RjMZ56XRVTgY1HRqk=";
|
||||
"8.2" = "sha256-XJjQ3545cEWkWZGQIS6GAmG6d64uCCEqbTl96iX44Cw=";
|
||||
"8.3" = "sha256-2/8duEjnAA1CMfN2HEL2zH7pad9jDZMA6IrTxfMHZv4=";
|
||||
"8.1" = "sha256-mOiBQLXiPYMgHpcPTguEm0hffm+DZnv6MCbFbmRoEdE=";
|
||||
"8.2" = "sha256-3xPG33DSxnQ9a9rbTov5ILi3hPWsruNZJS1NXttxfxQ=";
|
||||
"8.3" = "sha256-4Nk+8ZIZ83/oeygDdhHI0mRRCvOEMmdWJoteDVkYuT4=";
|
||||
};
|
||||
};
|
||||
"aarch64-linux" = {
|
||||
system = "arm64";
|
||||
hash = {
|
||||
"8.1" = "sha256-DiNt17csOh3w2ZaQqattdCEbCqR0jAh2E2wm/B9EPtI=";
|
||||
"8.2" = "sha256-wGee78wfvbiPxtTdqfYAfvHZxv+dj9dYW5pDPPWgqW4=";
|
||||
"8.3" = "sha256-28n/p9gyMoPjuS6ua/UO1Z5FGdVciTrVS7Pyz2D5NVc=";
|
||||
"8.1" = "sha256-5XUk2v65ceHqnfatLq9E1+J5QRgCDpKxR4ZFpCAsfdI=";
|
||||
"8.2" = "sha256-Lr8wBAXYHXwPokwQMni5tsNncor9ZRjNwtL/5hodUq8=";
|
||||
"8.3" = "sha256-KZLPFaa5NPksfhA99S8qV3FngJTDonhG+MMPkCwxUys=";
|
||||
};
|
||||
};
|
||||
"aarch64-darwin" = {
|
||||
system = "arm64";
|
||||
hash = {
|
||||
"8.1" = "sha256-6SmWgpWGX3BKAMOdTh/CTITUKXiT681MHKgKXlrymv0=";
|
||||
"8.2" = "sha256-KHuBiFBPWlERJSfRmum74s9xZf0nT28p0NAJaYv5p7Y=";
|
||||
"8.3" = "sha256-ziLv+t+jHo4tEk7gseOOwQzFJKqGxE74XSxizl9LOrk=";
|
||||
"8.1" = "sha256-G5wrH9M+b69BLKRI4n9FydGDV/q7Ch7u+Zvol2+ptwI=";
|
||||
"8.2" = "sha256-zgcYT2oWCa2kc4wLx94nxRjg0sebjdGxuPJNbiBZ/Is=";
|
||||
"8.3" = "sha256-l1zNH47lNpHj7qRgqoxJisn7dU2VzSGFt0v8/9VpYiI=";
|
||||
};
|
||||
};
|
||||
"x86_64-darwin" = {
|
||||
system = "amd64";
|
||||
hash = {
|
||||
"8.1" = "sha256-vZLOk9cTeyHxRhvwJFrmzX9EasSfCxVXSZ8aYLysX3s=";
|
||||
"8.2" = "sha256-fk2IBiQPqAHQgaymORu/fb8Hl4yzpMeiIU12x8X8WcE=";
|
||||
"8.3" = "sha256-2mf21oTvN0LzujAKtlDuFEQgYXny8cJfBXvYBy+kIPk=";
|
||||
"8.1" = "sha256-mmmzmR4yzwmXAl6YoSOKSivF7uixGZYaFQVIqWd0Ud4=";
|
||||
"8.2" = "sha256-1jnw3BADm38C1Hi4lBs5B+kJl1karTljVHxHGEfZmtw=";
|
||||
"8.3" = "sha256-7a2JyeLP4HwyaYsb7zAio2HrUPbBVpVEOUjWKCilkFY=";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, zstd
|
||||
, stdenv
|
||||
, darwin
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
zstd,
|
||||
stdenv,
|
||||
darwin,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
@@ -22,9 +23,12 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [ zstd ] ++ lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.Security
|
||||
];
|
||||
buildInputs =
|
||||
[ zstd ]
|
||||
++ lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.Security
|
||||
darwin.apple_sdk.frameworks.SystemConfiguration
|
||||
];
|
||||
|
||||
env = {
|
||||
ZSTD_SYS_USE_PKG_CONFIG = true;
|
||||
@@ -34,8 +38,15 @@ rustPlatform.buildRustPackage rec {
|
||||
description = "Cargo plugin to generate list of all licenses for a crate";
|
||||
homepage = "https://github.com/EmbarkStudios/cargo-about";
|
||||
changelog = "https://github.com/EmbarkStudios/cargo-about/blob/${version}/CHANGELOG.md";
|
||||
license = with licenses; [ mit /* or */ asl20 ];
|
||||
maintainers = with maintainers; [ evanjs figsoda matthiasbeyer ];
|
||||
license = with licenses; [
|
||||
mit # or
|
||||
asl20
|
||||
];
|
||||
maintainers = with maintainers; [
|
||||
evanjs
|
||||
figsoda
|
||||
matthiasbeyer
|
||||
];
|
||||
mainProgram = "cargo-about";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, pkg-config
|
||||
, openssl
|
||||
, runCommand
|
||||
, patchelf
|
||||
, zlib
|
||||
, Security
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
darwin,
|
||||
rustPlatform,
|
||||
pkg-config,
|
||||
openssl,
|
||||
runCommand,
|
||||
patchelf,
|
||||
zlib,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
@@ -23,41 +24,46 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
patches =
|
||||
let
|
||||
patchelfPatch = runCommand "0001-dynamically-patchelf-binaries.patch"
|
||||
{
|
||||
CC = stdenv.cc;
|
||||
patchelf = patchelf;
|
||||
libPath = "$ORIGIN/../lib:${lib.makeLibraryPath [ zlib ]}";
|
||||
}
|
||||
''
|
||||
export dynamicLinker=$(cat $CC/nix-support/dynamic-linker)
|
||||
substitute ${./0001-dynamically-patchelf-binaries.patch} $out \
|
||||
--subst-var patchelf \
|
||||
--subst-var dynamicLinker \
|
||||
--subst-var libPath
|
||||
'';
|
||||
patchelfPatch =
|
||||
runCommand "0001-dynamically-patchelf-binaries.patch"
|
||||
{
|
||||
CC = stdenv.cc;
|
||||
patchelf = patchelf;
|
||||
libPath = "$ORIGIN/../lib:${lib.makeLibraryPath [ zlib ]}";
|
||||
}
|
||||
''
|
||||
export dynamicLinker=$(cat $CC/nix-support/dynamic-linker)
|
||||
substitute ${./0001-dynamically-patchelf-binaries.patch} $out \
|
||||
--subst-var patchelf \
|
||||
--subst-var dynamicLinker \
|
||||
--subst-var libPath
|
||||
'';
|
||||
in
|
||||
lib.optionals stdenv.isLinux [ patchelfPatch ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
Security
|
||||
];
|
||||
buildInputs =
|
||||
[ openssl ]
|
||||
++ lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.Security
|
||||
darwin.apple_sdk.frameworks.SystemConfiguration
|
||||
];
|
||||
|
||||
cargoHash = "sha256-CgEs0cejquFRY3VN6CgbE23Gipg+LEuWp/jSIkITrjw=";
|
||||
|
||||
checkFlags = [
|
||||
"--skip test_github" # requires internet
|
||||
"--skip test_github" # requires internet
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Bisects rustc, either nightlies or CI artifacts";
|
||||
mainProgram = "cargo-bisect-rustc";
|
||||
homepage = "https://github.com/rust-lang/cargo-bisect-rustc";
|
||||
license = with licenses; [ asl20 mit ];
|
||||
license = with licenses; [
|
||||
asl20
|
||||
mit
|
||||
];
|
||||
maintainers = with maintainers; [ davidtwco ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, pkg-config
|
||||
, curl
|
||||
, libgit2
|
||||
, openssl
|
||||
, Security
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "cargo-raze";
|
||||
version = "0.16.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "google";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-ip0WuBn1b7uN/pAhOl5tfmToK73ZSHK7rucdtufsbCQ=";
|
||||
};
|
||||
sourceRoot = "${src.name}/impl";
|
||||
|
||||
cargoHash = "sha256-hNZgQwhm4UPqmANplZGxG0DYHa31tu06nmqYaCA7Vdg=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
libgit2
|
||||
openssl
|
||||
curl
|
||||
]
|
||||
++ lib.optional stdenv.isDarwin Security;
|
||||
|
||||
preCheck = lib.optionalString stdenv.isDarwin ''
|
||||
# Darwin issue: Os { code: 24, kind: Uncategorized, message: "Too many open files" }
|
||||
# https://github.com/google/cargo-raze/issues/544
|
||||
ulimit -n 1024
|
||||
'';
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Generate Bazel BUILD files from Cargo dependencies";
|
||||
homepage = "https://github.com/google/cargo-raze";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ elasticdog ];
|
||||
};
|
||||
}
|
||||
@@ -28,14 +28,14 @@ assert lib.assertOneOf "backend" backend [ "opencl" "cuda" "tensorrt" "eigen" ];
|
||||
# of gcc. If you need to use cuda10, please override stdenv with gcc8Stdenv
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "katago";
|
||||
version = "1.14.0";
|
||||
githash = "c6de1bbda837a0717eaeca46102f7326ed0da0d4";
|
||||
version = "1.14.1";
|
||||
githash = "f2dc582f98a79fefeb11b2c37de7db0905318f4f";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lightvector";
|
||||
repo = "katago";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-0WB/weQIJkLXedcOJO7D/N85oXTufvbmyfIp8XdrACg=";
|
||||
hash = "sha256-ZdvHvrtSLwQ5vFMzLdJSJEiGcSent9iskPgpbL1TfhI=";
|
||||
};
|
||||
|
||||
fakegit = writeShellScriptBin "git" "echo ${githash}";
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
{ lib
|
||||
, buildHomeAssistantComponent
|
||||
, fetchFromGitHub
|
||||
, aiofiles
|
||||
, broadlink
|
||||
{
|
||||
lib,
|
||||
buildHomeAssistantComponent,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
aiofiles,
|
||||
broadlink,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
buildHomeAssistantComponent rec {
|
||||
@@ -17,6 +20,15 @@ buildHomeAssistantComponent rec {
|
||||
hash = "sha256-E6TM761cuaeQzlbjA+oZ+wt5HTJAfkF2J3i4P1Wbuic=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Replace distutils.version.StrictVersion with packaging.version.Version
|
||||
# https://github.com/smartHomeHub/SmartIR/pull/1250
|
||||
(fetchpatch {
|
||||
url = "https://github.com/smartHomeHub/SmartIR/commit/1ed8ef23a8f7b9dcae75721eeab8d5f79013b851.patch";
|
||||
hash = "sha256-IhdnTDtUa7mS+Vw/+BqfqWIKK4hbshbVgJNjfKjgAvI=";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiofiles
|
||||
broadlink
|
||||
@@ -28,6 +40,8 @@ buildHomeAssistantComponent rec {
|
||||
cp -r codes $out/custom_components/smartir/
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/smartHomeHub/SmartIR/releases/tag/v${version}";
|
||||
description = "Integration for Home Assistant to control climate, TV and fan devices via IR/RF controllers (Broadlink, Xiaomi, MQTT, LOOKin, ESPHome)";
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "weaviate";
|
||||
version = "1.24.10";
|
||||
version = "1.24.11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "weaviate";
|
||||
repo = "weaviate";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-+8l0On2A3hTkBCRGFfQVwoZcwPxcLwe0Ju2Fr2N0K50=";
|
||||
hash = "sha256-rXe9svvHu/6sQhHJ++jwb5gJEeVwoK/Z8rV7swUM3Kk=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-f7LskkQbsPwNmrzLTze0C66y++7Vqtb15tjW142TQmE=";
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
, buildPgrxExtension
|
||||
, cargo-pgrx_0_11_2
|
||||
, clang_16
|
||||
, fetchCrate
|
||||
, fetchFromGitHub
|
||||
, nix-update-script
|
||||
, nixosTests
|
||||
@@ -93,7 +92,9 @@ in
|
||||
meta = with lib; {
|
||||
# The pgrx 0.11.2 dependency is broken in aarch64-linux: https://github.com/pgcentralfoundation/pgrx/issues/1429
|
||||
# It is fixed in pgrx 0.11.3, but upstream is still using pgrx 0.11.2
|
||||
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
|
||||
# Additionally, upstream (accidentally) broke support for PostgreSQL 12 and 13 on 0.2.1, but
|
||||
# they are removing it in 0.3.0 either way: https://github.com/tensorchord/pgvecto.rs/issues/343
|
||||
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin || (versionOlder postgresql.version "14");
|
||||
description = "Scalable, Low-latency and Hybrid-enabled Vector Search in Postgres";
|
||||
homepage = "https://github.com/tensorchord/pgvecto.rs";
|
||||
license = licenses.asl20;
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
, git, nix, nixfmt-classic, jq, coreutils, gnused, curl, cacert, bash }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2024-04-25";
|
||||
version = "2024-05-03";
|
||||
pname = "oh-my-zsh";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ohmyzsh";
|
||||
repo = "ohmyzsh";
|
||||
rev = "803e1a784cd520f101d126b47deea3297e6a82fc";
|
||||
sha256 = "sha256-spfi3Jdd9yjZ+1l4uz6QX7HF996VvbHwgtlTaHSrAXM=";
|
||||
rev = "668ca3a32dae5ff5d164fc3be565f1e2ece248db";
|
||||
sha256 = "sha256-Rpqfwfs2MxNtSI5rX7XNx0oXExDgf7RAGR7nN8JAayY=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
}:
|
||||
let
|
||||
pname = "whisper-ctranslate2";
|
||||
version = "0.4.2";
|
||||
version = "0.4.3";
|
||||
in
|
||||
python3.pkgs.buildPythonApplication {
|
||||
inherit pname version;
|
||||
@@ -17,7 +17,7 @@ python3.pkgs.buildPythonApplication {
|
||||
owner = "Softcatala";
|
||||
repo = "whisper-ctranslate2";
|
||||
rev = version;
|
||||
hash = "sha256-q8ofj/MVahBRmE9BSSN9EzadDqJVSxmdTMl53YhrKzY=";
|
||||
hash = "sha256-39kVo4+ZEyjhWbLjw8acW2vJxa3fbQ/tPgnZH3USsYY=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
|
||||
@@ -41,6 +41,12 @@ python.pkgs.buildPythonApplication rec {
|
||||
postPatch = ''
|
||||
# drop coverage testing
|
||||
sed -i '/--cov/d' pytest.ini
|
||||
|
||||
# ensure component dependencies are available
|
||||
cat requirements_optional.txt >> requirements.txt
|
||||
# relax strict runtime version check
|
||||
substituteInPlace esphome/components/font/__init__.py \
|
||||
--replace-fail "10.2.0" "${python.pkgs.pillow.version}"
|
||||
'';
|
||||
|
||||
# Remove esptool and platformio from requirements
|
||||
@@ -55,6 +61,7 @@ python.pkgs.buildPythonApplication rec {
|
||||
propagatedBuildInputs = with python.pkgs; [
|
||||
aioesphomeapi
|
||||
argcomplete
|
||||
cairosvg
|
||||
click
|
||||
colorama
|
||||
cryptography
|
||||
|
||||
@@ -10,15 +10,15 @@
|
||||
|
||||
let
|
||||
inherit (stdenv.hostPlatform.uname) processor;
|
||||
version = "6.2.0";
|
||||
version = "6.3.0";
|
||||
sources = {
|
||||
"x86_64-linux" = {
|
||||
url = "https://cdn.geekbench.com/Geekbench-${version}-Linux.tar.gz";
|
||||
hash = "sha256-QoxSw825qqx1vzhzW9TZg03BPNvgOCokBWARGUhjCGY=";
|
||||
hash = "sha256-AXJ5mXGc1RWnIkB13KtIdt7vKETEXowunzQZciQDnzs=";
|
||||
};
|
||||
"aarch64-linux" = {
|
||||
url = "https://cdn.geekbench.com/Geekbench-${version}-LinuxARMPreview.tar.gz";
|
||||
hash = "sha256-m2uz5Rk34rm9Bx3j5FjFigOIKaj2c4I+uXKzU4cK4D4=";
|
||||
hash = "sha256-fbf01qa9wx3k9j8AEqv38fAM3F9tZOcnpH/wa/9rawQ=";
|
||||
};
|
||||
};
|
||||
geekbench_avx2 = lib.optionalString stdenv.isx86_64 "geekbench_avx2";
|
||||
@@ -59,7 +59,7 @@ stdenv.mkDerivation {
|
||||
homepage = "https://geekbench.com/";
|
||||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||||
license = licenses.unfree;
|
||||
maintainers = [ maintainers.michalrus ];
|
||||
maintainers = with maintainers; [ michalrus asininemonkey ];
|
||||
platforms = builtins.attrNames sources;
|
||||
mainProgram = "geekbench6";
|
||||
};
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "sqlite3-to-mysql";
|
||||
version = "2.1.9";
|
||||
version = "2.1.10";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = python3Packages.pythonOlder "3.8";
|
||||
@@ -18,7 +18,7 @@ python3Packages.buildPythonApplication rec {
|
||||
owner = "techouse";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-TnqNPW/d1dcVuS5sg9NOXH5ns7AzcbyailY2pYcpUEU=";
|
||||
hash = "sha256-E8cKgKT6Tmz5rR/E2eXDVEVdOr7kk+VbkpF+Yc7IZrw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with python3Packages; [
|
||||
|
||||
@@ -14,11 +14,11 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "kdiff3";
|
||||
version = "1.10.7";
|
||||
version = "1.11.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kde/stable/kdiff3/kdiff3-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-uj9Ky/SsdIrr78hfWcr2U9Rf6FmkjDSviZGCJKdnxeM=";
|
||||
hash = "sha256-O/N5VMoZo2Xze1WLV0yPvTZnGcCH17gheI0++tDESFE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapQtAppsHook ];
|
||||
|
||||
@@ -35,6 +35,8 @@ lib.fix (self: {
|
||||
, __combine ? false
|
||||
# adjust behavior further if called from the texlive.combine wrapper
|
||||
, __fromCombineWrapper ? false
|
||||
# build only the formats of a package (for internal use!)
|
||||
, __formatsOf ? null
|
||||
}@args:
|
||||
|
||||
let
|
||||
@@ -116,7 +118,8 @@ let
|
||||
hyphenPatterns = lib.filter (p: p ? hyphenPatterns && (p.tlOutputName or p.outputName == "tex")) nonbin;
|
||||
sortedHyphenPatterns = builtins.sort (a: b: a.pname < b.pname) hyphenPatterns;
|
||||
formatPkgs = lib.filter (p: p ? formats && (p.outputSpecified or false -> p.tlOutputName or p.outputName == "tex") && builtins.any (f: f.enabled or true) p.formats) all;
|
||||
sortedFormatPkgs = builtins.sort (a: b: a.pname < b.pname) formatPkgs;
|
||||
sortedFormatPkgs = if __formatsOf != null then [ __formatsOf ] else builtins.sort (a: b: a.pname < b.pname) formatPkgs;
|
||||
formats = map (p: self { requiredTeXPackages = ps: [ ps.scheme-infraonly p ] ++ hyphenPatterns; __formatsOf = p; }) sortedFormatPkgs;
|
||||
};
|
||||
|
||||
# list generated by inspecting `grep -IR '\([^a-zA-Z]\|^\)gs\( \|$\|"\)' "$TEXMFDIST"/scripts`
|
||||
@@ -125,7 +128,7 @@ let
|
||||
needsGhostscript = lib.any (p: lib.elem p.pname [ "context" "dvipdfmx" "latex-papersize" "lyluatex" ]) pkgList.bin;
|
||||
|
||||
name = if __combine then "texlive-${__extraName}-${bin.texliveYear}${__extraVersion}" # texlive.combine: old name name
|
||||
else "texlive-${bin.texliveYear}-env";
|
||||
else "texlive-${bin.texliveYear}-" + (if __formatsOf != null then "${__formatsOf.pname}-fmt" else "env");
|
||||
|
||||
texmfdist = buildEnv' {
|
||||
name = "${name}-texmfdist";
|
||||
@@ -260,11 +263,11 @@ buildEnv' {
|
||||
inherit name;
|
||||
|
||||
# use attrNames, attrValues to ensure the two lists are sorted in the same way
|
||||
outputs = [ "out" ] ++ lib.optionals (! __combine) (builtins.attrNames nonEnvOutputs);
|
||||
otherOutputs = lib.optionals (! __combine) (builtins.attrValues nonEnvOutputs);
|
||||
outputs = [ "out" ] ++ lib.optionals (! __combine && __formatsOf == null) (builtins.attrNames nonEnvOutputs);
|
||||
otherOutputs = lib.optionals (! __combine && __formatsOf == null) (builtins.attrValues nonEnvOutputs);
|
||||
|
||||
# remove fake derivations (without 'outPath') to avoid undesired build dependencies
|
||||
paths = builtins.catAttrs "outPath" pkgList.bin
|
||||
paths = builtins.catAttrs "outPath" pkgList.bin ++ lib.optionals (! __combine && __formatsOf == null) pkgList.formats
|
||||
++ lib.optional __combine doc;
|
||||
pathsToLink = [
|
||||
"/"
|
||||
@@ -286,7 +289,8 @@ buildEnv' {
|
||||
|
||||
buildInputs = [ coreutils gawk gnugrep gnused ] ++ lib.optional needsGhostscript ghostscript;
|
||||
|
||||
inherit meta passthru;
|
||||
inherit meta passthru __combine;
|
||||
__formatsOf = __formatsOf.pname or null;
|
||||
|
||||
inherit texmfdist texmfroot;
|
||||
|
||||
@@ -306,4 +310,4 @@ buildEnv' {
|
||||
'';
|
||||
};
|
||||
# outputsToInstall must be set *after* overrideAttrs (used in buildEnv') or it fails the checkMeta tests
|
||||
in if __combine then out else lib.addMetaAttrs { inherit (pkgList) outputsToInstall; } out)
|
||||
in if __combine || __formatsOf != null then out else lib.addMetaAttrs { inherit (pkgList) outputsToInstall; } out)
|
||||
|
||||
@@ -143,7 +143,10 @@ installtl_do_postinst_stuff () {
|
||||
# in principle, we could use writeText and share them across different
|
||||
# environments, but the eval & build overhead is not worth the savings
|
||||
tlutils_create_fmtutil
|
||||
tlutils_create_updmap
|
||||
# can be skipped if generating formats only
|
||||
if [[ -z $__formatsOf ]] ; then
|
||||
tlutils_create_updmap
|
||||
fi
|
||||
tlutils_create_language_dat
|
||||
tlutils_create_language_def
|
||||
tlutils_create_language_lua
|
||||
@@ -152,21 +155,24 @@ installtl_do_postinst_stuff () {
|
||||
tlutils_info "running mktexlsr $TEXMFSYSVAR $TEXMFSYSCONFIG"
|
||||
mktexlsr "$TEXMFSYSVAR" "$TEXMFSYSCONFIG"
|
||||
|
||||
# update font maps
|
||||
tlutils_info "generating font maps"
|
||||
updmap-sys --quiet --force --nohash 2>&1
|
||||
# configure the paper size
|
||||
# tlmgr --no-execute-actions paper letter
|
||||
# install-tl: "rerun mktexlsr for updmap-sys and tlmgr paper updates"
|
||||
tlutils_info "re-running mktexlsr $TEXMFSYSVAR $TEXMFSYSCONFIG"
|
||||
mktexlsr "$TEXMFSYSVAR" "$TEXMFSYSCONFIG"
|
||||
# can be skipped if generating formats only
|
||||
if [[ -z $__formatsOf ]] ; then
|
||||
# update font maps
|
||||
tlutils_info "generating font maps"
|
||||
updmap-sys --quiet --force --nohash 2>&1
|
||||
# configure the paper size
|
||||
# tlmgr --no-execute-actions paper letter
|
||||
# install-tl: "rerun mktexlsr for updmap-sys and tlmgr paper updates"
|
||||
tlutils_info "re-running mktexlsr $TEXMFSYSVAR $TEXMFSYSCONFIG"
|
||||
mktexlsr "$TEXMFSYSVAR" "$TEXMFSYSCONFIG"
|
||||
|
||||
tlutils_update_context_cache
|
||||
tlutils_update_context_cache
|
||||
fi
|
||||
|
||||
# generate formats
|
||||
# install-tl would run fmtutil-sys $common_fmtutil_args --no-strict --all
|
||||
# instead, we want fmtutil to exit with error on failure
|
||||
if [[ -n $fmtutilCnf ]] ; then
|
||||
if [[ -n $fmtutilCnf && -n $__combine$__formatsOf ]] ; then
|
||||
tlutils_info "pre-generating all format files, be patient..."
|
||||
# many formats still ignore SOURCE_DATE_EPOCH even when FORCE_SOURCE_DATE=1
|
||||
# libfaketime fixes non-determinism related to timestamps ignoring FORCE_SOURCE_DATE
|
||||
@@ -177,6 +183,24 @@ installtl_do_postinst_stuff () {
|
||||
substitute "$texmfdist"/scripts/texlive/fmtutil.pl fmtutil \
|
||||
--replace-fail "my \$cmdline = \"\$eng -ini " "my \$cmdline = \"faketime -f '\@$(date +'%F %T' --date=@"$SOURCE_DATE_EPOCH") x0.001' \$eng -ini "
|
||||
FORCE_SOURCE_DATE=1 perl fmtutil --quiet --strict --sys --all 2>&1 | grep '^fmtutil' # too verbose
|
||||
|
||||
# if generating formats only, delete everything else and exit
|
||||
if [[ -n $__formatsOf ]] ; then
|
||||
# see fmtutil.pl::compute_format_destination for file extensions
|
||||
find "$out" \( -type f -or -type l \) \
|
||||
-not -path "$TEXMFSYSVAR/*.mem" \
|
||||
-not -path "$TEXMFSYSVAR/*.base" \
|
||||
-not -path "$TEXMFSYSVAR/*.fmt" \
|
||||
-delete
|
||||
find "$out" -type d -empty -delete
|
||||
exit
|
||||
fi
|
||||
elif [[ -z $__combine ]] ; then
|
||||
# double check that all formats are present
|
||||
if fmtutil --quiet --strict --sys --missing --dry-run 2>&1 | grep running ; then
|
||||
tlutils_info 'formats not found, aborting'
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
installtl_do_path_adjustments
|
||||
@@ -190,7 +214,7 @@ installtl_do_postinst_stuff () {
|
||||
### TeXLive::TLUtils
|
||||
|
||||
tlutils_info () {
|
||||
printf '%s\n' "texlive: $*"
|
||||
printf "texlive${__formatsOf:+($__formatsOf-fmt)}: %s\n" "$*"
|
||||
}
|
||||
|
||||
tlutils_create_fmtutil () {
|
||||
|
||||
@@ -16610,9 +16610,7 @@ with pkgs;
|
||||
};
|
||||
cargo-benchcmp = callPackage ../development/tools/rust/cargo-benchcmp { };
|
||||
cargo-binstall = callPackage ../development/tools/rust/cargo-binstall { };
|
||||
cargo-bisect-rustc = callPackage ../development/tools/rust/cargo-bisect-rustc {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
cargo-bisect-rustc = callPackage ../development/tools/rust/cargo-bisect-rustc { };
|
||||
cargo-bitbake = callPackage ../development/tools/rust/cargo-bitbake { };
|
||||
cargo-c = callPackage ../development/tools/rust/cargo-c {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
|
||||
@@ -16729,9 +16727,6 @@ with pkgs;
|
||||
|
||||
cargo-nextest = callPackage ../development/tools/rust/cargo-nextest { };
|
||||
cargo-play = callPackage ../development/tools/rust/cargo-play { };
|
||||
cargo-raze = callPackage ../development/tools/rust/cargo-raze {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
cargo-rdme = callPackage ../by-name/ca/cargo-rdme/package.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
@@ -2010,7 +2010,7 @@ in let inherit (pkgs) callPackage; in rec
|
||||
|
||||
ocamlPackages_5_2 = mkOcamlPackages (callPackage ../development/compilers/ocaml/5.2.nix { });
|
||||
|
||||
ocamlPackages_latest = ocamlPackages_5_1;
|
||||
ocamlPackages_latest = ocamlPackages_5_2;
|
||||
|
||||
ocamlPackages = ocamlPackages_5_1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user