summaryrefslogtreecommitdiffstats
path: root/pkgs/tools
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-03-26 00:14:23 +0100
committerGitHub <noreply@github.com>2021-03-26 00:14:23 +0100
commit019908e3719c50f2c14fe117f57ec9f57c6a24e4 (patch)
treec00c900893abc558369cceb5222e7a8a9c7dc6c6 /pkgs/tools
parentdd84a7fd7b7fdb45f282423bf20a6b8cb093d335 (diff)
parent5c6f1d416f8517a6843e3b63f3a0222c7be34389 (diff)
Merge pull request #115885 from MatthewCroughan/fioctl
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/admin/fioctl/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/admin/fioctl/default.nix b/pkgs/tools/admin/fioctl/default.nix
new file mode 100644
index 000000000000..2c04eef21607
--- /dev/null
+++ b/pkgs/tools/admin/fioctl/default.nix
@@ -0,0 +1,28 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+ pname = "fioctl";
+ version = "0.14.1";
+
+ src = fetchFromGitHub {
+ owner = "foundriesio";
+ repo = "fioctl";
+ rev = "v${version}";
+ sha256 = "1jbj2w2s78wcnrwyr80jyc11ipjysv5aab3486kphx8ysvvgcwfs";
+ };
+
+ vendorSha256 = "1a3x6cv18f0n01f4ac1kprzmby8dphygnwsdl98pmzs3gqqnh284";
+
+ runVend = true;
+
+ buildFlagsArray = ''
+ -ldflags=-s -w -X github.com/foundriesio/fioctl/subcommands/version.Commit=${src.rev}
+ '';
+
+ meta = with lib; {
+ description = "A simple CLI to manage your Foundries Factory ";
+ homepage = "https://github.com/foundriesio/fioctl";
+ license = licenses.asl20;
+ maintainers = with maintainers; [ nixinator matthewcroughan ];
+ };
+}