mirror of
https://gitlab.com/ahoneybun/ahoneybun-net.git
synced 2026-05-30 14:34:35 -06:00
add macOS support
This commit is contained in:
parent
8626e608cc
commit
ea70423f53
1 changed files with 16 additions and 10 deletions
26
flake.nix
26
flake.nix
|
|
@ -6,23 +6,29 @@
|
|||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, flake-utils, nixpkgs }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
outputs = { self, flake-utils, nixpkgs, ... }:
|
||||
flake-utils.lib.eachSystem [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
"x86_64-darwin"
|
||||
"aarch64-darwin"
|
||||
] (system:
|
||||
let
|
||||
pkgs = (import nixpkgs) {
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
zola
|
||||
];
|
||||
|
||||
in rec {
|
||||
|
||||
# For `nix develop`
|
||||
devShell = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [ zola ];
|
||||
shellHook = ''
|
||||
echo "🚀 Zola development environment loaded"
|
||||
echo "Zola version: $(zola --version)"
|
||||
git submodule update --init --recursive
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue