Skip to content

Commit

Permalink
okms-cli: init at 0.1.2 (NixOS#355475)
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst authored Dec 19, 2024
2 parents f6013ee + d6aa244 commit aa0bca5
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
47 changes: 47 additions & 0 deletions pkgs/by-name/ok/okms-cli/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
okms-cli,
testers,
}:

buildGoModule rec {
pname = "okms-cli";
version = "0.1.2";

src = fetchFromGitHub {
owner = "ovh";
repo = "okms-cli";
rev = "refs/tags/v${version}";
hash = "sha256-We1Aq9dOzEa7M6tG8kiVGfWhXfkpdZaJsJ5MCM/HZL4=";
};

vendorHash = "sha256-DyIqsvqTi6Yq8MADty/iSiDLgdd2vP/IDyCOm0yaQzk=";

ldflags = [
"-s"
"-w"
"-X main.version=${version}"
"-X main.commit=${src.rev}"
"-X main.date=unknown"
];

passthru = {
tests.version = testers.testVersion {
package = okms-cli;
command = "okms version";
};
updateScript = nix-update-script { };
};

meta = {
homepage = "https://github.com/ovh/okms-cli";
changelog = "https://github.com/ovh/okms-cli/releases/tag/v${version}";
description = "Command Line Interface to interact with your OVHcloud KMS services";
mainProgram = "okms";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.anthonyroussel ];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15041,6 +15041,10 @@ with pkgs;
obs-studio-plugins = recurseIntoAttrs (callPackage ../applications/video/obs-studio/plugins {});
wrapOBS = callPackage ../applications/video/obs-studio/wrapper.nix { };

okms-cli = callPackage ../by-name/ok/okms-cli/package.nix {
buildGoModule = buildGo123Module;
};

omegat = callPackage ../applications/misc/omegat.nix { };

openambit = qt5.callPackage ../applications/misc/openambit { };
Expand Down

0 comments on commit aa0bca5

Please sign in to comment.