571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "fits-cloudctl";
|
|
version = "0.12.21"; # also update these 3 vars:
|
|
gitversion = "tags/v0.12.21-0-g0a0d89a"; # git describe --long --all
|
|
gitsha = "0a0d89a8"; # git rev-parse --short=8 HEAD
|
|
gittime = "2024-05-15T17:34:46+02:00"; # date --iso-8601=seconds
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fi-ts";
|
|
repo = "cloudctl";
|
|
rev = "v${version}";
|
|
hash = "sha256-O3wX7IW2puMg0xhOf9BUfxzCMCKHxtPJxOCpc+wY0Ao=";
|
|
};
|
|
|
|
vendorHash = "sha256-YSWO7Y9qtqCWfAMnzSMOWlXezjnggMLV8xF42vgOS7s=";
|
|
|
|
ldflags = [
|
|
"-X github.com/metal-stack/v.Version=${version}"
|
|
"-X github.com/metal-stack/v.Revision=${gitversion}"
|
|
"-X github.com/metal-stack/v.GitSHA1=${gitsha}"
|
|
"-X github.com/metal-stack/v.BuildDate=${gittime}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Command-line client for FI-TS Finance Cloud Native services";
|
|
homepage = "https://github.com/fi-ts/cloudctl";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ j0xaf ];
|
|
mainProgram = "cloudctl";
|
|
};
|
|
}
|