cli/shell.nix
Paulo Cabral Sanz 1b330220d6
Minor fixes (#527)
* Add cargo-release to nix shell

* Fake select env if it's only one
2024-08-05 14:51:39 -03:00

31 lines
625 B
Nix

{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/313b84933167.tar.gz") {
overlays = [
(import (fetchTarball "https://github.com/oxalica/rust-overlay/archive/577ee84c69ba.tar.gz"))
];
}
}:
let
rust = with pkgs;
rust-bin.stable.latest.minimal;
basePkgs = with pkgs;
[
cmake
rust
act
cargo-zigbuild
cargo-release
];
# macOS only
inputs = with pkgs;
basePkgs ++ lib.optionals stdenv.isDarwin
(with darwin.apple_sdk.frameworks; [
Security
SystemConfiguration
]);
in
pkgs.mkShell
{
buildInputs = inputs;
}