-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
39 lines (34 loc) · 861 Bytes
/
Copy pathflake.nix
File metadata and controls
39 lines (34 loc) · 861 Bytes
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
{
description = "A logic simulator written in Zig and powered by Raylib.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
systems.url = "github:nix-systems/default";
zig2nix.url = "github:Cloudef/zig2nix";
};
outputs =
inputs@{
self,
flake-parts,
...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = import inputs.systems;
perSystem =
{
self',
pkgs,
system,
...
}:
{
packages = {
logic-sim = pkgs.callPackage ./. { };
default = self'.packages.logic-sim;
};
devShells.default = pkgs.callPackage ./shell.nix {
inherit (self'.packages) logic-sim;
};
};
};
}