forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfactor-packages.nix
More file actions
44 lines (38 loc) · 1.3 KB
/
factor-packages.nix
File metadata and controls
44 lines (38 loc) · 1.3 KB
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
{
lib,
pkgs,
factor-unwrapped,
overrides ? (self: super: { }),
}:
let
inside =
self:
let
callPackage = pkgs.newScope self;
in
lib.recurseIntoAttrs {
buildFactorApplication =
callPackage ../development/compilers/factor-lang/mk-factor-application.nix
{ };
buildFactorVocab = callPackage ../development/compilers/factor-lang/mk-vocab.nix { };
inherit factor-unwrapped;
factor-lang = callPackage ../development/compilers/factor-lang/wrapper.nix { };
factor-no-gui = callPackage ../development/compilers/factor-lang/wrapper.nix {
guiSupport = false;
};
factor-minimal = callPackage ../development/compilers/factor-lang/wrapper.nix {
enableDefaults = false;
guiSupport = false;
};
factor-minimal-gui = callPackage ../development/compilers/factor-lang/wrapper.nix {
enableDefaults = false;
};
# Vocabularies
bresenham = callPackage ../development/factor-vocabs/bresenham { };
}
// lib.optionalAttrs pkgs.config.allowAliases {
interpreter = throw "factorPackages now offers various wrapped factor runtimes (see documentation) and the buildFactorApplication helper.";
};
extensible-self = lib.makeExtensible (lib.extends overrides inside);
in
extensible-self