-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
43 lines (37 loc) · 1.14 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
{
description = "Nixmacs: a nix based emacs distribution";
inputs = {
nmd = {
url = gitlab:rycee/nmd;
flake = false;
};
emacs-overlay.url = "github:nix-community/emacs-overlay";
};
outputs = { self, nixpkgs, nmd, emacs-overlay }:
let pkgs = import nixpkgs {
system = "x86_64-linux";
config = { allowUnfree = true; };
overlays = [ emacs-overlay.overlay ];
};
lib = pkgs.callPackage ./lib { };
modules = import ./modules/modules.nix { };
overrides = import ./epkgs/overrides.nix { inherit pkgs; };
in {
docs = pkgs.callPackage ./doc {
inherit lib modules;
nmdSrc = nmd;
};
nixmacs = { configurationFile, package, extraOverrides ? (self: super: {}) }:
pkgs.callPackage ./nixmacs.nix {
inherit configurationFile package lib modules overrides extraOverrides;
inherit (self) docs;
};
fromConf = configurationFile: self.nixmacs {
inherit configurationFile;
package = pkgs.emacs;
};
example = self.fromConf ./example/config.nix;
minimal = self.fromConf ./example/minimal.nix;
defaultPackage.x86_64-linux = self.example;
};
}