From 549b76b8632847b2a9eee6fd2e98430c8a731130 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 23 Sep 2025 21:54:34 +0100 Subject: [PATCH] Create a `go-api` dev shell Signed-off-by: Oliver Davies --- flake.nix | 10 ++++++++++ go-api/.envrc | 2 +- go-api/flake.lock | 27 --------------------------- go-api/flake.nix | 23 ----------------------- 4 files changed, 11 insertions(+), 51 deletions(-) delete mode 100644 go-api/flake.lock delete mode 100644 go-api/flake.nix diff --git a/flake.nix b/flake.nix index b194c5d..b873f43 100644 --- a/flake.nix +++ b/flake.nix @@ -19,6 +19,16 @@ }; devShells.${system} = { + go-api = pkgs.mkShell { + packages = with pkgs; [ + curlMinimal + go + jq + ]; + + shellHook = ''go version''; + }; + openapi = pkgs.mkShell { packages = with pkgs; [ openapi-generator-cli diff --git a/go-api/.envrc b/go-api/.envrc index 3550a30..8d22068 100644 --- a/go-api/.envrc +++ b/go-api/.envrc @@ -1 +1 @@ -use flake +use flake ..#go-api diff --git a/go-api/flake.lock b/go-api/flake.lock deleted file mode 100644 index 3c2b40c..0000000 --- a/go-api/flake.lock +++ /dev/null @@ -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 -} diff --git a/go-api/flake.nix b/go-api/flake.nix deleted file mode 100644 index 29f073d..0000000 --- a/go-api/flake.nix +++ /dev/null @@ -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 - ''; - }; - }; -}