dev-templates/gleam/flake.nix
2022-07-31 12:57:49 +02:00

29 lines
623 B
Nix

{
description = "A Nix-flake-based Gleam development environment";
inputs = {
dev.url = "github:the-nix-way/dev-templates";
};
outputs = { self, dev }:
let
inherit (dev.lib) flake-utils nixpkgs;
in flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
gleamPkg = pkgs.gleam;
inherit (pkgs) mkShell;
in {
devShells = {
default = mkShell {
buildInputs = [ gleamPkg ];
shellHook = ''
${gleamPkg}/bin/gleam --version
'';
};
};
});
}