dev-templates/nix/flake.nix

29 lines
671 B
Nix
Raw Normal View History

2022-07-29 00:07:43 +02:00
{
2022-07-29 00:14:21 +02:00
description = "A Nix-flake-based Nix development environment";
2022-07-29 00:07:43 +02:00
2022-07-31 13:02:06 +02:00
inputs = { dev.url = "github:the-nix-way/dev-templates"; };
2022-07-29 00:07:43 +02:00
2022-07-31 12:57:49 +02:00
outputs = { self, dev }:
2022-07-31 13:02:06 +02:00
let inherit (dev.lib) flake-utils nixpkgs;
2022-07-31 12:57:49 +02:00
in flake-utils.lib.eachDefaultSystem (system:
2022-07-29 00:07:43 +02:00
let
pkgs = import nixpkgs { inherit system; };
2022-07-29 00:29:33 +02:00
dhallNix = pkgs.haskellPackages.dhall-nix;
2022-07-29 00:07:43 +02:00
2022-07-29 00:42:22 +02:00
nixRelatedTools = with pkgs; [
cachix
dhallNix
lorri
niv
nixfmt
statix
2022-07-31 17:59:22 +02:00
vulnix
2022-07-29 00:42:22 +02:00
];
2022-07-29 00:07:43 +02:00
inherit (pkgs) mkShell;
in {
2022-07-31 17:59:22 +02:00
devShells = { default = mkShell { buildInputs = nixRelatedTools; }; };
2022-07-29 00:11:05 +02:00
});
2022-07-29 00:07:43 +02:00
}