sq: init at 0.15.4
This commit is contained in:
parent
0a4ef1dae9
commit
9f19ba380e
42
pkgs/development/tools/sq/default.nix
Normal file
42
pkgs/development/tools/sq/default.nix
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testVersion, sq }:
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "sq";
|
||||||
|
version = "0.15.4";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "neilotoole";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-4CINLOHUVXQ+4e5I1fMqog6LubMm8RnbFmeuBOwALaw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
vendorSha256 = "sha256-lNpWXKtnzwySzinNPxAKuaLqweWuS6zz8s2W4xXWlqM=";
|
||||||
|
|
||||||
|
# Some tests violates sandbox constraints.
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-s" "-w" "-X github.com/neilotoole/sq/cli/buildinfo.Version=${version}"
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installShellCompletion --cmd sq \
|
||||||
|
--bash <($out/bin/sq completion bash) \
|
||||||
|
--fish <($out/bin/sq completion fish) \
|
||||||
|
--zsh <($out/bin/sq completion zsh)
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
version = testVersion { package = sq; };
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Swiss army knife for data";
|
||||||
|
homepage = "https://sq.io/";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.all;
|
||||||
|
maintainers = with maintainers; [ raitobezarius ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -32836,6 +32836,8 @@ with pkgs;
|
||||||
|
|
||||||
spyre = callPackage ../tools/security/spyre { };
|
spyre = callPackage ../tools/security/spyre { };
|
||||||
|
|
||||||
|
sq = callPackage ../development/tools/sq { };
|
||||||
|
|
||||||
openspace = callPackage ../applications/science/astronomy/openspace { };
|
openspace = callPackage ../applications/science/astronomy/openspace { };
|
||||||
|
|
||||||
stellarium = libsForQt5.callPackage ../applications/science/astronomy/stellarium { };
|
stellarium = libsForQt5.callPackage ../applications/science/astronomy/stellarium { };
|
||||||
|
|
Loading…
Reference in a new issue