0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

Merge master into staging-next

This commit is contained in:
github-actions[bot] 2024-07-03 18:01:04 +00:00 committed by GitHub
commit aba75819b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 44 additions and 37 deletions

View file

@ -22,6 +22,10 @@ Meta-attributes are not passed to the builder of the package. Thus, a change to
## Standard meta-attributes {#sec-standard-meta-attributes} ## Standard meta-attributes {#sec-standard-meta-attributes}
If the package is to be submitted to Nixpkgs, please check out the
[requirements for meta attributes](https://github.com/NixOS/nixpkgs/tree/master/pkgs#meta-attributes)
in the contributing documentation.
It is expected that each meta-attribute is one of the following: It is expected that each meta-attribute is one of the following:
### `description` {#var-meta-description} ### `description` {#var-meta-description}
@ -29,11 +33,21 @@ It is expected that each meta-attribute is one of the following:
A short (one-line) description of the package. A short (one-line) description of the package.
This is displayed on [search.nixos.org](https://search.nixos.org/packages). This is displayed on [search.nixos.org](https://search.nixos.org/packages).
Dont include a period at the end. Dont include newline characters. Capitalise the first character. For brevity, dont repeat the name of package --- just describe what it does. The general requirements of a description are:
- Be short, just one sentence.
- Be capitalized.
- Not start with definite ("The") or indefinite ("A"/"An") article.
- Not start with the package name.
- More generally, it should not refer to the package name.
- Not end with a period (or any punctuation for that matter).
- Provide factual information.
- Avoid subjective language.
Wrong: `"libpng is a library that allows you to decode PNG images."` Wrong: `"libpng is a library that allows you to decode PNG images."`
Right: `"A library for decoding PNG images"` Right: `"Library for decoding PNG images"`
### `longDescription` {#var-meta-longDescription} ### `longDescription` {#var-meta-longDescription}

View file

@ -4750,12 +4750,6 @@
github = "deinferno"; github = "deinferno";
githubId = 14363193; githubId = 14363193;
}; };
delan = {
name = "Delan Azabani";
email = "delan@azabani.com";
github = "delan";
githubId = 465303;
};
delehef = { delehef = {
name = "Franklin Delehelle"; name = "Franklin Delehelle";
email = "nix@odena.eu"; email = "nix@odena.eu";

View file

@ -33,14 +33,14 @@ let
}.${system} or throwSystem; }.${system} or throwSystem;
hash = { hash = {
x86_64-linux = "sha256-nZg0Ha457zrBgYpKIHgGkDxTVQSRthQCCxtT2xWtAlQ="; x86_64-linux = "sha256-yShTvGcmWwa5bhZP0QYgDtOvTAdnWsFTBnHB309ya/s=";
}.${system} or throwSystem; }.${system} or throwSystem;
displayname = "XPipe"; displayname = "XPipe";
in stdenvNoCC.mkDerivation rec { in stdenvNoCC.mkDerivation rec {
pname = "xpipe"; pname = "xpipe";
version = "9.4.1"; version = "10.0";
src = fetchzip { src = fetchzip {
url = "https://github.com/xpipe-io/xpipe/releases/download/${version}/xpipe-portable-linux-${arch}.tar.gz"; url = "https://github.com/xpipe-io/xpipe/releases/download/${version}/xpipe-portable-linux-${arch}.tar.gz";

View file

@ -71,13 +71,13 @@ let
in in
effectiveStdenv.mkDerivation (finalAttrs: { effectiveStdenv.mkDerivation (finalAttrs: {
pname = "llama-cpp"; pname = "llama-cpp";
version = "3091"; version = "3260";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ggerganov"; owner = "ggerganov";
repo = "llama.cpp"; repo = "llama.cpp";
rev = "refs/tags/b${finalAttrs.version}"; rev = "refs/tags/b${finalAttrs.version}";
hash = "sha256-ppujag6Nrk/M9QMQ4mYe2iADsfKzmfKtOP8Ib7GZBmk="; hash = "sha256-0KVwSzxfGinpv5KkDCgF2J+1ijDv87PlDrC+ldscP6s=";
leaveDotGit = true; leaveDotGit = true;
postFetch = '' postFetch = ''
git -C "$out" rev-parse --short HEAD > $out/COMMIT git -C "$out" rev-parse --short HEAD > $out/COMMIT
@ -86,12 +86,12 @@ effectiveStdenv.mkDerivation (finalAttrs: {
}; };
postPatch = '' postPatch = ''
substituteInPlace ./ggml-metal.m \ substituteInPlace ./ggml/src/ggml-metal.m \
--replace-fail '[bundle pathForResource:@"ggml-metal" ofType:@"metal"];' "@\"$out/bin/ggml-metal.metal\";" --replace-fail '[bundle pathForResource:@"ggml-metal" ofType:@"metal"];' "@\"$out/bin/ggml-metal.metal\";"
substituteInPlace ./scripts/build-info.cmake \ substituteInPlace ./scripts/build-info.sh \
--replace-fail 'set(BUILD_NUMBER 0)' 'set(BUILD_NUMBER ${finalAttrs.version})' \ --replace-fail 'build_number="0"' 'build_number="${finalAttrs.version}"' \
--replace-fail 'set(BUILD_COMMIT "unknown")' "set(BUILD_COMMIT \"$(cat COMMIT)\")" --replace-fail 'build_commit="unknown"' "build_commit=\"$(cat COMMIT)\""
''; '';
nativeBuildInputs = [ cmake ninja pkg-config git ] nativeBuildInputs = [ cmake ninja pkg-config git ]
@ -109,17 +109,16 @@ effectiveStdenv.mkDerivation (finalAttrs: {
cmakeFlags = [ cmakeFlags = [
# -march=native is non-deterministic; override with platform-specific flags if needed # -march=native is non-deterministic; override with platform-specific flags if needed
(cmakeBool "LLAMA_NATIVE" false) (cmakeBool "GGML_NATIVE" false)
(cmakeBool "BUILD_SHARED_SERVER" true) (cmakeBool "LLAMA_BUILD_SERVER" true)
(cmakeBool "BUILD_SHARED_LIBS" true) (cmakeBool "BUILD_SHARED_LIBS" true)
(cmakeBool "BUILD_SHARED_LIBS" true) (cmakeBool "GGML_BLAS" blasSupport)
(cmakeBool "LLAMA_BLAS" blasSupport) (cmakeBool "GGML_CLBLAST" openclSupport)
(cmakeBool "LLAMA_CLBLAST" openclSupport) (cmakeBool "GGML_CUDA" cudaSupport)
(cmakeBool "LLAMA_CUDA" cudaSupport) (cmakeBool "GGML_HIPBLAS" rocmSupport)
(cmakeBool "LLAMA_HIPBLAS" rocmSupport) (cmakeBool "GGML_METAL" metalSupport)
(cmakeBool "LLAMA_METAL" metalSupport) (cmakeBool "GGML_RPC" rpcSupport)
(cmakeBool "LLAMA_RPC" rpcSupport) (cmakeBool "GGML_VULKAN" vulkanSupport)
(cmakeBool "LLAMA_VULKAN" vulkanSupport)
] ]
++ optionals cudaSupport [ ++ optionals cudaSupport [
(cmakeFeature "CMAKE_CUDA_ARCHITECTURES" cudaPackages.flags.cmakeCudaArchitecturesString) (cmakeFeature "CMAKE_CUDA_ARCHITECTURES" cudaPackages.flags.cmakeCudaArchitecturesString)
@ -138,7 +137,6 @@ effectiveStdenv.mkDerivation (finalAttrs: {
(cmakeFeature "CMAKE_C_FLAGS" "-D__ARM_FEATURE_DOTPROD=1") (cmakeFeature "CMAKE_C_FLAGS" "-D__ARM_FEATURE_DOTPROD=1")
(cmakeBool "LLAMA_METAL_EMBED_LIBRARY" true) (cmakeBool "LLAMA_METAL_EMBED_LIBRARY" true)
] ++ optionals rpcSupport [ ] ++ optionals rpcSupport [
"-DLLAMA_RPC=ON"
# This is done so we can move rpc-server out of bin because llama.cpp doesn't # This is done so we can move rpc-server out of bin because llama.cpp doesn't
# install rpc-server in their install target. # install rpc-server in their install target.
"-DCMAKE_SKIP_BUILD_RPATH=ON" "-DCMAKE_SKIP_BUILD_RPATH=ON"
@ -147,10 +145,11 @@ effectiveStdenv.mkDerivation (finalAttrs: {
# upstream plans on adding targets at the cmakelevel, remove those # upstream plans on adding targets at the cmakelevel, remove those
# additional steps after that # additional steps after that
postInstall = '' postInstall = ''
mv $out/bin/main $out/bin/llama # Match previous binary name for this package
mv $out/bin/server $out/bin/llama-server ln -sf $out/bin/llama-cli $out/bin/llama
mkdir -p $out/include mkdir -p $out/include
cp $src/llama.h $out/include/ cp $src/include/llama.h $out/include/
'' + optionalString rpcSupport "cp bin/rpc-server $out/bin/llama-rpc-server"; '' + optionalString rpcSupport "cp bin/rpc-server $out/bin/llama-rpc-server";
passthru.updateScript = nix-update-script { passthru.updateScript = nix-update-script {

View file

@ -6,16 +6,16 @@
buildNpmPackage rec { buildNpmPackage rec {
pname = "zwave-js-server"; pname = "zwave-js-server";
version = "1.35.0"; version = "1.36.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "zwave-js"; owner = "zwave-js";
repo = pname; repo = pname;
rev = version; rev = version;
hash = "sha256-9TUS8m3Vizs36GVYaDQTRXPO8zLLJUs8RPkArRRCqsw="; hash = "sha256-+GyQy7CVd3t98kUDTpPzmPs5WNU8Ct/e+kHPh08gb0Q=";
}; };
npmDepsHash = "sha256-zTcN04g7EsLFCA+rdqhSQMy06NoMFYCyiUxe9ck2kIE="; npmDepsHash = "sha256-u9Y9yOLZZ+DnFYAAhF0SUa+qW+Mj+3duzAKKS6xCkp0=";
# For some reason the zwave-js dependency is in devDependencies # For some reason the zwave-js dependency is in devDependencies
npmFlags = [ "--include=dev" ]; npmFlags = [ "--include=dev" ];

View file

@ -35,7 +35,7 @@ let
unfreeRedistributable # osu-framework contains libbass.so in repository unfreeRedistributable # osu-framework contains libbass.so in repository
]; ];
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
maintainers = with lib.maintainers; [ delan gepbird spacefault stepbrobd ]; maintainers = with lib.maintainers; [ gepbird spacefault stepbrobd ];
mainProgram = "osu!"; mainProgram = "osu!";
platforms = [ "aarch64-darwin" "x86_64-darwin" "x86_64-linux" ]; platforms = [ "aarch64-darwin" "x86_64-darwin" "x86_64-linux" ];
}; };

View file

@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
homepage = "https://onlinesupport.fujixerox.com"; homepage = "https://onlinesupport.fujixerox.com";
sourceProvenance = with sourceTypes; [ binaryNativeCode ]; sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = licenses.unfree; license = licenses.unfree;
maintainers = with maintainers; [ delan ]; maintainers = with maintainers; [ ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }

View file

@ -54,7 +54,7 @@ stdenv.mkDerivation rec {
homepage = "https://onlinesupport.fujixerox.com"; homepage = "https://onlinesupport.fujixerox.com";
sourceProvenance = with sourceTypes; [ binaryNativeCode ]; sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = licenses.unfree; license = licenses.unfree;
maintainers = with maintainers; [ delan ]; maintainers = with maintainers; [ ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }

View file

@ -44,7 +44,7 @@ rustPlatform.buildRustPackage rec {
description = "DNS query tool"; description = "DNS query tool";
homepage = "https://crates.io/crates/bore"; homepage = "https://crates.io/crates/bore";
license = licenses.isc; license = licenses.isc;
maintainers = [ maintainers.delan ]; maintainers = [ ];
mainProgram = "bore"; mainProgram = "bore";
broken = stdenv.isDarwin; # bindgen fails on: "in6_addr_union_(...)" is not a valid Ident broken = stdenv.isDarwin; # bindgen fails on: "in6_addr_union_(...)" is not a valid Ident
}; };