summaryrefslogtreecommitdiff
path: root/flake.nix
blob: 570cde91c2bf2c906b96beb109cf36c9fcfc8390 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  description = "Source code of Quentin Aristote's personal webpage.";

  inputs = {
    flake-utils.url = "github:numtide/flake-utils";
    data.url = "github:qaristote/info";
  };

  outputs = { self, nixpkgs, flake-utils, data }:
    { lib = import ./lib { inherit (nixpkgs) lib; }; } //
    flake-utils.lib.eachDefaultSystem (system:
      let pkgs = nixpkgs.legacyPackages.${system};
      in rec {
        packages.webpage = import ./default.nix {
          inherit pkgs;
          inherit (self.lib.pp) html;
          data = data.formatWith."${system}" self.lib.pp.html;
        };
        defaultPackage = packages.webpage;
      });
}