Merge master into staging-next

This commit is contained in:
github-actions[bot] 2024-11-21 03:40:39 +00:00 committed by GitHub
commit 15daf99b9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 105 additions and 20 deletions

View File

@ -10,16 +10,16 @@ let
in in
rustPlatform.buildRustPackage { rustPlatform.buildRustPackage {
pname = "lspce-module"; pname = "lspce-module";
version = "1.1.0-unstable-2024-09-07"; version = "1.1.0-unstable-2024-10-07";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "zbelial"; owner = "zbelial";
repo = "lspce"; repo = "lspce";
rev = "4bf1fa9d3d8b17eb6ae628e93018ee8f020565ba"; rev = "2a06232033478757dc5770dc7ba658848073de42";
hash = "sha256-OeDUQXqVBUfKjYt5oSmfl2N/19PFYIbPXfFqloai0LQ="; hash = "sha256-iCge/m1z4Tl3dDvbN4FGsINWE5GEtLxTlvBBu8Zxhzs=";
}; };
cargoHash = "sha256-VMGdB4dF3Ccxl6DifdXFH4+XVT7RoeqI/l/AR/epg4o="; cargoHash = "sha256-I3NxV0uIwQ/Vg9Txfx+ouA6FXOYyLQ2kKdhnAdkNfdE=";
checkFlags = [ checkFlags = [
# flaky test # flaky test

View File

@ -11,13 +11,13 @@
buildGoModule rec { buildGoModule rec {
pname = "fzf"; pname = "fzf";
version = "0.56.2"; version = "0.56.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "junegunn"; owner = "junegunn";
repo = "fzf"; repo = "fzf";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-POSploJmwMA3ZTYtQh3k45gaumG1dsuyyGn4CRO4qfY="; hash = "sha256-m/RtAjqB6YTwmzCUdKQx/e7vxqJOu1Y1N0u28i8gwEs=";
}; };
vendorHash = "sha256-4VAAka9FvKuoDZ1E1v9Es3r00GZeG8Jp4pJONYpB/t8="; vendorHash = "sha256-4VAAka9FvKuoDZ1E1v9Es3r00GZeG8Jp4pJONYpB/t8=";

View File

@ -173,5 +173,6 @@ rustPlatform.buildRustPackage rec {
techknowlogick techknowlogick
]; ];
platforms = lib.platforms.linux ++ lib.platforms.darwin; platforms = lib.platforms.linux ++ lib.platforms.darwin;
broken = true; # build fails on darwin and linux
}; };
} }

View File

@ -0,0 +1,15 @@
{
"serif" = "sha256-8ygaAeMKygYS4GCub4YUQmkh87pYHfi3s0PQ6AbaeGw=";
"sans" = "sha256-mK+8GGl2ugF2+fS6yd3p5NWPHHcKEJWiShDS3lihOlI=";
"sans-condensed" = "sha256-/aJTXmrHuoPSrtCKNodBY7I0CriayNTx5LCXw+/MFvE=";
"sans-arabic" = "sha256-qi4k7kMLftIuq87idyxq46FOD6QYycdG6j3zJmu8mhI=";
"sans-devanagari" = "sha256-K57OVqcH5r9tZx8NFEoz1P3xpUooqpF7xxJzNmnObwE=";
"sans-thai" = "sha256-JZVbvZdj+IfBthiqivOXHrvAUe392M9ECGsiJkm0saE=";
"sans-thai-looped" = "sha256-cry/Ctwt1bsrdbvWkJIYWLjsvV6a1lLFsT85znqERnw=";
"sans-tc" = "sha256-kZvzSK6fEjfVMR4kxC4lxtD7GskqvJZx8BBJVT4T9MU=";
"sans-kr" = "sha256-FsHxMvLlI4yylgG96DOZIdW2DYpk7I+c5QgkVIkNZIE=";
"sans-jp" = "sha256-hUl/SSkN6q3pDTtrY2mJepw3ljhhLJskGbxfsTl9TuI=";
"sans-hebrew" = "sha256-rTuBQYLI+6gEFTumCdaWpeoLzRoyFSmqWbXziq+UG6I=";
"mono" = "sha256-OwUmrPfEehLDz0fl2ChYLK8FQM2p0G1+EMrGsYEq+6g=";
"math" = "sha256-dJA6uqxa/yb3eLY4l39NeP0yIl2NfrbaRpf6h0/F7Xc=";
}

View File

@ -1,28 +1,51 @@
{ lib, stdenvNoCC, fetchzip }: {
lib,
stdenvNoCC,
fetchzip,
families ? [ ],
}:
let
version = import ./version.nix;
availableFamilies = import ./hashes.nix;
stdenvNoCC.mkDerivation rec { availableFamilyNames = builtins.attrNames availableFamilies;
selectedFamilies = if (families == [ ]) then availableFamilyNames else families;
unknownFamilies = lib.subtractLists availableFamilyNames families;
in
assert lib.assertMsg (unknownFamilies == [ ]) "Unknown font(s): ${toString unknownFamilies}";
stdenvNoCC.mkDerivation {
pname = "ibm-plex"; pname = "ibm-plex";
version = "6.4.0"; inherit version;
src = fetchzip { srcs = builtins.map (
url = "https://github.com/IBM/plex/releases/download/v${version}/OpenType.zip"; family:
hash = "sha256-/aR3bu03VxenSPed6EqrGoPjWCcKT//MVtb9OC8tSRs="; fetchzip {
}; url = "https://github.com/IBM/plex/releases/download/%40ibm%2Fplex-${family}%40${version}/ibm-plex-${family}.zip";
hash = availableFamilies.${family};
}
) selectedFamilies;
dontUnpack = true;
sourceRoot = ".";
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
find $srcs -type f -name '*.otf' -exec install -Dm644 {} -t $out/share/fonts/opentype \;
install -Dm644 */*.otf IBM-Plex-Sans-JP/unhinted/* -t $out/share/fonts/opentype
runHook postInstall runHook postInstall
''; '';
passthru.updateScript = ./update.sh;
meta = with lib; { meta = with lib; {
description = "IBM Plex Typeface"; description = "IBM Plex Typeface";
homepage = "https://www.ibm.com/plex/"; homepage = "https://www.ibm.com/plex/";
changelog = "https://github.com/IBM/plex/raw/v${version}/CHANGELOG.md"; changelog = "https://github.com/IBM/plex/raw/v${version}/CHANGELOG.md";
license = licenses.ofl; license = licenses.ofl;
platforms = platforms.all; platforms = platforms.all;
maintainers = [ maintainers.romildo ]; maintainers = with maintainers; [
romildo
ryanccn
];
}; };
} }

View File

@ -0,0 +1,42 @@
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p nix nix-prefetch jq
# shellcheck shell=bash
set -eo pipefail
families=(
"serif"
"sans"
"sans-condensed"
"sans-arabic"
"sans-devanagari"
"sans-thai"
"sans-thai-looped"
"sans-tc"
"sans-kr"
"sans-jp"
"sans-hebrew"
"mono"
"math"
)
version=$(curl --silent 'https://api.github.com/repos/IBM/plex/releases/latest' | jq -r '.tag_name | sub("^@ibm/[\\w-]+@"; "")')
dirname="$(dirname "$0")"
echo \""${version}"\" >"$dirname/version-new.nix"
if diff -q "$dirname/version-new.nix" "$dirname/version.nix"; then
echo No new version available, current: "$version"
rm "$dirname/version-new.nix"
exit 0
else
echo Updated to version "$version"
mv "$dirname/version-new.nix" "$dirname/version.nix"
fi
printf '{\n' > "$dirname/hashes.nix"
for family in "${families[@]}"; do
url="https://github.com/IBM/plex/releases/download/%40ibm%2Fplex-${family}%40${version}/ibm-plex-${family}.zip"
printf ' "%s" = "%s";\n' "$family" "$(nix-prefetch-url --unpack "$url" | xargs nix hash convert --hash-algo sha256)" >>"$dirname/hashes.nix"
done
printf '}\n' >> "$dirname/hashes.nix"

View File

@ -0,0 +1 @@
"1.1.0"

View File

@ -9,7 +9,7 @@
buildGo123Module rec { buildGo123Module rec {
pname = "telegraf"; pname = "telegraf";
version = "1.32.2"; version = "1.32.3";
subPackages = [ "cmd/telegraf" ]; subPackages = [ "cmd/telegraf" ];
@ -17,10 +17,10 @@ buildGo123Module rec {
owner = "influxdata"; owner = "influxdata";
repo = "telegraf"; repo = "telegraf";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-hqYBoaklrdCkTwnkwqkZAvGLyWkUB3CVu4cg3Ujbyto="; hash = "sha256-H/thJ88cfl75rRByLYIjpPx6lfBSSryhYii8jBl/PBA=";
}; };
vendorHash = "sha256-KRZ5Rrdp69DTHtNu8vXuD7QKy2n6Sx7myNpB5TSZpRk="; vendorHash = "sha256-3Wcbl4DM4SHvctVvQTsqQNRkB3z+273kvM/KwypmB70=";
proxyVendor = true; proxyVendor = true;
ldflags = [ ldflags = [

View File

@ -118,5 +118,6 @@ in buildRubyGem rec {
license = licenses.bsl11; license = licenses.bsl11;
maintainers = with maintainers; [ tylerjl ]; maintainers = with maintainers; [ tylerjl ];
platforms = with platforms; linux ++ darwin; platforms = with platforms; linux ++ darwin;
broken = true; # build fails on darwin and linux
}; };
} }

View File

@ -137,5 +137,6 @@ stdenv.mkDerivation {
maintainers = [ ]; maintainers = [ ];
license = lib.licenses.bsl11; license = lib.licenses.bsl11;
platforms = lib.platforms.all; platforms = lib.platforms.all;
broken = true; # `codon-llvm` build fails on darwin and linux
}; };
} }

View File

@ -158,5 +158,6 @@ in stdenv.mkDerivation rec {
]; ];
maintainers = with maintainers; [ kini raskin ]; maintainers = with maintainers; [ kini raskin ];
platforms = platforms.all; platforms = platforms.all;
broken = stdenv.hostPlatform.isDarwin;
}; };
} }