-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
31 lines (28 loc) · 718 Bytes
/
flake.nix
File metadata and controls
31 lines (28 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
description = "Dev shell for pacokwon.org";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/647371df145ef56cf62811c906fc794b91df2f8f";
};
outputs = { self, nixpkgs }:
let
systems = [ "aarch64-darwin" "x86_64-darwin" "aarch64-linux" "x86_64-linux" ];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
in
{
devShells = forAllSystems (system:
let
pkgs = import nixpkgs { inherit system; };
in
{
default = pkgs.mkShell {
packages = [
pkgs.zola
];
shellHook = ''
echo "zola: $(zola --version)"
'';
};
}
);
};
}