mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-01 04:10:04 +00:00
sq: 0.50.0 -> 0.54.1, adopt package (#547942)
This commit is contained in:
@@ -10,16 +10,16 @@
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "sq";
|
||||
version = "0.50.0";
|
||||
version = "0.54.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "neilotoole";
|
||||
repo = "sq";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-K9bqV9iJADP3yHSay6ZUv+ohakbD5sIEDJusTGSoqec=";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-k5BoJGEgLE2GZYOjK5DvI0uRo2++X76SpdTo1Nzyc90=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-w08vGn2AxdZVQU/E/RPBipqFOuujnAjpvSluw/a8zjY=";
|
||||
vendorHash = "sha256-XrgM+qe9BWRsbsBUydy6IAjbqHgKHL0TLy55KhS8lx0=";
|
||||
|
||||
proxyVendor = true;
|
||||
|
||||
@@ -30,15 +30,15 @@ buildGoModule (finalAttrs: {
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X=github.com/neilotoole/sq/cli/buildinfo.Version=v${finalAttrs.version}"
|
||||
"-X=github.com/neilotoole/sq/cli/buildinfo.Commit=${finalAttrs.src.rev}"
|
||||
"-X=github.com/neilotoole/sq/cli/buildinfo.Timestamp=1970-01-01T00:00:00Z"
|
||||
];
|
||||
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd sq \
|
||||
--bash <($out/bin/sq completion bash) \
|
||||
--fish <($out/bin/sq completion fish) \
|
||||
--zsh <($out/bin/sq completion zsh)
|
||||
for sh in bash fish zsh; do
|
||||
installShellCompletion --cmd sq --$sh <($out/bin/sq completion $sh)
|
||||
done
|
||||
'';
|
||||
|
||||
passthru.tests = {
|
||||
@@ -50,10 +50,10 @@ buildGoModule (finalAttrs: {
|
||||
|
||||
meta = {
|
||||
description = "Swiss army knife for data";
|
||||
mainProgram = "sq";
|
||||
homepage = "https://sq.io/";
|
||||
changelog = "https://github.com/neilotoole/sq/blob/v${finalAttrs.version}/CHANGELOG.md";
|
||||
license = lib.licenses.mit;
|
||||
platforms = lib.platforms.all;
|
||||
maintainers = [ ];
|
||||
maintainers = with lib.maintainers; [ iamanaws ];
|
||||
mainProgram = "sq";
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user