Skip to content

Commit

Permalink
Merge master into staging-next
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Jul 29, 2024
2 parents c709622 + 139855a commit 7938165
Show file tree
Hide file tree
Showing 88 changed files with 1,882 additions and 1,064 deletions.
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,6 @@ bdfde18037f8d9f9b641a4016c8ada4dc4cbf856

# nixos/ollama: format with nixfmt-rfc-style (#329561)
246d1ee533810ac1946d863bbd9de9b525818d56

# nixos/nvidia: apply nixfmt-rfc-style (#313440)
fbdcdde04a7caa007e825a8b822c75fab9adb2d6
11 changes: 11 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4693,6 +4693,11 @@
githubId = 3179832;
name = "D. Bohdan";
};
d-brasher = {
github = "d-brasher";
githubId = 175485311;
name = "D. Brasher";
};
dbrgn = {
email = "[email protected]";
github = "dbrgn";
Expand Down Expand Up @@ -14920,6 +14925,12 @@
githubId = 16027994;
name = "Nathan Viets";
};
nw = {
email = "[email protected]";
github = "nwhirschfeld";
githubId = 5047052;
name = "Niclas Hirschfeld";
};
nyadiia = {
email = "[email protected]";
github = "nyadiia";
Expand Down
1 change: 0 additions & 1 deletion nixos/modules/hardware/video/nvidia.nix
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,6 @@ in

hardware.graphics = {
extraPackages = [ pkgs.nvidia-vaapi-driver ];
extraPackages32 = [ pkgs.pkgsi686Linux.nvidia-vaapi-driver ];
};

environment.systemPackages =
Expand Down
10 changes: 9 additions & 1 deletion nixos/modules/services/backup/mysql-backup.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let
'';
backupDatabaseScript = db: ''
dest="${cfg.location}/${db}.gz"
if ${mariadb}/bin/mysqldump ${optionalString cfg.singleTransaction "--single-transaction"} ${db} | ${gzip}/bin/gzip -c > $dest.tmp; then
if ${mariadb}/bin/mysqldump ${optionalString cfg.singleTransaction "--single-transaction"} ${db} | ${gzip}/bin/gzip -c ${cfg.gzipOptions} > $dest.tmp; then
mv $dest.tmp $dest
echo "Backed up to $dest"
else
Expand Down Expand Up @@ -78,6 +78,14 @@ in
Whether to create database dump in a single transaction
'';
};

gzipOptions = mkOption {
default = "--no-name --rsyncable";
type = types.str;
description = ''
Command line options to use when invoking `gzip`.
'';
};
};

};
Expand Down
83 changes: 83 additions & 0 deletions pkgs/applications/editors/vscode/extensions/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,23 @@ let
};
};

csharpier.csharpier-vscode = buildVscodeMarketplaceExtension {
mktplcRef = {
name = "csharpier-vscode";
publisher = "csharpier";
version = "1.7.3";
hash = "sha256-/ZLjnlLl6xmgEazdCbnuE6UuuV1tDwAjpxz+vmBuYHE=";
};
meta = {
changelog = "https://marketplace.visualstudio.com/items/csharpier.csharpier-vscode/changelog";
description = "CSharpier code formatter for Visual Studio Code";
downloadPage = "https://marketplace.visualstudio.com/items?itemName=csharpier.csharpier-vscode";
homepage = "https://github.com/belav/csharpier";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.magnouvean ];
};
};

cweijan.dbclient-jdbc = buildVscodeMarketplaceExtension {
mktplcRef = {
name = "dbclient-jdbc";
Expand Down Expand Up @@ -3109,6 +3126,72 @@ let
ms-dotnettools.csdevkit = callPackage ./ms-dotnettools.csdevkit { };
ms-dotnettools.csharp = callPackage ./ms-dotnettools.csharp { };

ms-dotnettools.vscode-dotnet-runtime = buildVscodeMarketplaceExtension {
mktplcRef = {
name = "vscode-dotnet-runtime";
publisher = "ms-dotnettools";
version = "2.1.1";
hash = "sha256-k14bjWITPDduJi79W59SnMV2TFNRCeAymhs6u1Y0vzk=";
};
meta = {
changelog = "https://marketplace.visualstudio.com/items/ms-dotnettools.vscode-dotnet-runtime/changelog";
description = "Provides a way for other Visual Studio Code extensions to install local versions of .NET SDK/Runtime";
downloadPage = "https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.vscode-dotnet-runtime";
homepage = "https://github.com/dotnet/vscode-dotnet-runtime";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.magnouvean ];
};
};

ms-dotnettools.vscodeintellicode-csharp = buildVscodeMarketplaceExtension {
mktplcRef =
let
sources = {
"x86_64-linux" = {
arch = "linux-x64";
hash = "sha256-oQMwzQuW5vjxtDboRCeiEO5aytsAY6rb14JDTmK3JPg=";
};
"x86_64-darwin" = {
arch = "darwin-x64";
hash = "sha256-/9+qtLDNYUFvdoehit3BihA38p6RqJ7na5Q27xxpZk0=";
};
"aarch64-linux" = {
arch = "linux-arm64";
hash = "sha256-JqLlYMKyTXaEzuTPPxVaO8WJiuCUN+9xBzyA6+aYdSc=";
};
"aarch64-darwin" = {
arch = "darwin-arm64";
hash = "sha256-dhiUePePkO3MxRQ5UP+lOxRax503JlERe/GWJ8pPUIg=";
};
};
in
{
name = "vscodeintellicode-csharp";
publisher = "ms-dotnettools";
version = "2.1.11";
}
// sources.${stdenv.system};
nativeBuildInputs = lib.optionals stdenv.isLinux [ autoPatchelfHook ];
buildInputs = [
stdenv.cc.cc.lib
zlib
];
meta = {
changelog = "https://marketplace.visualstudio.com/items/ms-dotnettools.vscodeintellicode-csharp/changelog";
description = "AI-assisted development features for C# in Visual Studio Code";
downloadPage = "https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.vscodeintellicode-csharp";
homepage = "https://github.com/MicrosoftDocs/intellicode";
license = lib.licenses.unfree;
maintainers = [ lib.maintainers.magnouvean ];
platforms = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-darwin"
"aarch64-linux"
];
};
};

ms-kubernetes-tools.vscode-kubernetes-tools = buildVscodeMarketplaceExtension {
mktplcRef = {
name = "vscode-kubernetes-tools";
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/misc/junction/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@

stdenv.mkDerivation rec {
pname = "junction";
version = "1.7";
version = "1.8";

src = fetchFromGitHub {
owner = "sonnyp";
repo = "junction";
rev = "v${version}";
hash = "sha256-qPseu2rzK6xp7eb/SrWK6fML/6xh4raP0MEreyZgqVI=";
hash = "sha256-0zY6Dp0aKHtBHSTiGbI5o6876BsARbo8/BbArl0RaMY=";
fetchSubmodules = true;
};

Expand Down Expand Up @@ -65,7 +65,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
mainProgram = "re.sonny.Junction";
description = "Choose the application to open files and links";
homepage = "https://apps.gnome.org/en/app/re.sonny.Junction/";
homepage = "https://apps.gnome.org/Junction/";
license = licenses.gpl3Only;
maintainers = with maintainers; [ hqurve ];
platforms = platforms.linux;
Expand Down
11 changes: 10 additions & 1 deletion pkgs/applications/misc/kondo/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, rustPlatform, fetchFromGitHub }:
{ lib, stdenv, rustPlatform, fetchFromGitHub, installShellFiles }:

rustPlatform.buildRustPackage rec {
pname = "kondo";
Expand All @@ -13,6 +13,15 @@ rustPlatform.buildRustPackage rec {

cargoHash = "sha256-WF4GHj/5VYrTUh1E3t29zbpSLjJ6g7RWVpLYqg9msZg=";

nativeBuildInputs = [ installShellFiles ];

postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd kondo \
--bash <($out/bin/kondo --completions bash) \
--fish <($out/bin/kondo --completions fish) \
--zsh <($out/bin/kondo --completions zsh)
'';

meta = with lib; {
description = "Save disk space by cleaning unneeded files from software projects";
homepage = "https://github.com/tbillington/kondo";
Expand Down
49 changes: 30 additions & 19 deletions pkgs/applications/misc/lyx/default.nix
Original file line number Diff line number Diff line change
@@ -1,44 +1,56 @@
{ fetchurl, lib, mkDerivation, pkg-config, python3, file, bc
, qtbase, qtsvg, hunspell, makeWrapper #, mythes, boost
{
fetchurl,
lib,
mkDerivation,
pkg-config,
python3,
file,
bc,
qtbase,
qtsvg,
hunspell,
makeWrapper, # , mythes, boost
}:

mkDerivation rec {
version = "2.3.7-1";
version = "2.4.1";
pname = "lyx";

src = fetchurl {
url = "ftp://ftp.lyx.org/pub/lyx/stable/2.3.x/${pname}-${version}.tar.xz";
sha256 = "sha256-Ob6IZPuGs06IMQ5w+4Dl6eKWYB8IVs8WGqCUFxcY2O0=";
url = "ftp://ftp.lyx.org/pub/lyx/stable/2.4.x/${pname}-${version}.tar.xz";
hash = "sha256-dN4ooH7zeqlHG8mWLbGCFSolMQx9H0f2drubxj2XE8U=";
};

# Needed with GCC 12
postPatch = ''
sed '1i#include <iterator>' -i src/lyxfind.cpp
sed '1i#include <cstring>' -i src/insets/InsetListings.cpp
'';

# LaTeX is used from $PATH, as people often want to have it with extra pkgs
nativeBuildInputs = [ pkg-config makeWrapper python3 qtbase ];
nativeBuildInputs = [
pkg-config
makeWrapper
python3
qtbase
];
buildInputs = [
qtbase qtsvg file/*for libmagic*/ bc
qtbase
qtsvg
file # for libmagic
bc
hunspell # enchant
];

configureFlags = [
"--enable-qt5"
#"--without-included-boost"
/* Boost is a huge dependency from which 1.4 MB of libs would be used.
Using internal boost stuff only increases executable by around 0.2 MB. */
/*
Boost is a huge dependency from which 1.4 MB of libs would be used.
Using internal boost stuff only increases executable by around 0.2 MB.
*/
#"--without-included-mythes" # such a small library isn't worth a separate package
];

enableParallelBuilding = true;
doCheck = true;

# python is run during runtime to do various tasks
qtWrapperArgs = [
" --prefix PATH : ${python3}/bin"
];
qtWrapperArgs = [ " --prefix PATH : ${python3}/bin" ];

meta = with lib; {
description = "WYSIWYM frontend for LaTeX, DocBook";
Expand All @@ -48,4 +60,3 @@ mkDerivation rec {
platforms = platforms.linux;
};
}

6 changes: 3 additions & 3 deletions pkgs/applications/networking/cluster/atmos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

buildGoModule rec {
pname = "atmos";
version = "1.83.1";
version = "1.85.0";

src = fetchFromGitHub {
owner = "cloudposse";
repo = pname;
rev = "v${version}";
sha256 = "sha256-B1s+9oLShbrziYm9P8xE5UPwxTchlGPUmjYSWGhsGjY=";
sha256 = "sha256-nIW7Wt4mThxjnHHF+rD6q9vZ7KsB//nSpkWtkiTo16Y=";
};

vendorHash = "sha256-dklmWu+PHSEeQM2MWBkYMiyw5rX9S8SI3l86nst6v9E=";
vendorHash = "sha256-swQN0WjVfLo/LjZrvjX46CnfBGnrVzLj8Cv4IP0eL7Y=";

ldflags = [ "-s" "-w" "-X github.com/cloudposse/atmos/cmd.Version=v${version}" ];

Expand Down
38 changes: 18 additions & 20 deletions pkgs/applications/networking/cluster/rke2/update-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ set -x -eu -o pipefail

CHANNEL_NAME="${1:?Must provide a release channel, like 'stable', as the only argument}"

mkdir --parents --verbose ./${CHANNEL_NAME}
WORKDIR=$(cd $(dirname ${BASH_SOURCE[0]}) && pwd -P)

mkdir --parents --verbose "${WORKDIR}/${CHANNEL_NAME}"

LATEST_TAG_NAME=$(curl --silent --fail https://update.rke2.io/v1-release/channels | \
yq eval ".data[] | select(.id == \"${CHANNEL_NAME}\").latest" - | \
Expand Down Expand Up @@ -35,9 +37,9 @@ KUBERNETES_EOL=$(curl --silent --fail \
https://endoflife.date/api/kubernetes/${KUBERNETES_CYCLES}.json | \
yq eval ".eol" -)

FAKE_HASH="sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
FAKE_HASH="sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="

cat > ./${CHANNEL_NAME}/versions.nix << EOF
cat << EOF > "${WORKDIR}/${CHANNEL_NAME}/versions.nix"
{
rke2Version = "${RKE2_VERSION}";
rke2RepoSha256 = "${RKE2_REPO_SHA256}";
Expand All @@ -54,33 +56,29 @@ cat > ./${CHANNEL_NAME}/versions.nix << EOF
}
EOF

NIXPKGS_ROOT=$(git rev-parse --show-toplevel)

set +e
RKE2_VENDOR_HASH=$(nix-prefetch -I nixpkgs=${NIXPKGS_ROOT} \
"{ sha256 }: (import ${NIXPKGS_ROOT}/. {}).rke2_${CHANNEL_NAME}.goModules.overrideAttrs (_: { vendorHash = sha256; })")
RKE2_VENDOR_HASH=$(nix-prefetch -I nixpkgs=$(git rev-parse --show-toplevel) \
"{ sha256 }: rke2_${CHANNEL_NAME}.goModules.overrideAttrs (_: { vendorHash = sha256; })")
set -e

if [ -n "${RKE2_VENDOR_HASH:-}" ]; then
sed -i "s#${FAKE_HASH}#${RKE2_VENDOR_HASH}#g" ./${CHANNEL_NAME}/versions.nix
sed -i "s#${FAKE_HASH}#${RKE2_VENDOR_HASH}#g" ${WORKDIR}/${CHANNEL_NAME}/versions.nix
else
echo "Update failed. 'RKE2_VENDOR_HASH' is empty."
exit 1
fi

# Implement commit
# See: https://nixos.org/manual/nixpkgs/stable/#var-passthru-updateScript-commit
OLD_VERSION=$(nix-instantiate --eval -E \
"with import ${NIXPKGS_ROOT}/. {}; rke2.version or (builtins.parseDrvName rke2.name).version" | \
tr -d '"')

cat << EOF
[{
"attrPath": "rke2_${CHANNEL_NAME}",
"oldVersion": "${OLD_VERSION}",
"newVersion": "${RKE2_VERSION}",
"files": [
"${PWD}/${CHANNEL_NAME}/versions.nix"
]
}]
[
{
"attrPath": "rke2_${CHANNEL_NAME}",
"oldVersion": "${UPDATE_NIX_OLD_VERSION}",
"newVersion": "${RKE2_VERSION}",
"files": [
"${WORKDIR}/${CHANNEL_NAME}/versions.nix"
]
}
]
EOF
2 changes: 1 addition & 1 deletion pkgs/applications/networking/cluster/terraspace/Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
source "https://rubygems.org"
gem "terraspace", '~> 2.2.8'
gem "terraspace"
Loading

0 comments on commit 7938165

Please sign in to comment.