chela/flake.nix

31 lines
606 B
Nix
Raw Permalink Normal View History

2024-04-06 02:41:10 +00:00
{
2024-04-06 18:05:32 +00:00
description = "Minimal URL shortener";
2024-04-06 02:41:10 +00:00
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { self, nixpkgs }:
let
system = "aarch64-darwin";
pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.${system}.default =
pkgs.mkShell {
buildInputs = with pkgs; [
rustc
rustfmt
cargo
rust-analyzer
libiconv
clippy
pkg-config
darwin.apple_sdk.frameworks.SystemConfiguration
];
shellHook = ''
exec zsh
'';
};
};
}