Add initial cue template
This commit is contained in:
parent
ee03175914
commit
768fab19c9
|
@ -48,6 +48,11 @@ Once your preferred template has been initialized, you can use the provided shel
|
|||
|
||||
The sections below list what each template includes. In all cases, you're free to add and remove packages as you see fit; the templates are just boilerplate.
|
||||
|
||||
### [`cue`](./cue/)
|
||||
|
||||
- [Cue] 0.4.3
|
||||
- [nix-cue]
|
||||
|
||||
### [`dhall`](./dhall)
|
||||
|
||||
- [Dhall] 1.40.2
|
||||
|
@ -156,6 +161,7 @@ All of the templates have only the root [flake](./flake.nix) as a flake input. T
|
|||
[cachix]: https://www.cachix.org
|
||||
[cargo]: https://doc.rust-lang.org/cargo
|
||||
[clippy]: https://github.com/rust-lang/rust-clippy
|
||||
[cue]: https://cuelang.org
|
||||
[damon]: https://github.com/hashicorp/damon
|
||||
[dhall]: https://dhall-lang.org
|
||||
[dhall-to-nix]: https://github.com/dhall-lang/dhall-haskell/tree/master/dhall-nix
|
||||
|
@ -177,6 +183,7 @@ All of the templates have only the root [flake](./flake.nix) as a flake input. T
|
|||
[mix]: https://elixir-lang.org/getting-started/mix-otp/introduction-to-mix.html
|
||||
[niv]: https://github.com/nmattia/niv
|
||||
[nix]: https://nixos.org
|
||||
[nix-cue]: https://github.com/jmgilman/nix-cue
|
||||
[nixfmt]: https://github.com/serokell/nixfmt
|
||||
[nixpkgs]: https://github.com/NixOS/nixpkgs
|
||||
[nix-direnv]: https://github.com/nix-community/nix-direnv
|
||||
|
|
1
cue/.envrc
Normal file
1
cue/.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
use flake .
|
60
cue/flake.lock
Normal file
60
cue/flake.lock
Normal file
|
@ -0,0 +1,60 @@
|
|||
{
|
||||
"nodes": {
|
||||
"dev": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1659289982,
|
||||
"narHash": "sha256-XEOEHpwWSg9F3VkOBAgmuTAT3esCkseEf1v5Miyfiu8=",
|
||||
"owner": "the-nix-way",
|
||||
"repo": "dev-templates",
|
||||
"rev": "ee031759148051457e0045238419c51d77c0852e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "the-nix-way",
|
||||
"repo": "dev-templates",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-utils": {
|
||||
"locked": {
|
||||
"lastModified": 1656928814,
|
||||
"narHash": "sha256-RIFfgBuKz6Hp89yRr7+NR5tzIAbn52h8vT6vXkYjZoM=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "7e2a3b3dfd9af950a856d66b0a7d01e3c18aa249",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1659281650,
|
||||
"narHash": "sha256-iqcbzR7G498uI5DVbFXYmnit6Li80o+GTAxN9fyQhEI=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "a5ec6d540f73294ed83c897dedfae706def823a9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"dev": "dev"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
23
cue/flake.nix
Normal file
23
cue/flake.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
description = "A Nix-flake-based Dhall 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; };
|
||||
inherit (pkgs) cue mkShell;
|
||||
in {
|
||||
devShells = {
|
||||
default = mkShell {
|
||||
buildInputs = [ cue ];
|
||||
|
||||
shellHook = ''
|
||||
${cue}/bin/cue version
|
||||
'';
|
||||
};
|
||||
};
|
||||
});
|
||||
}
|
Loading…
Reference in a new issue