de962fa7b2
cachix-action test / public-cache (macos-latest) (push) Waiting to run
cachix-action test / public-cache-no-signing-key (macos-latest) (push) Waiting to run
cachix-action test / private-cache (macos-latest) (push) Waiting to run
cachix-action test / installCommand (macos-latest) (push) Waiting to run
cachix-action test / public-cache (ubuntu-latest) (push) Failing after 13s
cachix-action test / public-cache-no-signing-key (ubuntu-latest) (push) Failing after 12s
cachix-action test / private-cache (ubuntu-latest) (push) Failing after 14s
cachix-action test / installCommand (ubuntu-latest) (push) Failing after 14s
14 lines
495 B
Nix
14 lines
495 B
Nix
# Realizes <num>> of derivations with size of <size>MB
|
|
{ size ? 1 # MB
|
|
, num ? 10 # count
|
|
, currentTime ? builtins.currentTime
|
|
}:
|
|
|
|
with (import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/21d8e70a69f704a6ab971b2d8265d40cc7bb69b1.tar.gz") {});
|
|
|
|
let
|
|
drv = i: runCommand "${toString currentTime}-${toString i}" {} ''
|
|
dd if=/dev/zero of=$out bs=${toString size}MB count=1
|
|
'';
|
|
in lib.listToAttrs (builtins.map (i: lib.nameValuePair "drv${toString i}" (drv i)) (lib.range 1 num))
|