1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-21 12:44:49 -05:00

install go and gopls in nix flake devShell

This commit is contained in:
Christian Kampka 2024-12-08 13:04:22 +01:00
parent acbdec0507
commit 3742aa3158

View file

@ -3,14 +3,15 @@
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ nixpkgs, flake-utils, ... }:
outputs = {
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
system: let
pkgs = nixpkgs.legacyPackages.${system};
in
{
in {
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
# generic
@ -31,6 +32,8 @@
# backend
gofumpt
sqlite
go
gopls
];
};
}