Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "tyson";
|
|
version = "0.1.1-unstable-2024-04-10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jetpack-io";
|
|
repo = "tyson";
|
|
rev = "d6b38819db9b260928b29f4d39bf4c72841c6a01";
|
|
hash = "sha256-NoQJBEedV3NDNQ4PVvvjjsO7N+rq40LWKp962P+naEY=";
|
|
};
|
|
|
|
vendorHash = "sha256-kJIfKgVaHuCYvvTZXyuZ/Hg8z1BlW4oW6+5s1inFizg=";
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
installShellCompletion --cmd tyson \
|
|
--bash <($out/bin/tyson completion bash) \
|
|
--fish <($out/bin/tyson completion fish) \
|
|
--zsh <($out/bin/tyson completion zsh)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "TypeScript as a configuration language";
|
|
mainProgram = "tyson";
|
|
homepage = "https://github.com/jetify-com/tyson";
|
|
changelog = "https://github.com/jetify-com/tyson/releases/tag/${src.rev}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
};
|
|
}
|