diff options
author | Irene Knapp <ireneista@gmail.com> | 2023-10-02 00:37:13 -0700 |
---|---|---|
committer | Irene Knapp <ireneista@gmail.com> | 2023-10-02 00:37:13 -0700 |
commit | 6290842dc61dc0c747dc4e2b8724fd054dd82c0f (patch) | |
tree | 3e279105abd15829ba8d9f0c3e16edc7b7f0e067 /base/flake.nix |
initial
Diffstat (limited to 'base/flake.nix')
-rw-r--r-- | base/flake.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/base/flake.nix b/base/flake.nix new file mode 100644 index 0000000..c75725e --- /dev/null +++ b/base/flake.nix @@ -0,0 +1,26 @@ +{ + inputs = { + nixpkgs = { + type = "github"; + owner = "NixOS"; + repo = "nixpkgs"; + ref = "nixos-23.05"; + }; + }; + + outputs = { self, nixpkgs }: + let supportedSystems = [ "aarch64-linux" "x86_64-linux" ]; + forAllSystems = nixpkgs.lib.genAttrs supportedSystems; + nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; }); + in { + devShells = forAllSystems (system: let pkgs = nixpkgsFor.${system}; in { + default = pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + cargo + rustc + ]; + }; + }); + }; +} + |