Merge pull request #222132 from dylanmtaylor/scalr-cli
This commit is contained in:
commit
a8cb03117a
@ -4124,6 +4124,12 @@
|
||||
githubId = 6689924;
|
||||
name = "David Terry";
|
||||
};
|
||||
dylanmtaylor = {
|
||||
email = "dylan@dylanmtaylor.com";
|
||||
github = "dylamtaylor";
|
||||
githubId = 277927;
|
||||
name = "Dylan Taylor";
|
||||
};
|
||||
dysinger = {
|
||||
email = "tim@dysinger.net";
|
||||
github = "dysinger";
|
||||
|
43
pkgs/tools/admin/scalr-cli/default.nix
Normal file
43
pkgs/tools/admin/scalr-cli/default.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "scalr-cli";
|
||||
version = "0.14.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Scalr";
|
||||
repo = "scalr-cli";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-X/fZDM1OYw1a0la8os9TFUrl1h5BnO+C40h2XH32vmw=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-EdDhq6LnxagutxjiOoYElhHVnSKhr/Ekt928gSooPYY=";
|
||||
|
||||
ldflags = [
|
||||
"-s" "-w"
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
# Set the version.
|
||||
substituteInPlace main.go --replace '"0.0.0"' '"${version}"'
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/cli $out/bin/scalr
|
||||
'';
|
||||
|
||||
doCheck = false; # Skip tests as they require creating actual Scalr resources.
|
||||
|
||||
meta = with lib; {
|
||||
description = "A command-line tool that communicates directly with the Scalr API.";
|
||||
homepage = "https://github.com/Scalr/scalr-cli";
|
||||
changelog = "https://github.com/Scalr/scalr-cli/releases/tag/v${version}";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ dylanmtaylor ];
|
||||
mainProgram = "scalr";
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
@ -25641,6 +25641,8 @@ with pkgs;
|
||||
|
||||
sampler = callPackage ../applications/misc/sampler { };
|
||||
|
||||
scalr-cli = callPackage ../tools/admin/scalr-cli { };
|
||||
|
||||
shairplay = callPackage ../servers/shairplay { avahi = avahi-compat; };
|
||||
|
||||
shairport-sync = callPackage ../servers/shairport-sync { };
|
||||
|
Loading…
Reference in New Issue
Block a user