diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index e75ec5686580..e32ec7f805d8 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -4421,6 +4421,16 @@ githubId = 54728477; name = "Happy River"; }; + hardselius = { + email = "martin@hardselius.dev"; + github = "hardselius"; + githubId = 1422583; + name = "Martin Hardselius"; + keys = [{ + longkeyid = "rsa4096/0x03A6E6F786936619"; + fingerprint = "3F35 E4CA CBF4 2DE1 2E90 53E5 03A6 E6F7 8693 6619"; + }]; + }; haslersn = { email = "haslersn@fius.informatik.uni-stuttgart.de"; github = "haslersn"; diff --git a/pkgs/tools/misc/steampipe/default.nix b/pkgs/tools/misc/steampipe/default.nix new file mode 100644 index 000000000000..691351c89b08 --- /dev/null +++ b/pkgs/tools/misc/steampipe/default.nix @@ -0,0 +1,40 @@ +{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: + +buildGoModule rec { + pname = "steampipe"; + version = "0.8.5"; + + src = fetchFromGitHub { + owner = "turbot"; + repo = "steampipe"; + rev = "v${version}"; + sha256 = "sha256-3vetSUJwCeaBzKj+635siskfcDPs/kkgCH954cg/REA="; + }; + + vendorSha256 = "sha256-TGDFNHWWbEy1cD7b2yPqAN7rRrLvL0ZX/R3BWGRWjjw="; + + # tests are failing for no obvious reasons + doCheck = false; + + nativeBuildInputs = [ installShellFiles ]; + + ldflags = [ + "-s" + "-w" + ]; + + postInstall = '' + INSTALL_DIR=$(mktemp -d) + installShellCompletion --cmd steampipe \ + --bash <($out/bin/steampipe --install-dir $INSTALL_DIR completion bash) \ + --fish <($out/bin/steampipe --install-dir $INSTALL_DIR completion fish) \ + --zsh <($out/bin/steampipe --install-dir $INSTALL_DIR completion zsh) + ''; + + meta = with lib; { + homepage = "https://steampipe.io/"; + description = "select * from cloud;"; + license = licenses.agpl3; + maintainers = with maintainers; [ hardselius ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4783e8e403a1..9752efd364ae 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3454,6 +3454,8 @@ with pkgs; statserial = callPackage ../tools/misc/statserial { }; + steampipe = callPackage ../tools/misc/steampipe { }; + step-ca = callPackage ../tools/security/step-ca { inherit (darwin.apple_sdk.frameworks) PCSC; };