-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
72 lines (65 loc) · 1.54 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
description = "A versatile bitmap font with an organic flair";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
bited-utils = {
url = "github:molarmanful/bited-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
nixpkgs,
utils,
bited-utils,
...
}:
let
name = "kirsch";
version = builtins.readFile ./VERSION;
in
utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
P = bited-utils.packages.${system};
in
rec {
packages =
let
build = o: pkgs.callPackage ./. ({ inherit version P; } // o);
in
{
${name} = build { pname = name; };
"${name}-nerd" = build {
pname = "${name}-nerd";
nerd = true;
};
"${name}-release" = build {
pname = "${name}-release";
nerd = true;
release = true;
};
"${name}-img" = pkgs.callPackage ./img.nix {
inherit P;
name = "${name}-img";
};
default = packages.${name};
};
devShells.default = pkgs.mkShell {
packages = with pkgs; [
nil
nixd
nixfmt-rfc-style
statix
deadnix
marksman
markdownlint-cli
actionlint
taplo
];
};
}
);
}