完成,一个小玩具

This commit is contained in:
SenseT
2025-03-04 10:26:15 +08:00
parent b6cd3ebb69
commit 4c22d6b97e
9 changed files with 227 additions and 0 deletions

36
flake.nix Normal file
View File

@@ -0,0 +1,36 @@
{
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;
}
);
}