Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements to the Nix shell. #282

Merged
merged 1 commit into from
Feb 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 37 additions & 21 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,37 +83,53 @@
formatter = pkgs.nixpkgs-fmt;

devShells.default = pkgs.mkShell {
inputsFrom = builtins.attrValues self.checks.${localSystem};
# build-time inputs
nativeBuildInputs = [
# runtime
pkgs.protobuf
# Development
pkgs.just
pkgs.nixpkgs-fmt
pkgs.nodePackages.prettier
pkgs.pkg-config

# development
# Rust
pkgs.cargo-edit
pkgs.cargo-expand
pkgs.cargo-flamegraph
pkgs.cargo-insta
pkgs.cargo-machete
pkgs.cargo-nextest
pkgs.cargo-watch
pkgs.just
pkgs.k6
pkgs.nixpkgs-fmt
pkgs.nodePackages.prettier
pkgs.pkg-config
pkgs.rnix-lsp
pkgs.skopeo
rust.rustToolchain
] ++ (
pkgs.lib.optionals
pkgs.stdenv.isLinux
[
pkgs.heaptrack
pkgs.linuxPackages_latest.perf
pkgs.mold-wrapped
pkgs.valgrind
]
);

# Benchmarks
pkgs.k6

# Deployment
pkgs.skopeo
];

# runtime inputs
buildInputs = [
pkgs.openssl
pkgs.protobuf
];
};

# This performance-testing shell will only work on Linux.
devShells.perf = pkgs.mkShell {
inputsFrom = [
self.devShells.${localSystem}.default
];

# build-time inputs
nativeBuildInputs = [
pkgs.heaptrack
pkgs.linuxPackages_latest.perf
pkgs.mold-wrapped
pkgs.valgrind
];
};
});
}
);
}
Loading