-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
50 lines (48 loc) · 1.22 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
50
{
description = "Nix repo for calculator programs";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
nixpkgs,
self,
flake-utils,
}@inputs:
flake-utils.lib.eachSystem
[
"x86_64-linux"
"x86_64-darwin"
]
(
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
rec {
formatter = pkgs.nixfmt-rfc-style;
legacyPackages = pkgs.callPackage ./pkgs { packages = self.legacyPackages.${system}; };
checks.default = pkgs.linkFarm "all-nix-calculators" (
(map (name: {
inherit name;
path = legacyPackages.CEPrograms.${name};
}) (builtins.attrNames legacyPackages.CEPrograms))
++ (map
(name: {
inherit name;
path = legacyPackages.${name};
})
[
"convbin"
"llvm-ez80"
"ce-toolchain"
"ce-toolchain-stable"
"ce-libs"
"ce-libs-stable"
]
)
);
}
);
}