packages/flake.nix

25 lines
628 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 = [ (final: prev: self.packages."${system}") ];
};
in {
packages = { zephyr = pkgs.callPackage ./packages/zephyr { }; };
devShells = { zephyr = pkgs.callPackage ./shells/zephyr { }; };
formatter = pkgs.nixfmt;
});
}