mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-24 10:07:21 +02:00
Update nix flake (#3780)
This commit is contained in:
parent
a4b4b13ae7
commit
1228dd9dd6
8
Makefile
8
Makefile
@ -109,11 +109,11 @@ clean-all: clean ## Clean all artifacts
|
||||
|
||||
.PHONY: generate
|
||||
generate: install-tools generate-swagger ## Run all code generations
|
||||
go generate ./...
|
||||
CGO_ENABLED=0 go generate ./...
|
||||
|
||||
generate-swagger: install-tools ## Run swagger code generation
|
||||
swag init -g server/api/ -g cmd/server/swagger.go --outputTypes go -output cmd/server/docs
|
||||
go generate cmd/server/swagger.go
|
||||
CGO_ENABLED=0 go generate cmd/server/swagger.go
|
||||
|
||||
generate-license-header: install-tools
|
||||
addlicense -c "Woodpecker Authors" -ignore "vendor/**" **/*.go
|
||||
@ -317,7 +317,7 @@ spellcheck:
|
||||
##@ Docs
|
||||
.PHONY: docs
|
||||
docs: ## Generate docs (currently only for the cli)
|
||||
go generate cmd/cli/app.go
|
||||
go generate cmd/server/swagger.go
|
||||
CGO_ENABLED=0 go generate cmd/cli/app.go
|
||||
CGO_ENABLED=0 go generate cmd/server/swagger.go
|
||||
|
||||
endif
|
||||
|
12
flake.lock
generated
12
flake.lock
generated
@ -20,16 +20,16 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1715614915,
|
||||
"narHash": "sha256-O6sqpppOtlfgx6PK5bnkAvBudK1rpjP7ig0dj7HvIl0=",
|
||||
"owner": "NixOS",
|
||||
"lastModified": 1717974879,
|
||||
"narHash": "sha256-GTO3C88+5DX171F/gVS3Qga/hOs/eRMxPFpiHq2t+D8=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "d2ed14aa4f912254c578fc19b842f2910c9146be",
|
||||
"rev": "c7b821ba2e1e635ba5a76d299af62821cbcb09f3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "master",
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
|
14
flake.nix
14
flake.nix
@ -1,7 +1,6 @@
|
||||
{
|
||||
# Override nixpkgs to use the latest set of node packages
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/master";
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
@ -10,7 +9,7 @@
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
devShells.default = pkgs.mkShell {
|
||||
@ -20,18 +19,21 @@
|
||||
gnutar
|
||||
|
||||
# frontend
|
||||
nodejs
|
||||
nodePackages.pnpm
|
||||
nodejs_20
|
||||
pnpm
|
||||
nodePackages.typescript
|
||||
nodePackages.typescript-language-server
|
||||
|
||||
# backend
|
||||
go
|
||||
go_1_22
|
||||
glibc.static
|
||||
gofumpt
|
||||
golangci-lint
|
||||
go-mockery
|
||||
protobuf
|
||||
];
|
||||
CFLAGS = "-I${pkgs.glibc.dev}/include";
|
||||
LDFLAGS = "-L${pkgs.glibc}/lib";
|
||||
};
|
||||
}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user