Ver código fonte

shell.nix: Tilt version bump

Change-Id: I6d13a1a9eaefeef70301f81912302f4a4d2f0ba1
Stan Drozd 4 anos atrás
pai
commit
50bbc77836
3 arquivos alterados com 38 adições e 3 exclusões
  1. 3 3
      nix/sources.json
  2. 31 0
      nix/tilt.nix
  3. 4 0
      shell.nix

+ 3 - 3
nix/sources.json

@@ -29,10 +29,10 @@
         "homepage": "",
         "owner": "NixOS",
         "repo": "nixpkgs",
-        "rev": "0d85f682c5fb9b6e1319b584d3fc247ed9c8082e",
-        "sha256": "01dackjly32miy0pfk4szg4mvcn3xg329im7zah6fjsw94b8h4s6",
+        "rev": "9d6766c0f0b3b03bd63ffc08b2e23e476145719d",
+        "sha256": "1hsr5zcmvbakpvzj1b5d2vz7195mbhvv58slplgwglxq8glnl9ff",
         "type": "tarball",
-        "url": "https://github.com/NixOS/nixpkgs/archive/0d85f682c5fb9b6e1319b584d3fc247ed9c8082e.tar.gz",
+        "url": "https://github.com/NixOS/nixpkgs/archive/9d6766c0f0b3b03bd63ffc08b2e23e476145719d.tar.gz",
         "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
     },
     "rust-overlay": {

+ 31 - 0
nix/tilt.nix

@@ -0,0 +1,31 @@
+{ lib, buildGoModule, fetchFromGitHub, makeWrapper}:
+
+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.22.5";
+
+  src = fetchFromGitHub {
+    owner = "tilt-dev";
+    repo = pname;
+    rev = "39122ff70"; # right after v0.22.5
+    sha256 = null;
+  };
+  vendorSha256 = null;
+
+  subPackages = [ "cmd/tilt" ];
+
+  buildInputs = [makeWrapper];
+
+  meta = with 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 ];
+  };
+  doCheck = false;
+  # Explicitly ask to use the upstream-hosted web assets
+  postFixup = "wrapProgram $out/bin/tilt --set TILT_WEB_MODE prod";
+}

+ 4 - 0
shell.nix

@@ -6,10 +6,14 @@
 let
   scripts-olay = import ./nix/scripts.nix;
   cargo2nix-olay = import "${cargo2nix}/overlay";
+  tilt-olay = final: prev: {
+    tilt = prev.callPackage ./nix/tilt.nix {};
+  };
   pkgs = import nixpkgs {
     overlays = [
       # cargo2nix-olay
       rust-olay
+      tilt-olay
       scripts-olay
     ];
   };