lmxg-mu50/flake.nix
2025-03-04 10:26:15 +08:00

37 lines
815 B
Nix

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
treefmt-nix.url = "github:numtide/treefmt-nix";
};
outputs =
{
self,
nixpkgs,
treefmt-nix,
utils,
...
}:
utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
treefmtEval = treefmt-nix.lib.evalModule pkgs ./treefmt.nix;
inherit (pkgs) mkShell;
in
rec {
formatter = treefmtEval.config.build.wrapper;
devShell = mkShell {
nativeBuildInputs = with pkgs; [
tokei
nil
];
};
packages.lmxg-mu50 = pkgs.callPackage ./package.nix { };
defaultPackage = packages.lmxg-mu50;
}
);
}