-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
52 lines (48 loc) · 1.23 KB
/
flake.nix
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
description = "Southern California Nix User Group Site";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
flake-utils.url = "github:numtide/flake-utils";
};
inputs.flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz";
outputs = {
self,
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
packages = with pkgs; rec {
socalNixSite = stdenv.mkDerivation {
name = "socal-nix-site";
src = ./.;
buildInputs = with pkgs; [
zola
];
buildCommand = ''
cd $src
mkdir -p $out
zola build --output-dir $out/public
'';
};
default = socalNixSite;
};
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
zola
alejandra
python311
python311Packages.toml
python311Packages.pip
python311Packages.click
python311Packages.jsonschema
python311Packages.icalendar
act
];
};
}
);
}