mirror of
https://gitlab.com/rensa-nix/devshell.git
synced 2025-12-11 22:00:08 +01:00
chore: move .nix -> nix, remove unused flake input
This commit is contained in:
parent
695d36a457
commit
9cb2d2bef6
8 changed files with 2 additions and 193 deletions
18
nix/repo/benchmark.nix
Normal file
18
nix/repo/benchmark.nix
Normal 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'
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue