about summary refs log tree commit diff
path: root/pkgs/tools/misc/steampipe
diff options
context:
space:
mode:
authorflurie <flurie@gmail.com>2022-07-15 22:47:09 -0400
committerflurie <flurie@gmail.com>2022-07-15 22:47:09 -0400
commitee63b2cd5ff502818db1547a90b9dfe957d61013 (patch)
tree2a3659e1e195a95af47d22b88f68c36f247c9c47 /pkgs/tools/misc/steampipe
parentcd4653d0dee6f76b37d0e19623bcf5b046e74e78 (diff)
steampipe: 0.15.0 -> 0.15.3
Diffstat (limited to 'pkgs/tools/misc/steampipe')
-rw-r--r--pkgs/tools/misc/steampipe/default.nix19
1 files changed, 11 insertions, 8 deletions
diff --git a/pkgs/tools/misc/steampipe/default.nix b/pkgs/tools/misc/steampipe/default.nix
index 6ff87a6803132..55076a9a9ae26 100644
--- a/pkgs/tools/misc/steampipe/default.nix
+++ b/pkgs/tools/misc/steampipe/default.nix
@@ -2,24 +2,28 @@
 
 buildGo118Module rec {
   pname = "steampipe";
-  version = "0.15.0";
+  version = "0.15.3";
 
   src = fetchFromGitHub {
     owner = "turbot";
     repo = "steampipe";
     rev = "v${version}";
-    sha256 = "sha256-ly64p8shbhixLbK9hpDNYhmBKoAt4iXB//pdFSIYZMc=";
+    sha256 = "sha256-7TIEdT+s6Am2hPiMPKH+YioNfsCmLVZg6BQiO94Xiu0=";
   };
 
-  vendorSha256 = "sha256-/VU8VNDqU7CMm/lIBqTChyUWP4svVCgsw0CBcp/u+U0=";
+  vendorSha256 = "sha256-x57IvMKSE2F5bGTC8ao+wLJmYlz8nMh4SoMhtGlwQyE=";
   proxyVendor = true;
 
+  patchPhase = ''
+    # Patch test that relies on looking up homedir in user struct to prefer ~
+    substituteInPlace pkg/steampipeconfig/shared_test.go \
+      --replace '"github.com/turbot/go-kit/helpers"' "" \
+      --replace 'filepaths.SteampipeDir, _ = helpers.Tildefy("~/.steampipe")' 'filepaths.SteampipeDir = "~/.steampipe"';
+  '';
+
   nativeBuildInputs = [ installShellFiles ];
 
-  ldflags = [
-    "-s"
-    "-w"
-  ];
+  ldflags = [ "-s" "-w" ];
 
   postInstall = ''
     INSTALL_DIR=$(mktemp -d)
@@ -30,7 +34,6 @@ buildGo118Module rec {
   '';
 
   meta = with lib; {
-    broken = stdenv.isDarwin;
     homepage = "https://steampipe.io/";
     description = "select * from cloud;";
     license = licenses.agpl3;