Skip to content

Commit

Permalink
Nix flake: macOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
jchv committed Jun 23, 2024
1 parent 55bd9f8 commit 4b82a76
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
flake-utils.lib.eachDefaultSystem (
system:
let
inherit (pkgs) lib stdenv;
pkgs = nixpkgs.legacyPackages.${system};
gitCommit = self.dirtyShortRev or self.rev or "";
in
Expand All @@ -28,13 +29,13 @@
default = pangfiles;
};
devShell = pkgs.mkShell {
packages = with pkgs; [
git
gopls
gotools
go_1_22
gnumake
];
packages = [
pkgs.git
pkgs.gopls
pkgs.gotools
pkgs.go_1_22
pkgs.gnumake
] ++ lib.optional stdenv.isDarwin [ pkgs.macfuse-stubs ];
};
}
);
Expand Down

0 comments on commit 4b82a76

Please sign in to comment.