chore: move .nix -> nix, remove unused flake input

This commit is contained in:
technofab 2025-09-15 10:48:33 +02:00
parent 695d36a457
commit 9cb2d2bef6
No known key found for this signature in database
8 changed files with 2 additions and 193 deletions

18
nix/repo/benchmark.nix Normal file
View file

@ -0,0 +1,18 @@
{inputs, ...}: let
inherit (inputs) pkgs;
in {
bench = pkgs.writeShellApplication {
name = "benchmark";
runtimeInputs = [pkgs.hyperfine];
text = ''
echo "Comparison cases first:"
hyperfine -w 3 \
'nix-instantiate ${inputs.self}/benchmark/shared.nix' \
'nix-instantiate ${inputs.self}/benchmark/empty.nix'
echo "Now real benchmark:"
hyperfine -w 3 \
'nix-instantiate ${inputs.self}/benchmark/nixpkgs-shell.nix' \
'nix-instantiate ${inputs.self}/benchmark/devshell.nix'
'';
};
}