-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathtools.nix
More file actions
27 lines (22 loc) · 742 Bytes
/
tools.nix
File metadata and controls
27 lines (22 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ rosetta ? false }:
let
overrides = if rosetta then { system = "x86_64-darwin"; } else {};
sources = import ./nix/sources.nix;
nixos = import sources.nixos overrides;
darwin = import sources.darwin overrides;
unstable = import sources.unstable overrides;
pkgs = if darwin.stdenv.isDarwin then darwin else nixos;
loadtest = if pkgs.stdenv.isLinux then [pkgs.wrk2] else [];
in
pkgs.mkShell {
nativeBuildInputs = [
pkgs.nodejs
pkgs.yarn
] ++ loadtest;
shellHook = ''
export LANG=C.UTF8
echo " Setting up openapi-diff"
yarn add openapi-diff
alias openapi-diff="./node_modules/openapi-diff/bin/openapi-diff"
'';
}