mirror of
https://github.com/the-nix-way/dev-templates
synced 2024-05-08 02:26:13 +02:00
vlang
This commit is contained in:
parent
87c19f735d
commit
f1fcc3258a
|
@ -57,6 +57,7 @@ Once your preferred template has been initialized, you can use the provided shel
|
|||
| [Rust] | [`rust`](./rust/) |
|
||||
| [Scala] | [`scala`](./scala/) |
|
||||
| [Shell] | [`shell`](./shell/) |
|
||||
| [Vlang] | [`vlang`](./shell/) |
|
||||
| [Zig] | [`zig`](./zig/) |
|
||||
|
||||
## Template contents
|
||||
|
@ -263,6 +264,10 @@ The sections below list what each template includes. In all cases, you're free t
|
|||
|
||||
- [shellcheck] 0.9.0
|
||||
|
||||
### [`Vlang`](./vlang/)
|
||||
|
||||
- [Vlang] 0.4.4
|
||||
|
||||
### [`zig`](./zig/)
|
||||
|
||||
- [Zig] 0.10.1
|
||||
|
@ -386,4 +391,5 @@ All of the templates have only the root [flake](./flake.nix) as a flake input. T
|
|||
[virtualenv]: https://pypi.org/project/virtualenv
|
||||
[vulnix]: https://github.com/flyingcircusio/vulnix
|
||||
[yarn]: https://yarnpkg.com
|
||||
[vlang]: https://vlang.io/
|
||||
[zig]: https://ziglang.org
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1689261696,
|
||||
"narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
|
||||
"lastModified": 1706683685,
|
||||
"narHash": "sha256-FtPPshEpxH/ewBOsdKBNhlsL2MLEFv1hEnQ19f/bFsQ=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
|
||||
"rev": "5ad9903c16126a7d949101687af0aa589b1d7d3d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -206,6 +206,11 @@
|
|||
description = "Shell script development environment";
|
||||
};
|
||||
|
||||
vlang = {
|
||||
path = ./vlang;
|
||||
description = "Vlang developent environment";
|
||||
};
|
||||
|
||||
zig = {
|
||||
path = ./zig;
|
||||
description = "Zig development environment";
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
use flake
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1706550542,
|
||||
"narHash": "sha256-UcsnCG6wx++23yeER4Hg18CXWbgNpqNXcHIo5/1Y+hc=",
|
||||
"rev": "97b17f32362e475016f942bbdfda4a4a72a8a652",
|
||||
"revCount": 577948,
|
||||
"type": "tarball",
|
||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.577948%2Brev-97b17f32362e475016f942bbdfda4a4a72a8a652/018d5e85-4e02-7200-b411-d764d60cd44e/source.tar.gz"
|
||||
},
|
||||
"original": {
|
||||
"type": "tarball",
|
||||
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
description = "A Nix-flake-based Vlang development environment";
|
||||
|
||||
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
});
|
||||
in
|
||||
{
|
||||
devShells = forEachSupportedSystem ({ pkgs }: {
|
||||
default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
vlang
|
||||
];
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue