-
Notifications
You must be signed in to change notification settings - Fork 13
/
flake.nix
46 lines (39 loc) · 1.33 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
{
description = "Flake utils demo";
inputs.nixpkgs.url = "github:nixos/nixpkgs";
inputs.nur.url = "github:nix-community/NUR";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.uikit-src = {
url = "https://github.com/uikit/uikit/archive/v3.6.20.tar.gz";
flake = false;
};
outputs = { self, nixpkgs, nur, flake-utils, uikit-src }:
let
in
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs' = import nixpkgs { inherit system; overlays = [ nur.overlay ]; };
blog = pkgs'.callPackage ./blog.nix {
pkgs = pkgs';
nur = pkgs'.nur;
thirdparty = [
{
name = "uikit";
path = "${uikit-src}/src";
}
];
};
in
rec {
packages = { inherit (blog) generator generator-with-thirdparty ci shell; };
defaultPackage = blog.generator-with-thirdparty;
apps.compile =
flake-utils.lib.mkApp { drv = blog.ci.compile; exePath = ""; };
apps.generator =
flake-utils.lib.mkApp { drv = blog.generator-with-thirdparty; exePath = "/bin/generator"; };
defaultApp = apps.compile;
devShell = blog.shell;
}
);
}