feat(nix/lazy-deps): add passthru.devShell

Allows to easily convert a lazy-deps into a nix-shell compatible
derivation.

Change-Id: I65a0609642f12e0d00658c69cc394a73dddccd16
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5855
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
zimbatm 2022-05-30 19:02:21 +02:00 committed by tazjin
parent 99030d10ce
commit 66a8ce5900

View file

@ -65,6 +65,12 @@ let
PATH="''${result}/bin:$PATH" PATH="''${result}/bin:$PATH"
exec "''${TARGET_TOOL}" "''${@}" exec "''${TARGET_TOOL}" "''${@}"
''; '';
# Access this to get a compatible nix-shell
passthru.devShell = pkgs.mkShellNoCC {
name = "${self.name}-shell";
packages = [ self ];
};
} }
'' ''
# Write the dispatch code # Write the dispatch code