treefmt/flake.nix
2022-05-03 19:09:25 -04:00

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;
}
);
}