packages/flake.nix

28 lines
703 B
Nix
Raw Normal View History

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;
overlays = [ (final: prev: self.packages."${system}") ];
};
2023-11-12 01:16:34 +00:00
in {
packages = {
jlink = pkgs.callPackage ./packages/jlink { };
zephyr = pkgs.callPackage ./packages/zephyr { };
};
2023-11-11 23:03:50 +00:00
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-11-11 23:03:50 +00:00