Files
flake-templates/rust/flake.nix

20 lines
464 B
Nix
Raw Permalink Normal View History

2023-10-24 17:36:04 +02:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = { self, nixpkgs }:
let
supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
pkgs = forAllSystems (system: nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (system :{
default = pkgs.${system}.callPackage ./shell.nix {};
});
};
}