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 Dec 15, 2024
2 parents 8c5656a + f4a388c commit 5995859
Show file tree
Hide file tree
Showing 15 changed files with 1,147 additions and 960 deletions.
8 changes: 5 additions & 3 deletions ci/eval/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ The code in this directory is used by the [eval.yml](../../.github/workflows/eva
Furthermore it also allows local evaluation using
```
nix-build ci -A eval.full \
--max-jobs 4
--cores 2
--arg chunkSize 10000
--max-jobs 4 \
--cores 2 \
--arg chunkSize 10000 \
--arg evalSystems '["x86_64-linux" "aarch64-darwin"]'
```

- `--max-jobs`: The maximum number of derivations to run at the same time. Only each [supported system](../supportedSystems.nix) gets a separate derivation, so it doesn't make sense to set this higher than that number.
- `--cores`: The number of cores to use for each job. Recommended to set this to the amount of cores on your system divided by `--max-jobs`.
- `chunkSize`: The number of attributes that are evaluated simultaneously on a single core. Lowering this decreases memory usage at the cost of increased evaluation time. If this is too high, there won't be enough chunks to process them in parallel, and will also increase evaluation time.
- `evalSystems`: The set of systems for which `nixpkgs` should be evaluated. Defaults to the four official platforms (`x86_64-linux`, `aarch64-linux`, `x86_64-darwin` and `aarch64-darwin`).

A good default is to set `chunkSize` to 10000, which leads to about 3.6GB max memory usage per core, so suitable for fully utilising machines with 4 cores and 16GB memory, 8 cores and 32GB memory or 16 cores and 64GB memory.

Expand Down
7 changes: 3 additions & 4 deletions ci/eval/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -259,22 +259,21 @@ let

full =
{
# Whether to evaluate just a single system, by default all are evaluated
evalSystem ? if quickTest then "x86_64-linux" else null,
# Whether to evaluate on a specific set of systems, by default all are evaluated
evalSystems ? if quickTest then [ "x86_64-linux" ] else supportedSystems,
# The number of attributes per chunk, see ./README.md for more info.
chunkSize,
quickTest ? false,
}:
let
systems = if evalSystem == null then supportedSystems else [ evalSystem ];
results = linkFarm "results" (
map (evalSystem: {
name = evalSystem;
path = singleSystem {
inherit quickTest evalSystem chunkSize;
attrpathFile = attrpathsSuperset + "/paths.json";
};
}) systems
}) evalSystems
);
in
combine {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/networking/cluster/kubernetes/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@

buildGoModule rec {
pname = "kubernetes";
version = "1.31.2";
version = "1.32.0";

src = fetchFromGitHub {
owner = "kubernetes";
repo = "kubernetes";
rev = "v${version}";
hash = "sha256-L+x1a9wttu2OBY5T6AY8k91ystu0uZAGd3px4oNVptM=";
hash = "sha256-VpinMMWvFYpcqDC9f3q/oEqUHRz7thHMs0bKt6AaNms=";
};

vendorHash = null;
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/gi/git-nomad/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@

rustPlatform.buildRustPackage rec {
pname = "git-nomad";
version = "0.7.1";
version = "0.8.0";

src = fetchFromGitHub {
owner = "rraval";
repo = pname;
rev = "v${version}";
sha256 = "sha256-N+iPr389l9PDfJIhvRL6ziGSPI6pgvfdGX6wxmapLhA=";
sha256 = "sha256-G/i+mCKZSe8tPMuCLzymkU9SGyFNHY74cGhcC4ru0/k=";
};

cargoHash = "sha256-7CZC29y9dLpyanolO+epKd0KwmRc1iGY+sPM9f/j5hk=";
cargoHash = "sha256-DEGYOPUr3tWDak1J0EkY2yjaLlXjKRH+9puC/oDJacg=";

nativeCheckInputs = [ git ];

Expand Down
8 changes: 4 additions & 4 deletions pkgs/by-name/ip/iproute2mac/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
python3,
}:

stdenv.mkDerivation rec {
version = "1.5.4";
stdenv.mkDerivation (finalAttrs: {
pname = "iproute2mac";
version = "1.5.4";

src = fetchFromGitHub {
owner = "brona";
repo = "iproute2mac";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-hmSqJ2gc0DOXUuFrp1ZG8usjFdo07zjV/1JLs5r/E04=";
};

Expand Down Expand Up @@ -52,4 +52,4 @@ stdenv.mkDerivation rec {
maintainers = with lib.maintainers; [ jiegec ];
platforms = lib.platforms.darwin;
};
}
})
27 changes: 27 additions & 0 deletions pkgs/by-name/ir/iro/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
lib,
rustPlatform,
fetchFromGitHub,
}:

rustPlatform.buildRustPackage {
pname = "iro";
version = "0-unstable-2024-10-24";

src = fetchFromGitHub {
owner = "kyoheiu";
repo = "iro";
rev = "ba4adc00e13da9086389357b0e92e608928a8b39";
hash = "sha256-hGGrEGG1LyzfUCEnV7ahhRO0GrLk28xDWZEFqUHk1rE=";
};

cargoHash = "sha256-ZP0YO+5juxFGc2rtvNBvknlTJBrtr8HiuN6/kKW1WNU=";

meta = {
description = "CLI tool to convet Hex color code or RGB to color code, RGB, HSL and color name";
homepage = "https://github.com/kyoheiu/iro";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ airrnot ];
mainProgram = "iro";
};
}
35 changes: 21 additions & 14 deletions pkgs/by-name/mi/minizign/package.nix
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
{ lib
, stdenv
, fetchFromGitHub
, zig_0_11
{
lib,
stdenv,
fetchFromGitHub,
zig_0_13,
apple-sdk_11,
}:

stdenv.mkDerivation {
let
zig = zig_0_13;
in
stdenv.mkDerivation (finalAttrs: {
pname = "minizign";
version = "unstable-2023-08-13";
version = "0.1.4";

src = fetchFromGitHub {
owner = "jedisct1";
repo = "zig-minisign";
rev = "47edc26d0c7bcfb531fe08e3b2411d8dda516d47";
hash = "sha256-zyxjUFxg+VufEVycYGCQPdjERE3p5Vz5iIi2UDujEjI=";
rev = finalAttrs.version;
hash = "sha256-Su66UohRc9C4INIp+7NHiW28sUq5YBfrI0EoEbGojG0=";
};

nativeBuildInputs = [
zig_0_11.hook
zig.hook
];

meta = with lib; {
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 ];

meta = {
description = "Minisign reimplemented in Zig";
homepage = "https://github.com/jedisct1/zig-minisign";
license = licenses.isc;
maintainers = with maintainers; [ figsoda ];
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ figsoda ];
mainProgram = "minizign";
inherit (zig_0_11.meta) platforms;
inherit (zig.meta) platforms;
};
}
})
4 changes: 2 additions & 2 deletions pkgs/by-name/pi/pinocchio/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@

stdenv.mkDerivation (finalAttrs: {
pname = "pinocchio";
version = "3.3.0";
version = "3.3.1";

src = fetchFromGitHub {
owner = "stack-of-tasks";
repo = "pinocchio";
rev = "v${finalAttrs.version}";
hash = "sha256-8lRGdtN3V0pfRH3f70H8n2pt5CGQkUY1wKg9gUY0toQ=";
hash = "sha256-dm5xfYAnn5N/8ZKTMyZNFM5/j3LLBrG+NOgmtxCAI6I=";
};

outputs = [
Expand Down
Loading

0 comments on commit 5995859

Please sign in to comment.