32 lines
943 B
Nix
32 lines
943 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 { };
|
|
ipsw = final.callPackage ./packages/ipsw { };
|
|
kernelPatches = prev.kernelPatches
|
|
// final.callPackage ./packages/kernelPatches { };
|
|
zephyrPackages = final.callPackage ./packages/zephyr { };
|
|
};
|
|
};
|
|
}
|
|
|