···1+{ lib
2+, buildGoModule
3+, src, version
4+, tilt-assets
5+}:
6+7+buildGoModule rec {
8+ pname = "tilt";
9+ /* Do not use "dev" as a version. If you do, Tilt will consider itself
10+ running in development environment and try to serve assets from the
11+ source tree, which is not there once build completes. */
12+ inherit src version;
13+14+ vendorHash = null;
15+16+ subPackages = [ "cmd/tilt" ];
17+18+ ldflags = [ "-X main.version=${version}" ];
19+20+ preBuild = ''
21+ mkdir -p pkg/assets/build
22+ cp -r ${tilt-assets}/* pkg/assets/build/
23+ '';
24+25+ meta = {
26+ description = "Local development tool to manage your developer instance when your team deploys to Kubernetes in production";
27+ homepage = "https://tilt.dev/";
28+ license = lib.licenses.asl20;
29+ maintainers = with lib.maintainers; [ anton-dessiatov ];
30+ };
31+}
···1-{ lib
2-, buildGoModule
3-, fetchFromGitHub
4}:
5-6-buildGoModule rec {
7- pname = "tilt";
8- /* Do not use "dev" as a version. If you do, Tilt will consider itself
9- running in development environment and try to serve assets from the
10- source tree, which is not there once build completes. */
11- version = "0.33.6";
12-13- src = fetchFromGitHub {
14- owner = "tilt-dev";
15- repo = "tilt";
16- rev = "v${version}";
17- hash = "sha256-WtE8ExUKFRtdYeg0+My/DB+L/qT+J1EaKHKChNjC5oI=";
18- };
19-20- vendorHash = null;
2122- subPackages = [ "cmd/tilt" ];
0000002324- ldflags = [ "-X main.version=${version}" ];
02526- meta = {
27- description = "Local development tool to manage your developer instance when your team deploys to Kubernetes in production";
28- homepage = "https://tilt.dev/";
29- license = lib.licenses.asl20;
30- maintainers = with lib.maintainers; [ anton-dessiatov ];
31- };
32-}
···1+{ fetchFromGitHub
2+, callPackage
03}:
4+let args = rec {
5+ /* Do not use "dev" as a version. If you do, Tilt will consider itself
6+ running in development environment and try to serve assets from the
7+ source tree, which is not there once build completes. */
8+ version = "0.33.6";
00000000000910+ src = fetchFromGitHub {
11+ owner = "tilt-dev";
12+ repo = "tilt";
13+ rev = "v${version}";
14+ hash = "sha256-WtE8ExUKFRtdYeg0+My/DB+L/qT+J1EaKHKChNjC5oI=";
15+ };
16+ };
1718+ tilt-assets = callPackage ./assets.nix args;
19+in callPackage ./binary.nix (args // { inherit tilt-assets; })
200000000