-
Notifications
You must be signed in to change notification settings - Fork 8
/
flake.nix
26 lines (23 loc) · 965 Bytes
/
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
{
description = "A simulator for soccer robots programmed with ev3dev";
# On unstable to use some new python packages. Eventually will be merged into Nix 21.11
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.mindpile.url = "github:MelbourneHighSchoolRobotics/mindpile";
inputs.mindpile.inputs.nixpkgs.follows = "nixpkgs";
inputs.mindpile.inputs.flake-utils.follows = "flake-utils";
outputs = { nixpkgs, flake-utils, mindpile, ... }:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let
pkgs = nixpkgs.legacyPackages.${system};
mp = mindpile.legacyPackages.${system};
in rec {
packages = {
linux = pkgs.callPackage ./nix/linux.nix {
inherit (mp) mindpile;
};
windows = pkgs.callPackage ./nix/windows-installer.nix { };
};
defaultPackage = packages.linux;
});
}