nixpkgs/pkgs/applications/networking/cluster/tilt/default.nix

30 lines
948 B
Nix
Raw Normal View History

{ stdenv, buildGoPackage, fetchFromGitHub }:
2019-04-17 19:58:01 +02:00
buildGoPackage rec {
2019-07-10 17:40:12 +02:00
pname = "tilt";
2019-04-17 19:58:01 +02:00
/* 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. */
2020-01-30 11:48:31 +01:00
version = "0.11.3";
2019-04-17 19:58:01 +02:00
src = fetchFromGitHub {
owner = "windmilleng";
2019-07-10 17:40:12 +02:00
repo = pname;
rev = "v${version}";
2020-01-30 11:48:31 +01:00
sha256 = "035czgr0rn6gcv24vnlr35n9yvy0fwq4spdzsc76gfxckcbcmzz0";
2019-04-17 19:58:01 +02:00
};
goPackagePath = "github.com/windmilleng/tilt";
2019-07-10 17:40:12 +02:00
2019-04-17 19:58:01 +02:00
subPackages = [ "cmd/tilt" ];
2020-01-30 11:48:31 +01:00
buildFlagsArray = ("-ldflags=-X main.version=${version} -X main.date=2020-01-25");
2019-04-17 19:58:01 +02:00
meta = with stdenv.lib; {
description = "Local development tool to manage your developer instance when your team deploys to Kubernetes in production";
homepage = https://tilt.dev/;
license = licenses.asl20;
maintainers = with maintainers; [ anton-dessiatov ];
};
}