Files
yule/flake.nix
Atridad Lahiji f932050632
All checks were successful
Docker Deploy / build-and-push (push) Successful in 3m7s
Added Nix
2025-12-25 12:43:36 -07:00

39 lines
770 B
Nix

{
description = "yule dev shell";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
};
outputs = { self, nixpkgs }:
let
allSystems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
in
{
devShells = forAllSystems ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [
go
gopls
gotools
go-tools
];
shellHook = ''
echo "<yule dev shell>"
echo "Go version: $(go version)"
'';
};
});
};
}