cli/shell.nix

32 lines
646 B
Nix

{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/50ab793786d9.tar.gz") {
overlays = [
(import (fetchTarball "https://github.com/oxalica/rust-overlay/archive/475826b105eb.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
CoreServices
]);
in
pkgs.mkShell
{
buildInputs = inputs;
}