treefmt/flake.nix
zimbatm 3824820f08
flake.nix: clean outputs
Move closer to the nix 2.8 schema
2022-05-18 20:26:35 +02:00

27 lines
637 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
nixpkgs' = nixpkgs.legacyPackages.${system};
pkgs = import self {
inherit system;
inputs = null;
nixpkgs = nixpkgs';
};
in
{
defaultPackage = pkgs.default;
packages = pkgs;
devShell = pkgs.devShell;
}
);
}