Added nix

This commit is contained in:
2025-12-25 15:00:51 -07:00
parent 263885d6eb
commit f71ddb64a9
3 changed files with 44 additions and 1 deletions

1
.envrc Normal file
View File

@@ -0,0 +1 @@
use flake

6
.gitignore vendored
View File

@@ -1,3 +1,7 @@
.build/
.output/
.DS_Store
.DS_Store
# nix
.direnv/
result

38
flake.nix Normal file
View File

@@ -0,0 +1,38 @@
{
description = "muse 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 "<muse dev shell>"
echo "Go version: $(go version)"
'';
};
});
};
}