diff options
author | Anton Desyatov <anton.dessiatov@gmail.com> | 2023-10-12 19:37:48 +0400 |
---|---|---|
committer | Anton Desyatov <anton.dessiatov@gmail.com> | 2023-10-12 19:52:36 +0400 |
commit | e2e3f9d95165677c549b51eb74420de450647c16 (patch) | |
tree | 78893e533383db6a75e0d7755e405cf03ec3ddd1 /pkgs/applications/networking/cluster/tilt/default.nix | |
parent | 4ac7478538e7b9a5a565d5cc533ba1d94457c903 (diff) | |
download | nixpkgs-e2e3f9d95165677c549b51eb74420de450647c16.tar nixpkgs-e2e3f9d95165677c549b51eb74420de450647c16.tar.gz nixpkgs-e2e3f9d95165677c549b51eb74420de450647c16.tar.bz2 nixpkgs-e2e3f9d95165677c549b51eb74420de450647c16.tar.lz nixpkgs-e2e3f9d95165677c549b51eb74420de450647c16.tar.xz nixpkgs-e2e3f9d95165677c549b51eb74420de450647c16.tar.zst nixpkgs-e2e3f9d95165677c549b51eb74420de450647c16.zip |
tilt: fix missing assets
Diffstat (limited to 'pkgs/applications/networking/cluster/tilt/default.nix')
-rw-r--r-- | pkgs/applications/networking/cluster/tilt/default.nix | 44 |
1 files changed, 16 insertions, 28 deletions
diff --git a/pkgs/applications/networking/cluster/tilt/default.nix b/pkgs/applications/networking/cluster/tilt/default.nix index dd95c6d939e..646f0c9a0a3 100644 --- a/pkgs/applications/networking/cluster/tilt/default.nix +++ b/pkgs/applications/networking/cluster/tilt/default.nix @@ -1,32 +1,20 @@ -{ lib -, buildGoModule -, fetchFromGitHub +{ fetchFromGitHub +, callPackage }: +let args = rec { + /* 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.33.6"; -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. */ - version = "0.33.6"; + src = fetchFromGitHub { + owner = "tilt-dev"; + repo = "tilt"; + rev = "v${version}"; + hash = "sha256-WtE8ExUKFRtdYeg0+My/DB+L/qT+J1EaKHKChNjC5oI="; + }; + }; - src = fetchFromGitHub { - owner = "tilt-dev"; - repo = "tilt"; - rev = "v${version}"; - hash = "sha256-WtE8ExUKFRtdYeg0+My/DB+L/qT+J1EaKHKChNjC5oI="; - }; + tilt-assets = callPackage ./assets.nix args; +in callPackage ./binary.nix (args // { inherit tilt-assets; }) - vendorHash = null; - - subPackages = [ "cmd/tilt" ]; - - ldflags = [ "-X main.version=${version}" ]; - - meta = { - description = "Local development tool to manage your developer instance when your team deploys to Kubernetes in production"; - homepage = "https://tilt.dev/"; - license = lib.licenses.asl20; - maintainers = with lib.maintainers; [ anton-dessiatov ]; - }; -} |