mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
Merge pull request #275925 from kashw2/files-cli
files-cli: init at 2.12.14
This commit is contained in:
commit
122e28f71f
53
pkgs/by-name/fi/files-cli/package.nix
Normal file
53
pkgs/by-name/fi/files-cli/package.nix
Normal file
@ -0,0 +1,53 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildGoModule
|
||||
, testers
|
||||
, files-cli
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "files-cli";
|
||||
version = "2.12.14";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "files-cli";
|
||||
owner = "files-com";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-3saSSEvX/KxMs3r3sVmdTQDAkwtqo8IYdTcPVhmeD18=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-yqg1Xd3tIe4LxPaghh+Rm3++Lugc1T7/EmbX0ZZMMxw=";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X main.version=${version}"
|
||||
];
|
||||
|
||||
doInstallCheck = true;
|
||||
|
||||
installCheckPhase = ''
|
||||
runHook preInstallCheck
|
||||
|
||||
$out/bin/files-cli --help
|
||||
|
||||
runHook postInstallCheck
|
||||
'';
|
||||
|
||||
passthru.tests = {
|
||||
version = testers.testVersion {
|
||||
package = files-cli;
|
||||
command = "files-cli -v";
|
||||
version = "files-cli version ${version}";
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Files.com Command Line App for Windows, Linux, and macOS.";
|
||||
homepage = "https://developers.files.com";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ kashw2 ];
|
||||
mainProgram = "files-cli";
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user