summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Jheng <wentworth@outlook.com>2022-04-04 03:15:14 +0000
committerAaron Jheng <wentworth@outlook.com>2022-04-04 03:15:14 +0000
commit1f72f975349e71525983050a09c62e18cca75ef3 (patch)
tree508fa430fabf0c1c273c6712cc332f6e69e324cf
parente0dc07236e232d1a581dd33adb48e36194f43535 (diff)
marathonctl: 2017-03-06 -> 0.0.7
-rw-r--r--pkgs/tools/virtualization/marathonctl/default.nix20
-rw-r--r--pkgs/tools/virtualization/marathonctl/deps.nix12
2 files changed, 10 insertions, 22 deletions
diff --git a/pkgs/tools/virtualization/marathonctl/default.nix b/pkgs/tools/virtualization/marathonctl/default.nix
index fe31c64952a5..12111819c26b 100644
--- a/pkgs/tools/virtualization/marathonctl/default.nix
+++ b/pkgs/tools/virtualization/marathonctl/default.nix
@@ -1,20 +1,20 @@
-{ lib, buildGoPackage, fetchFromGitHub }:
+{ lib, buildGoModule, fetchFromGitHub }:
-buildGoPackage {
- pname = "marathonctl-unstable";
- version = "2017-03-06";
-
- goPackagePath = "github.com/shoenig/marathonctl";
- subPackages = [ "." ];
- goDeps = ./deps.nix;
+buildGoModule rec {
+ pname = "marathonctl";
+ version = "0.0.7";
src = fetchFromGitHub {
owner = "shoenig";
repo = "marathonctl";
- rev = "0867e66551fff5d81f25959baf914a8ee11a3a8b";
- sha256 = "1fcc54hwpa8s3kz4gn26mc6nrv6zjrw869331nvm47khi23gpmxw";
+ rev = "v${version}";
+ sha256 = "sha256-MigmvOwYa0uYPexchS4MP74I1Tp6QHYuQVSOh1+FrMg=";
};
+ vendorSha256 = "sha256-Oiol4KuPOyJq2Bfc5div+enX4kQqYn20itmwWBecuIg=";
+
+ ldflags = [ "-s" "-w" ];
+
meta = with lib; {
homepage = "https://github.com/shoenig/marathonctl";
description = "CLI tool for Marathon";
diff --git a/pkgs/tools/virtualization/marathonctl/deps.nix b/pkgs/tools/virtualization/marathonctl/deps.nix
deleted file mode 100644
index 39efaab95358..000000000000
--- a/pkgs/tools/virtualization/marathonctl/deps.nix
+++ /dev/null
@@ -1,12 +0,0 @@
-# This file was generated by go2nix.
-[
- {
- goPackagePath = "github.com/shoenig/config";
- fetch = {
- type = "git";
- url = "https://github.com/shoenig/config";
- rev = "7d793e7ad7f175ef22743b1ea38acee8267788db";
- sha256 = "1dhcv1j5xk30kj73dfnx3xqx8mcvk9r8ywp9khgf2kq6wh9sm1qr";
- };
- }
-]