2022-07-31 11:23:05 -07:00
|
|
|
{
|
2022-07-31 15:00:58 -07:00
|
|
|
description = "A Nix-flake-based Cue development environment";
|
2022-07-31 11:23:05 -07:00
|
|
|
|
|
|
|
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; };
|
|
|
|
inherit (pkgs) cue mkShell;
|
|
|
|
in {
|
|
|
|
devShells = {
|
|
|
|
default = mkShell {
|
|
|
|
buildInputs = [ cue ];
|
|
|
|
|
|
|
|
shellHook = ''
|
|
|
|
${cue}/bin/cue version
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|