mirror of
https://github.com/numtide/treefmt.git
synced 2024-09-11 17:07:44 +03:00
24 lines
619 B
Nix
24 lines
619 B
Nix
{
|
|
description = "treefmt";
|
|
# To update all inputs:
|
|
# $ nix flake update --recreate-lock-file
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
outputs = { self, nixpkgs, flake-utils }@inputs:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import self {
|
|
inherit system;
|
|
inputs = null;
|
|
nixpkgs = nixpkgs.legacyPackages.${system};
|
|
};
|
|
in
|
|
{
|
|
defaultPackage = pkgs.defaultPackage;
|
|
legacyPackages = pkgs;
|
|
devShell = pkgs.devShell;
|
|
}
|
|
);
|
|
}
|