-
Notifications
You must be signed in to change notification settings - Fork 3
/
flake.nix
31 lines (28 loc) · 850 Bytes
/
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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
};
outputs = {
self,
nixpkgs,
}: let
system = "x86_64-linux";
inherit (nixpkgs) lib;
in {
overlays.default = final: prev: let
buildPlan = builtins.fromTOML (builtins.readFile ./private-build-plans.toml);
pname = builtins.head (builtins.attrNames buildPlan.buildPlans);
in {
${pname} = lib.makeScope final.newScope (self: {
base = self.callPackage ./base.nix {inherit pname;};
# ready for linux use, though IFD
ttf = final.runCommand "${pname}-ttf" {} ''
dest=$out/share/fonts/truetype
mkdir -p $dest
cp -avL ${self.base}/TTF/*.ttf $dest
'';
});
};
legacyPackages.${system} = nixpkgs.legacyPackages.${system}.extend self.overlays.default;
};
}