-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpkgs.nix
33 lines (28 loc) · 1.35 KB
/
pkgs.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
let
pkgs = import <nixpkgs> { inherit config; }; # selfPkgs
inherit (pkgs) lib;
_bar = lib.debug.traceVal "FOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO";
config = {
packageOverrides = superPkgs:
let superGS = superPkgs.gerbil-support;
superPPU = superGS.prePackages-unstable;
inherit (superGS) path-src overrideSrcIfShaDiff gerbilFilterSource gerbilLoadPath
gerbilVersionFromGit;
source = gerbilFilterSource ./.; in
rec {
gerbil-support = superGS // {
inherit pkgs;
# Skip extra files so we can play with CI configuration yet have the CI reuse cached builds.
gerbilSkippableFiles = superGS.gerbilSkippableFiles ++
[".gitlab.yml" ".github" "pkgs.nix" "shell.nix" "default.nix" "docs" "future" "dep"
"Dockerfile" "Dockerfile.nixos" "glow-install" "ci.ss" ".build"];
prePackages-unstable =
let glow-lang = superPPU.glow-lang //
{ pre-src = path-src source; inherit pkgs source;} //
gerbilVersionFromGit source "version"; in
superPPU // { inherit glow-lang;};};
glow-lang = gerbil-support.gerbilPackages-unstable.glow-lang;
testGerbilLoadPath =
"${gerbilLoadPath ([glow-lang] ++ glow-lang.passthru.pre-pkg.gerbilInputs)}:${source}";
};}; in
pkgs