Create a go-api dev shell
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
92c10ef33e
commit
549b76b863
4 changed files with 11 additions and 51 deletions
10
flake.nix
10
flake.nix
|
|
@ -19,6 +19,16 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
devShells.${system} = {
|
devShells.${system} = {
|
||||||
|
go-api = pkgs.mkShell {
|
||||||
|
packages = with pkgs; [
|
||||||
|
curlMinimal
|
||||||
|
go
|
||||||
|
jq
|
||||||
|
];
|
||||||
|
|
||||||
|
shellHook = ''go version'';
|
||||||
|
};
|
||||||
|
|
||||||
openapi = pkgs.mkShell {
|
openapi = pkgs.mkShell {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
openapi-generator-cli
|
openapi-generator-cli
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
use flake
|
use flake ..#go-api
|
||||||
|
|
|
||||||
27
go-api/flake.lock
generated
27
go-api/flake.lock
generated
|
|
@ -1,27 +0,0 @@
|
||||||
{
|
|
||||||
"nodes": {
|
|
||||||
"nixpkgs": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1758277210,
|
|
||||||
"narHash": "sha256-iCGWf/LTy+aY0zFu8q12lK8KuZp7yvdhStehhyX1v8w=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "8eaee110344796db060382e15d3af0a9fc396e0e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": "nixpkgs"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": "root",
|
|
||||||
"version": 7
|
|
||||||
}
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
{
|
|
||||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
||||||
|
|
||||||
outputs =
|
|
||||||
{ nixpkgs, ... }:
|
|
||||||
let
|
|
||||||
system = "x86_64-linux";
|
|
||||||
pkgs = import nixpkgs { inherit system; };
|
|
||||||
in
|
|
||||||
{
|
|
||||||
devShells.${system}.default = pkgs.mkShell {
|
|
||||||
packages = with pkgs; [
|
|
||||||
curlMinimal
|
|
||||||
go
|
|
||||||
jq
|
|
||||||
];
|
|
||||||
|
|
||||||
shellHook = ''
|
|
||||||
go version
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue