mirror of
https://github.com/apricote/hcloud-upload-image.git
synced 2026-01-13 13:21:01 +00:00
feat: Add default.nix
This commit is contained in:
parent
b440f8d7f6
commit
87f75201e1
1 changed files with 29 additions and 0 deletions
29
default.nix
Normal file
29
default.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "hcloud-upload-image";
|
||||
version =
|
||||
builtins.head (builtins.match ".*version = \"([0-9.]+)\".*"
|
||||
(builtins.readFile ./internal/version/version.go));
|
||||
|
||||
src = ./.;
|
||||
vendorHash = "sha256-HPskDotHX5GnbuL2KkoqRiY4G1MxOvwJBMBPDCIzHvE=";
|
||||
env.GOWORK = "off";
|
||||
subPackages = ["."];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X main.version=${version}"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Quickly upload any raw disk images into your Hetzner Cloud projects";
|
||||
homepage = "https://github.com/apricote/hcloud-upload-image";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [];
|
||||
mainProgram = "hcloud-upload-image";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue