mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 08:01:31 +00:00
super: init at 0.1.0
This commit is contained in:
46
pkgs/by-name/su/super/package.nix
Normal file
46
pkgs/by-name/su/super/package.nix
Normal file
@@ -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 ];
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user