add shell.nix for benchmarks

This commit is contained in:
figsoda 2022-11-23 10:17:40 -05:00
parent 56c91078df
commit 3ad029d46f

22
benchmarks/shell.nix Normal file
View File

@ -0,0 +1,22 @@
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
let
ouch = rustPlatform.buildRustPackage {
pname = "ouch";
inherit ((lib.importTOML ../Cargo.toml).package) version;
src = ../.;
cargoLock.lockFile = ../Cargo.lock;
};
in
mkShell {
packages = [
gnutar
hyperfine
ouch
unzip
zip
];
}