summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/tilt/default.nix
blob: c4699a87ef6316f1f9c266be3c6f4c9347e21858 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  pname   = "tilt";
  name    = "${pname}-${version}";
  /* 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.  */
  version = "0.7.13";
  rev = "67cd823b2a07c7bb2bcb919c0963e8f23e22d57e";

  src = fetchFromGitHub {
    owner  = "windmilleng";
    repo   = "tilt";
    rev    = "${rev}";
    sha256 = "0cfmdd6wsczcmy6fkd418rvancx4qy1c3pzq9jbfsy4innhh51j7";
  };

  goPackagePath = "github.com/windmilleng/tilt";
  subPackages = [ "cmd/tilt" ];

  buildFlagsArray = ("-ldflags=-X main.version=${version} -X main.date=2019-04-18");

  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 ];
  };
}