chore: initial commit

This commit is contained in:
technofab 2025-07-31 12:37:19 +02:00
commit fbacfc149b
No known key found for this signature in database
21 changed files with 748 additions and 0 deletions

5
benchmark/devshell.nix Normal file
View file

@ -0,0 +1,5 @@
let
shared = import ./shared.nix;
devshell = import ./../lib {inherit (shared) pkgs;};
in
devshell.mkShell {}

6
benchmark/empty.nix Normal file
View file

@ -0,0 +1,6 @@
# minimal derivation to see what the fastest time of nix-instantiate can be
derivation {
name = "empty";
builder = "true";
system = builtins.currentSystem;
}

View file

@ -0,0 +1,4 @@
let
shared = import ./shared.nix;
in
shared.pkgs.mkShell {}

12
benchmark/shared.nix Normal file
View file

@ -0,0 +1,12 @@
rec {
nixpkgs = let
gitRev = "835e9a7acce59c78130d2d4cc66a07a20403b185";
in
builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/${gitRev}.tar.gz";
sha256 = "0j86vmk6z9fi19nqyp22cpml0zgslaw20b66v3w9lw988mql3615";
};
pkgs = import nixpkgs {
system = builtins.currentSystem;
};
}