Add Nickel env
This commit is contained in:
parent
7d3513701f
commit
e583073582
|
@ -39,6 +39,7 @@ Once your preferred template has been initialized, you can use the provided shel
|
|||
| [Hashicorp] tools | [`hashi`](./hashi/) |
|
||||
| [Java] | [`java`](./java/) |
|
||||
| [Kotlin] | [`kotlin`](./kotlin/) |
|
||||
| [Nickel] | [`nickel`](./nickel/) |
|
||||
| [Nim] | [`nim`](./nim/) |
|
||||
| [Nix] | [`nix`](./nix/) |
|
||||
| [Node.js][node] | [`node`](./node/) |
|
||||
|
@ -127,6 +128,10 @@ The sections below list what each template includes. In all cases, you're free t
|
|||
- [Kotlin] 1.7.10-release-333
|
||||
- [Gradle] 7.5
|
||||
|
||||
### [`nickel`](./nickel/)
|
||||
|
||||
- [Nickel] 0.1.0
|
||||
|
||||
### [`nim`](./nim)
|
||||
|
||||
- [Nim] 1.6.6
|
||||
|
@ -228,6 +233,7 @@ All of the templates have only the root [flake](./flake.nix) as a flake input. T
|
|||
[mach-nix]: https://github.com/DavHau/mach-nix
|
||||
[maven]: https://maven.apache.org
|
||||
[mix]: https://elixir-lang.org/getting-started/mix-otp/introduction-to-mix.html
|
||||
[nickel]: https://nickel-lang.org
|
||||
[nim]: https://nim-lang.org
|
||||
[nimble]: https://github.com/nim-lang/nimble
|
||||
[niv]: https://github.com/nmattia/niv
|
||||
|
|
|
@ -65,6 +65,11 @@
|
|||
description = "Kotlin development environment";
|
||||
};
|
||||
|
||||
nickel = {
|
||||
path = ./nickel;
|
||||
description = "Nickel development environment";
|
||||
};
|
||||
|
||||
nim = {
|
||||
path = ./nim;
|
||||
description = "Nim development environment";
|
||||
|
|
1
nickel/.envrc
Normal file
1
nickel/.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
use flake .
|
60
nickel/flake.lock
Normal file
60
nickel/flake.lock
Normal file
|
@ -0,0 +1,60 @@
|
|||
{
|
||||
"nodes": {
|
||||
"dev": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1659301425,
|
||||
"narHash": "sha256-ws9jVuS3XKx5nYITvSGnMDj8y+JLu7W4ZLWgSoaWDG0=",
|
||||
"owner": "the-nix-way",
|
||||
"repo": "dev-templates",
|
||||
"rev": "34bf508a971639577be4ac3fc422897d380c5086",
|
||||
"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": 1659300577,
|
||||
"narHash": "sha256-mTlKMvvBJ4W32Y9VdEXATyMDUWEYVO4P9IWo8Mzn3rM=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "b91029be03d836b5ab33042aaf0167f02221c1ac",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"dev": "dev"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
23
nickel/flake.nix
Normal file
23
nickel/flake.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
description = "A Nix-flake-based Protobuf 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) mkShell nickel;
|
||||
in {
|
||||
devShells = {
|
||||
default = mkShell {
|
||||
buildInputs = [ nickel ];
|
||||
|
||||
shellHook = ''
|
||||
${nickel}/bin/nickel --version
|
||||
'';
|
||||
};
|
||||
};
|
||||
});
|
||||
}
|
Loading…
Reference in a new issue