mirror of
https://gitlab.com/rensa-nix/devshell.git
synced 2025-12-11 22:00:08 +01:00
chore: initial commit
This commit is contained in:
commit
fbacfc149b
21 changed files with 748 additions and 0 deletions
5
benchmark/devshell.nix
Normal file
5
benchmark/devshell.nix
Normal 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
6
benchmark/empty.nix
Normal 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;
|
||||
}
|
||||
4
benchmark/nixpkgs-shell.nix
Normal file
4
benchmark/nixpkgs-shell.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
let
|
||||
shared = import ./shared.nix;
|
||||
in
|
||||
shared.pkgs.mkShell {}
|
||||
12
benchmark/shared.nix
Normal file
12
benchmark/shared.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue