~yoctocell/yoctocell.xyz

yoctocell.xyz/flake.nix -rw-r--r-- 889 bytes
46c74072Xinglu Chen templates: footer: Fix typo 1 year, 5 months ago
                                                                                
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
{
  description = "A flake for my website";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    rel2009.url = "github:nixos/nixpkgs/release-20.09";

    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, rel2009, flake-utils, ... }:
    flake-utils.lib.eachDefaultSystem
      (system:
        let
          pkgs = rel2009.legacyPackages.${system};
          default = import ./. { inherit pkgs; };
        in
        rec
        {
          defaultPackage = default.site;
          devShell = default.shell;
          apps.build = flake-utils.lib.mkApp {
            drv = default.siteBuild;
            exePath = "/bin/site-build";
          };
          apps.watch = flake-utils.lib.mkApp {
            drv = default.siteWatch;
            exePath = "/bin/site-watch";
          };
          defaultApp = apps.build;
        });
}