Skip to content

Instantly share code, notes, and snippets.

@sheeeng
Created December 3, 2025 10:10
Show Gist options
  • Select an option

  • Save sheeeng/5c77720ba9b11bb236f7edf4bf876328 to your computer and use it in GitHub Desktop.

Select an option

Save sheeeng/5c77720ba9b11bb236f7edf4bf876328 to your computer and use it in GitHub Desktop.
{
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
systems = nixpkgs.lib.genAttrs [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
in
{
devShells = systems (system:
let
pkgs = import nixpkgs { inherit system; };
in
{
default = pkgs.mkShell {
packages = with pkgs; [
go
];
};
});
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment