diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2024-01-13 00:07:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-13 00:07:47 -0500 |
commit | 122e28f71fb4536c169900ef3beb2352792876a2 (patch) | |
tree | 24344f81d8570755a9c50575b707ca320a4b084d /pkgs/by-name/fi | |
parent | 0032a648eca714487311daf658e97e2548f54adf (diff) | |
parent | c0d64b0e404efe50456fb8de2a6071a87eadebc5 (diff) |
Merge pull request #275925 from kashw2/files-cli
files-cli: init at 2.12.14
Diffstat (limited to 'pkgs/by-name/fi')
-rw-r--r-- | pkgs/by-name/fi/files-cli/package.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/by-name/fi/files-cli/package.nix b/pkgs/by-name/fi/files-cli/package.nix new file mode 100644 index 0000000000000..cd8a5efc1f338 --- /dev/null +++ b/pkgs/by-name/fi/files-cli/package.nix @@ -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"; + }; + +} |