packages/flake.nix

29 lines
779 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 { };
zephyrPackages = final.callPackage ./packages/zephyr { };
};
};
}