From fab2c437aaed5d10c24c848c7ca2b7ab6da33548 Mon Sep 17 00:00:00 2001 From: Hythera <87016780+Hythera@users.noreply.github.com> Date: Thu, 12 Feb 2026 15:43:11 +0100 Subject: [PATCH] super: init at 0.1.0 --- pkgs/by-name/su/super/package.nix | 46 +++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pkgs/by-name/su/super/package.nix diff --git a/pkgs/by-name/su/super/package.nix b/pkgs/by-name/su/super/package.nix new file mode 100644 index 000000000000..24888acb0dc5 --- /dev/null +++ b/pkgs/by-name/su/super/package.nix @@ -0,0 +1,46 @@ +{ + buildGoModule, + fetchFromGitHub, + lib, + runCommand, + super, +}: +buildGoModule (finalAttrs: { + pname = "super"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "brimdata"; + repo = "super"; + tag = "v${finalAttrs.version}"; + hash = "sha256-wgduBXtLnvCTV/8JgCOeD8QutIqW5m9vCJZEbsxKxwY="; + }; + + vendorHash = "sha256-yGmQmxr2RzpOOwS7qpdBJysJpsgeWDNFBOws1FQQoM8="; + + ldflags = [ + "-s" + "-X" + "github.com/brimdata/super/cli.version=${finalAttrs.version}" + ]; + + subPackages = [ + "cmd/super" + ]; + + passthru.tests = { + hello-world = runCommand "${finalAttrs.pname}-test" { } '' + echo \"'hello, world'\" | ${super}/bin/super -color=false -f=line - > $out + [ "$(cat $out)" = 'hello, world' ] + ''; + }; + + meta = { + changelog = "https://github.com/brimdata/super/releases/tag/v${finalAttrs.version}"; + description = "Analytics database that puts JSON and relational tables on equal footing"; + homepage = "https://superdb.org"; + license = lib.licenses.bsd3; + mainProgram = "super"; + maintainers = with lib.maintainers; [ hythera ]; + }; +})