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

31 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, buildGoPackage, fetchFromGitHub }:
2019-04-17 17:58:01 +00:00
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. */
2019-06-03 07:23:19 +00:00
version = "0.8.8";
rev = "344dc1dc61ffe2c29606b105cea0df79fb5897f5";
2019-04-17 17:58:01 +00:00
src = fetchFromGitHub {
owner = "windmilleng";
repo = "tilt";
rev = "${rev}";
2019-06-03 07:23:19 +00:00
sha256 = "13yda6m2d92mmc9w4k8ngdxmpqcqf86bkrvcpmpaby848ls1yx8g";
2019-04-17 17:58:01 +00:00
};
goPackagePath = "github.com/windmilleng/tilt";
subPackages = [ "cmd/tilt" ];
2019-06-03 07:23:19 +00:00
buildFlagsArray = ("-ldflags=-X main.version=${version} -X main.date=2019-06-03");
2019-04-17 17:58:01 +00: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 ];
};
}