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
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
src,
|
|
version,
|
|
tilt-assets,
|
|
stdenv,
|
|
installShellFiles,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "tilt";
|
|
/*
|
|
Do not use "dev" as a version. If you do, Tilt will consider itself
|
|
running in development environment and try to serve assets from the
|
|
source tree, which is not there once build completes.
|
|
*/
|
|
inherit src version;
|
|
|
|
vendorHash = null;
|
|
|
|
subPackages = [ "cmd/tilt" ];
|
|
|
|
ldflags = [ "-X main.version=${version}" ];
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
installShellCompletion --cmd tilt \
|
|
--bash <($out/bin/tilt completion bash) \
|
|
--fish <($out/bin/tilt completion fish) \
|
|
--zsh <($out/bin/tilt completion zsh)
|
|
'';
|
|
|
|
preBuild = ''
|
|
mkdir -p pkg/assets/build
|
|
cp -r ${tilt-assets}/* pkg/assets/build/
|
|
'';
|
|
|
|
meta = {
|
|
description = "Local development tool to manage your developer instance when your team deploys to Kubernetes in production";
|
|
mainProgram = "tilt";
|
|
homepage = "https://tilt.dev/";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ anton-dessiatov ];
|
|
};
|
|
}
|