2020-11-14 10:15:41 +01:00
|
|
|
let
|
|
|
|
sources = import ./nix/sources.nix;
|
|
|
|
pkgs = import sources.nixpkgs { };
|
2020-08-22 17:44:39 +02:00
|
|
|
|
2020-11-14 10:15:41 +01:00
|
|
|
nix-pre-commit-hooks = import sources."pre-commit-hooks.nix";
|
|
|
|
|
|
|
|
pre-commit-check = nix-pre-commit-hooks.run {
|
|
|
|
src = ./.;
|
|
|
|
hooks = {
|
|
|
|
nixpkgs-fmt.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
2020-08-22 17:44:39 +02:00
|
|
|
pkgs.mkShell {
|
|
|
|
nativeBuildInputs = with pkgs; [
|
2020-11-14 10:15:41 +01:00
|
|
|
git
|
|
|
|
niv
|
2020-08-22 17:44:39 +02:00
|
|
|
nixpkgs-fmt
|
|
|
|
];
|
2020-10-02 17:15:46 +02:00
|
|
|
shellHook = ''
|
2020-11-14 10:15:41 +01:00
|
|
|
${pre-commit-check.shellHook}
|
2020-08-22 17:44:39 +02:00
|
|
|
'';
|
|
|
|
}
|