Update and improve nix flake (#5349)

This commit is contained in:
6543 2025-07-23 16:15:30 +02:00 committed by GitHub
parent 900a7a0ca5
commit 0b095edabc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 40 additions and 32 deletions

View File

@ -20,11 +20,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1748358057,
"narHash": "sha256-JrIw2CvtXFUzFiUl+Nlw0TRxFfBzfix+ay2Dq0e/HAI=",
"lastModified": 1753273077,
"narHash": "sha256-fp8L9m6Z3TDNV8+IczogsTcwWcaYuxLIzG/M4aAFkmA=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "495e5187df01bad31fbe7faf4bc20feade7132d8",
"rev": "2bb57ed7e7fc2b7ce3b39c6934e4fb069dc7922d",
"type": "github"
},
"original": {

View File

@ -12,11 +12,17 @@
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
devShells.default =
with pkgs;
let
go = go_1_24;
in
pkgs.mkShell {
buildInputs = [
# generic
gnumake
gnutar
gzip
zip
tree
@ -27,11 +33,11 @@
nodePackages.typescript-language-server
# backend
go_1_24
go
glibc.static
gofumpt
golangci-lint
go-mockery
go-mockery_2
protobuf
sqlite
go-swag # for generate-openapi
@ -42,6 +48,8 @@
];
CFLAGS = "-I${pkgs.glibc.dev}/include";
LDFLAGS = "-L${pkgs.glibc}/lib";
GO = "${go}/bin/go";
GOROOT = "${go}/share/go";
};
}
);