-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
31 lines (28 loc) · 803 Bytes
/
flake.nix
File metadata and controls
31 lines (28 loc) · 803 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
{
description = "Flake for TDA384 Principles of Concurrent Programming";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-25.11";
};
outputs = {
self,
nixpkgs,
}: let
inherit (nixpkgs) lib;
forAllSystems = lib.genAttrs lib.systems.flakeExposed;
in {
packages = forAllSystems (system: let
pkgs = import nixpkgs {inherit system;};
in {
tsim = pkgs.callPackage ./packages/tsim.nix {};
tsim_extractor = pkgs.callPackage ./packages/tsim_extractor.nix {};
});
nixosModules.default = {pkgs, ...}: {
environment.systemPackages = with pkgs; [
erlang
jdk25
self.packages.${pkgs.stdenv.hostPlatform.system}.tsim
self.packages.${pkgs.stdenv.hostPlatform.system}.tsim_extractor
];
};
};
}