nixpkgs/pkgs/by-name/sc/scalingo/package.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

34 lines
761 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "scalingo";
version = "1.31.0";
src = fetchFromGitHub {
owner = pname;
repo = "cli";
rev = version;
hash = "sha256-Y162BHTlerTbsRJ1KhT82iBMv+jI7Rq+h8JfBIV0uIs=";
};
vendorHash = null;
preCheck = ''
export HOME=$TMPDIR
'';
postInstall = ''
rm $out/bin/dists
'';
meta = with lib; {
description = "Command line client for the Scalingo PaaS";
mainProgram = "scalingo";
homepage = "https://doc.scalingo.com/platform/cli/start";
changelog = "https://github.com/Scalingo/cli/blob/master/CHANGELOG.md";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ cimm ];
platforms = with lib.platforms; unix;
};
}