-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
49 lines (44 loc) · 1.27 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
{
description = "s7 Scheme";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11";
flake-utils.url = "github:numtide/flake-utils";
s7-src = {
url = "git+https://cm-gitlab.stanford.edu/bil/s7.git";
#url = "git+https://cm-gitlab.stanford.edu/bil/s7.git?ref=master&rev="60797b15443179ce9f4ce5dcda82aa1951f1fd08";
flake = false;
};
s7-man = {
url = "github:mobileink/s7";
flake = false;
};
};
outputs = { self, nixpkgs, flake-utils, s7-src, s7-man }:
{
overlay = import ./overlay.nix { inherit s7-src s7-man; };
}
//
( # TODO: Support other s7's other systems (freebsd, openbsd, osx, windows).
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let
pkgs = import nixpkgs {
inherit system;
# config = {
# #allowBroken = true;
# #allowUnfree = true;
# };
overlays = [
self.overlay
];
};
in rec
{
packages = flake-utils.lib.flattenTree { s7 = pkgs.s7; };
devShell = pkgs.mkShell {
buildInputs = with pkgs; [ s7 ];
#inputsFrom = builtins.attrValues self.packages.${system};
};
}
)
);
}