2023-11-11 23:03:50 +00:00
|
|
|
{
|
|
|
|
description = "artemist's NixOS packages and shells for development";
|
2023-11-12 01:16:34 +00:00
|
|
|
|
2023-11-11 23:03:50 +00:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
|
|
utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
|
2023-11-12 01:16:34 +00:00
|
|
|
outputs = { self, nixpkgs, utils }:
|
|
|
|
utils.lib.eachDefaultSystem (system:
|
2023-11-12 05:10:09 +00:00
|
|
|
let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
2023-12-02 00:57:07 +00:00
|
|
|
overlays = [ self.overlays.default ];
|
2023-11-12 05:10:09 +00:00
|
|
|
};
|
2023-11-12 01:16:34 +00:00
|
|
|
in {
|
2023-11-12 05:10:09 +00:00
|
|
|
devShells = { zephyr = pkgs.callPackage ./shells/zephyr { }; };
|
|
|
|
|
2023-11-12 01:16:34 +00:00
|
|
|
formatter = pkgs.nixfmt;
|
2023-12-02 00:57:07 +00:00
|
|
|
packages = self.overlays.default pkgs pkgs;
|
|
|
|
}) // {
|
|
|
|
overlays.default = final: prev: {
|
|
|
|
jlink = final.callPackage ./packages/jlink { };
|
|
|
|
zephyrPackages = final.callPackage ./packages/zephyr { };
|
|
|
|
};
|
|
|
|
};
|
2023-11-12 01:16:34 +00:00
|
|
|
}
|
2023-11-11 23:03:50 +00:00
|
|
|
|