nixpkgs/pkgs/by-name/up/uplosi/package.nix
Paul Meyer 0e728ee19f uplosi: 0.1.1 -> 0.1.2
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2023-10-13 20:36:34 +02:00

31 lines
837 B
Nix

{ lib
, fetchFromGitHub
, buildGo121Module
}:
buildGo121Module rec {
pname = "uplosi";
version = "0.1.2";
src = fetchFromGitHub {
owner = "edgelesssys";
repo = pname;
rev = "v${version}";
hash = "sha256-9hOeKnjH6r3CPQSe6fQ6PXlVPEJ9NiyXvp5N1krG2XA=";
};
vendorHash = "sha256-RsjUPLe8omoN+XGyNhHDxzNfZR7VVTkh/f/On1oCRqM=";
CGO_ENABLED = "0";
ldflags = [ "-s" "-w" "-buildid=" "-X main.version=${version}" ];
flags = [ "-trimpath" ];
meta = with lib; {
description = "Upload OS images to cloud provider";
homepage = "https://github.com/edgelesssys/uplosi";
changelog = "https://github.com/edgelesssys/uplosi/releases/tag/v${version}";
license = licenses.asl20;
mainProgram = "uplosi";
maintainers = with maintainers; [ katexochen malt3 ];
platforms = platforms.unix;
};
}