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:
parent
99030d10ce
commit
66a8ce5900
1 changed files with 6 additions and 0 deletions
|
@ -65,6 +65,12 @@ let
|
|||
PATH="''${result}/bin:$PATH"
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue