-
Notifications
You must be signed in to change notification settings - Fork 4
/
flake.nix
41 lines (40 loc) · 1.2 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
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
crane.url = "github:ipetkov/crane";
};
outputs = inputs@{ flake-parts, crane, nixpkgs, ... }:
flake-parts.lib.mkFlake { inherit inputs; } (
{ withSystem, flake-parts-lib, ... }:
let inherit (flake-parts-lib) importApply;
tracexec.default = importApply ./nix/tracexec.nix { inherit crane; };
ukci.default = importApply ./nix/ukci.nix { inherit nixpkgs; };
in
{
imports = [
tracexec.default
ukci.default
];
flake = { };
systems = [
"x86_64-linux"
"aarch64-linux"
"riscv64-linux"
];
perSystem = { self', config, lib, pkgs, ... }: {
packages.default = self'.packages.tracexec;
devShells.default = pkgs.mkShell {
name = "Development Shell";
packages = with pkgs; [
strace
nixpkgs-fmt
self'.packages.run-qemu
self'.packages.test-qemu
];
shellHook = ''export TRACEXEC_LOGLEVEL=debug'';
};
};
}
);
}