-
Notifications
You must be signed in to change notification settings - Fork 8
/
flake.nix
47 lines (42 loc) · 1.07 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
{
description = "Open-source Star Tracker";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/release-24.05";
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
outputs = inputs@{ self, nixpkgs, flake-utils, ... }:
let
overlays = [
(final: prev: rec { lost = prev.callPackage ./nix/package.nix { }; })
];
in flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs { inherit overlays system; };
in {
packages.default = pkgs.lost;
packages.lost = pkgs.lost;
devShells.default = pkgs.mkShell {
packages = with pkgs; [
gcc
clang-tools
gnumake
bear
gdb
valgrind
man
groff
imagemagick
cpplint
doxygen
graphviz
unixtools.xxd
eigen
cairo
];
};
devShell = self.devShells.${system}.default;
});
}