diff options
| author | Petri Hienonen <petri.hienonen@gmail.com> | 2026-01-02 11:39:29 +0200 |
|---|---|---|
| committer | Petri Hienonen <petri.hienonen@gmail.com> | 2026-01-02 11:39:29 +0200 |
| commit | 11392621501d7b5206bc521d6d2a50e2c4e36c45 (patch) | |
| tree | 7b2d51c89d58f7374fd464ba05d8b60b6df6a91a /flake.nix | |
| download | pub-11392621501d7b5206bc521d6d2a50e2c4e36c45.tar.zst | |
Initial commit
Diffstat (limited to '')
| -rw-r--r-- | flake.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..c71dbdf --- /dev/null +++ b/flake.nix @@ -0,0 +1,28 @@ +{ + description = "Hub"; + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/release-25.11"; + }; + + outputs = + { self, nixpkgs }: + let + supportedSystems = [ + "x86_64-linux" + "aarch64-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 { buildInputs = with pkgs; [ go ]; }; + } + ); + }; +} |
