depot/third_party/nixpkgs/pkgs/by-name/ti/tilt/package.nix

24 lines
599 B
Nix

{
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.21";
src = fetchFromGitHub {
owner = "tilt-dev";
repo = "tilt";
rev = "v${version}";
hash = "sha256-3LFsTaz47QAIDGId/Tl3G7xP5b9gc25X+ZeMaVhXf8w=";
};
};
tilt-assets = callPackage ./assets.nix args;
in
callPackage ./binary.nix (args // { inherit tilt-assets; })