Merge master into staging-next

Changed files
+65 -42
doc
lib
pkgs
applications
blockchains
trezor-suite
misc
1password
window-managers
data
icons
numix-icon-theme-square
development
tools
misc
fastly
servers
trezord
shells
tools
filesystems
gcsfuse
misc
ripdrag
top-level
+1 -1
doc/doc-support/lib-function-locations.nix
···
substr = builtins.substring prefixLen filenameLen filename;
in substr;
-
removeNixpkgs = removeFilenamePrefix pkgs.path;
+
removeNixpkgs = removeFilenamePrefix (builtins.toString pkgs.path);
liblocations =
builtins.filter
+5 -5
lib/sources.nix
···
origSrc = if isFiltered then src.origSrc else src;
in lib.cleanSourceWith {
filter = (path: type:
-
let relPath = lib.removePrefix (origSrc + "/") (path);
+
let relPath = lib.removePrefix (toString origSrc + "/") (toString path);
in lib.any (re: match re relPath != null) regexes);
inherit src;
};
···
*/
commitIdFromGitRepo =
let readCommitFromFile = file: path:
-
let fileName = path + "/" + file;
-
packedRefsName = path + "/packed-refs";
+
let fileName = toString path + "/" + file;
+
packedRefsName = toString path + "/packed-refs";
absolutePath = base: path:
if lib.hasPrefix "/" path
then path
-
else /. + "${base}/${path}";
+
else toString (/. + "${base}/${path}");
in if pathIsRegularFile path
# Resolve git worktrees. See gitrepository-layout(5)
then
···
pathHasContext = builtins.hasContext or (lib.hasPrefix storeDir);
-
canCleanSource = src: src ? _isLibCleanSourceWith || !(pathHasContext src);
+
canCleanSource = src: src ? _isLibCleanSourceWith || !(pathHasContext (toString src));
# -------------------------------------------------------------------------- #
# Internal functions
+2 -2
lib/trivial.nix
···
# Default value to return if revision can not be determined
default:
let
-
revisionFile = ./.. + "/.git-revision";
-
gitRepo = ./.. + "/.git";
+
revisionFile = "${toString ./..}/.git-revision";
+
gitRepo = "${toString ./..}/.git";
in if lib.pathIsGitRepo gitRepo
then lib.commitIdFromGitRepo gitRepo
else if lib.pathExists revisionFile then lib.fileContents revisionFile
+3 -3
pkgs/applications/blockchains/trezor-suite/default.nix
···
let
pname = "trezor-suite";
-
version = "22.8.2";
+
version = "22.10.3";
name = "${pname}-${version}";
suffix = {
···
src = fetchurl {
url = "https://github.com/trezor/${pname}/releases/download/v${version}/Trezor-Suite-${version}-${suffix}.AppImage";
sha512 = { # curl -Lfs https://github.com/trezor/trezor-suite/releases/latest/download/latest-linux{-arm64,}.yml | grep ^sha512 | sed 's/: /-/'
-
aarch64-linux = "sha512-tzGkEDVXOJaTfRPO4UUfDpqaddjeJvVHpf81A9hhpUTRIgbAO4fcOrTgJcgWCBotDo8nHCWjw+n5BG5PEfQ19Q==";
-
x86_64-linux = "sha512-qUM3HGYXbVbLRYXetLGbShPU5ochuptCUNn0G5RD3tQeipVZsgRkQCSfZ1Zb3HgoPUOna3u8Mp7Ipu1n8xi3vg==";
+
aarch64-linux = "sha512-fI0N1V+6SEZ9eNf+G/w5RcY8oeA5MsVzJnpnWoMzkkHZh5jVHgNbcqVgSPbzvQ/WZNv1MX37KETcxmDwRx//yw==";
+
x86_64-linux = "sha512-zN89Qw6fQh27EaN9ARNwqhiBaiNoMic6Aq2UPG0OSUtOjEOdkGJ2pbR8MgWVccSgRH8ZmAAXZ0snVKfZWHbCjA==";
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
};
+5 -5
pkgs/applications/misc/1password/default.nix
···
if extension == "zip" then fetchzip args else fetchurl args;
pname = "1password-cli";
-
version = "2.7.2";
+
version = "2.7.3";
sources = rec {
-
aarch64-linux = fetch "linux_arm64" "sha256-lYY69zbJqE9KuP1Yihfz444GFazHgR9zHVDq9RzZdTA=" "zip";
-
i686-linux = fetch "linux_386" "sha256-IgTusLxgeOS9u4G1M7JqqxJw2D3hy5L9wl77crgfHjM=" "zip";
-
x86_64-linux = fetch "linux_amd64" "sha256-OL/URp5eU3K1ObTlC4nXELa7NkrZDW5tFwhgVdrmPdQ=" "zip";
-
aarch64-darwin = fetch "apple_universal" "sha256-pL39V9AO2DjCcWlecteTMCcBBZVb3RXmJ8wk5gyFojg=" "pkg";
+
aarch64-linux = fetch "linux_arm64" "sha256-FxApOWyExyfuRFQhxAVBWZGqQNmarBFBRB4jqsreWL0=" "zip";
+
i686-linux = fetch "linux_386" "sha256-Ta6mdmcsKnNRMz9vwEadZ/xXVBran5BIJQngzNz3PUs=" "zip";
+
x86_64-linux = fetch "linux_amd64" "sha256-Lvxnp5KmkIj9jnaWg02a27eRYIx7WTNSLx+RJ04Vt+g=" "zip";
+
aarch64-darwin = fetch "apple_universal" "sha256-6qrNgb5ae+qqlNsNDLbKNeWj0o/SRs+2G/4DfK5Wnhg=" "pkg";
x86_64-darwin = aarch64-darwin;
};
platforms = builtins.attrNames sources;
+2 -2
pkgs/applications/window-managers/i3/default.nix
···
stdenv.mkDerivation rec {
pname = "i3";
-
version = "4.21";
+
version = "4.21.1";
src = fetchurl {
url = "https://i3wm.org/downloads/${pname}-${version}.tar.xz";
-
sha256 = "sha256-jcUgXg80Q9WGYeMHg1If2cbUJtHn82Z6sS8qwbLTIHg=";
+
sha256 = "sha256-7f14EoXGVKBdxtsnLOAwDEQo5vvYddmZZOV94ltBvB4=";
};
nativeBuildInputs = [
+2 -2
pkgs/data/icons/numix-icon-theme-square/default.nix
···
stdenvNoCC.mkDerivation rec {
pname = "numix-icon-theme-square";
-
version = "22.10.31";
+
version = "22.11.05";
src = fetchFromGitHub {
owner = "numixproject";
repo = pname;
rev = version;
-
sha256 = "sha256-TtRIVut4VBkQnM0+DM44305+FG3l2tDSU+FfaR7OFZI=";
+
sha256 = "sha256-XHf9YzZ9VY63Jv7HXSL2NAfft1VYeMzcqd9+vz1CBhg=";
};
nativeBuildInputs = [ gtk3 ];
+3 -3
pkgs/development/tools/just/default.nix
···
rustPlatform.buildRustPackage rec {
pname = "just";
-
version = "1.7.0";
+
version = "1.8.0";
src = fetchFromGitHub {
owner = "casey";
repo = pname;
rev = version;
-
hash = "sha256-W8ko9hzZmgF8XEqzbPtCJp5J38m0pAz5wTp3VRUmZOQ=";
+
hash = "sha256-mzVwdvMYpThSPGvM3hpuKzeHZW5HOwkEfONIN/aziXY=";
};
-
cargoSha256 = "sha256-rC+PcLQHjnaGSEELod6IF9NTCl0tnXvOOkHF0z77Lao=";
+
cargoSha256 = "sha256-dDaXmJ4wFJaE59qR5Bxvoz/Jrwt6hhWhJI8wLRXCLcU=";
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
+3 -3
pkgs/development/tools/ruff/default.nix
···
rustPlatform.buildRustPackage rec {
pname = "ruff";
-
version = "0.0.100";
+
version = "0.0.102";
src = fetchFromGitHub {
owner = "charliermarsh";
repo = pname;
rev = "v${version}";
-
sha256 = "sha256-kFWYSaRKx63X6Nfxd1knkusiJRKVRTNdd1jOQXBCRFQ=";
+
sha256 = "sha256-vYN73RcVwu2gwa+09wPqeIvqAx/SHnpe5m6fuXrK1ts=";
};
-
cargoSha256 = "sha256-eew1ZTCm/C3qY/eZvWYkcLprgM/cRaTb6e2O66SNwk8=";
+
cargoSha256 = "sha256-6CBadq+VuUhUvzjgTo+qRy5RsoLotEWuR4+lyf9YFjU=";
buildInputs = lib.optionals stdenv.isDarwin [
CoreServices
+11 -5
pkgs/misc/fastly/default.nix
···
-
{ lib, fetchFromGitHub, installShellFiles, buildGoModule, go }:
+
{ lib, fetchurl, fetchFromGitHub, installShellFiles, buildGoModule, go }:
buildGoModule rec {
pname = "fastly";
-
version = "3.2.4";
+
version = "4.3.0";
src = fetchFromGitHub {
owner = "fastly";
repo = "cli";
rev = "v${version}";
-
sha256 = "sha256-eIqdDBU4NWNMyRs+h30ufg4QwEEGid+wCjATZYXDGm8=";
+
sha256 = "sha256-TxN0DQ4OKfHn+u4ixpCgcyRRTs52IZRjgcbJuqajeVo=";
# The git commit is part of the `fastly version` original output;
# leave that output the same in nixpkgs. Use the `.git` directory
# to retrieve the commit SHA, and remove the directory afterwards,
···
subPackages = [ "cmd/fastly" ];
-
vendorSha256 = "sha256-glztVmAAdkEccJEFIHGWjNzz/+MjExSX18GDX66sdxA=";
+
vendorSha256 = "sha256-7EtyQYPe+oJmQ7uECbjkBjLnM9T03g6gFwUwebKuccc=";
nativeBuildInputs = [ installShellFiles ];
···
"-X github.com/fastly/cli/pkg/revision.GoHostOS=${go.GOHOSTOS}"
"-X github.com/fastly/cli/pkg/revision.GoHostArch=${go.GOHOSTARCH}"
];
-
preBuild = ''
+
preBuild = let
+
cliConfigToml = fetchurl {
+
url = "https://web.archive.org/web/20221104122906/https://developer.fastly.com/api/internal/cli-config";
+
sha256 = "sha256-BHsUWrMp//X95gcB+WbD/nfyduZUkH8jHXk3CfOBAhg=";
+
};
+
in ''
+
cp ${cliConfigToml} ./pkg/config/config.toml
ldflags+=" -X github.com/fastly/cli/pkg/revision.GitCommit=$(cat COMMIT)"
'';
+10 -3
pkgs/servers/trezord/default.nix
···
buildGoModule rec {
pname = "trezord-go";
-
version = "2.0.31";
+
version = "2.0.32";
+
commit = "9aa6576";
src = fetchFromGitHub {
owner = "trezor";
repo = "trezord-go";
rev = "v${version}";
-
sha256 = "130nhk1pnr3xx9qkcij81mm3jxrl5zvvdqhvrgvrikqg3zlb6v5b";
+
fetchSubmodules = true;
+
sha256 = "sha256-T7YoHi2sA22nfNbgX2WB5NIFIwxBkxn0CsSXyQTxgJc=";
};
-
vendorSha256 = "0wb959xzyvr5zzjvkfqc422frmf97q5nr460f02wwx0pj6ch0y61";
+
vendorSha256 = "sha256-wXgAmZEXdM4FcMCQbAs+ydXshCAMu7nl/yVv/3sqaXE=";
propagatedBuildInputs = lib.optionals stdenv.isLinux [ trezor-udev-rules ]
++ lib.optionals stdenv.isDarwin [ AppKit ];
+
+
ldflags = [
+
"-s" "-w"
+
"-X main.githash=${commit}"
+
];
meta = with lib; {
description = "Trezor Communication Daemon aka Trezor Bridge";
+2 -2
pkgs/shells/oil/default.nix
···
stdenv.mkDerivation rec {
pname = "oil";
-
version = "0.12.6";
+
version = "0.12.7";
src = fetchurl {
url = "https://www.oilshell.org/download/oil-${version}.tar.xz";
-
hash = "sha256-jlNmrpze02g4FL4EFlKoZC7X/YOr3xhJWnMTPga3Bas=";
+
hash = "sha256-WEbEcG4B+MqDVPXHjpp5lkJxT8AS+NivtJGfrnrcBys=";
};
postPatch = ''
+12 -2
pkgs/tools/filesystems/gcsfuse/default.nix
···
buildGoModule rec {
pname = "gcsfuse";
-
version = "0.41.7";
+
version = "0.41.8";
src = fetchFromGitHub {
owner = "googlecloudplatform";
repo = "gcsfuse";
rev = "v${version}";
-
sha256 = "sha256-hqT1X78g1Mg7xWHrVTwN41P+wgkrjfYrX2vHmwxZoCQ=";
+
sha256 = "sha256-9Y6phVYWI5xhqJf2LL9WbaG8vyfNcGUcnaHjKA4krjA=";
};
vendorSha256 = null;
···
subPackages = [ "." "tools/mount_gcsfuse" ];
ldflags = [ "-s" "-w" "-X main.gcsfuseVersion=${version}" ];
+
+
preCheck =
+
let skippedTests = [
+
"Test_Main"
+
"TestFlags"
+
]; in
+
''
+
# Disable flaky tests
+
buildFlagsArray+=("-run" "[^(${builtins.concatStringsSep "|" skippedTests})]")
+
'';
postInstall = ''
ln -s $out/bin/mount_gcsfuse $out/bin/mount.gcsfuse
+3 -3
pkgs/tools/misc/ripdrag/default.nix
···
rustPlatform.buildRustPackage rec {
pname = "ripdrag";
-
version = "0.2.0";
+
version = "0.2.1";
src = fetchCrate {
inherit pname version;
-
sha256 = "sha256-bXyJcSJfKHkcwTayEbX9sZZEBeP9qoH36QqBIDnmKQM=";
+
sha256 = "sha256-/TF9dWZQVEVM3lHp4ubxYkDW+ZDL9puT6mUT6Q3hUsw=";
};
-
cargoSha256 = "sha256-PqoIJ0mbpaE4UX+kz3pFiqmTS1Vp+jF2OT5+3K2A0MQ=";
+
cargoSha256 = "sha256-mIsT93XRU0mR5s5w3Sng2DTW2LyO9HT1w/1932vptIE=";
nativeBuildInputs = [ pkg-config ];
+1 -1
pkgs/top-level/all-packages.nix
···
msieve = callPackage ../applications/science/math/msieve { };
-
weka = callPackage ../applications/science/math/weka { };
+
weka = callPackage ../applications/science/math/weka { jre = openjdk11; };
yad = callPackage ../tools/misc/yad { };