Skip to content

Commit

Permalink
Nix flake for dev shell (#164)
Browse files Browse the repository at this point in the history
* Add nix flake for go itself

* Simplify
  • Loading branch information
Evertras authored Feb 25, 2024
1 parent d2b26e1 commit 53205ee
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
60 changes: 60 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-23.11";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
# Dev tools
go
];
};
});
}

0 comments on commit 53205ee

Please sign in to comment.