mirror of
https://github.com/senseab/lmxg-mu50.git
synced 2025-04-05 12:48:57 +00:00
37 lines
815 B
Nix
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;
|
|
}
|
|
);
|
|
}
|