13 src = fetchFromGitHub {
14 owner = "edgelesssys";
17 hash = "sha256-5I916T70sH4UAq5EGRjR7lnRBbPqMJIxaXwUCJQ4DcM=";
20 vendorHash = "sha256-2lJmPNLpI1ksFb0EtcjPjyTy7eX1DKeX0F80k9FtGno=";
22 env.CGO_ENABLED = "0";
25 "-X main.version=${version}"
28 nativeBuildInputs = [ installShellFiles ];
31 installShellCompletion --cmd uplosi \
32 --bash <($out/bin/uplosi completion bash) \
33 --fish <($out/bin/uplosi completion fish) \
34 --zsh <($out/bin/uplosi completion zsh)
37 passthru.updateScript = nix-update-script { };
40 description = "Upload OS images to cloud provider";
41 homepage = "https://github.com/edgelesssys/uplosi";
42 changelog = "https://github.com/edgelesssys/uplosi/releases/tag/v${version}";
43 license = lib.licenses.asl20;
44 mainProgram = "uplosi";
45 maintainers = with lib.maintainers; [
49 platforms = lib.platforms.unix;