31 lines
887 B
Nix
31 lines
887 B
Nix
{
|
|
description = "artemist's NixOS packages and shells for development";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, utils }:
|
|
utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [ self.overlays.default ];
|
|
};
|
|
in {
|
|
devShells = { zephyr = pkgs.callPackage ./shells/zephyr { }; };
|
|
|
|
formatter = pkgs.nixfmt;
|
|
packages = self.overlays.default pkgs pkgs;
|
|
}) // {
|
|
overlays.default = final: prev: {
|
|
jlink = final.callPackage ./packages/jlink { };
|
|
kernelPatches = prev.kernelPatches
|
|
// final.callPackage ./packages/kernelPatches { };
|
|
zephyrPackages = final.callPackage ./packages/zephyr { };
|
|
};
|
|
};
|
|
}
|
|
|