diff options
author | zimbatm <zimbatm@zimbatm.com> | 2022-05-30T17·02+0200 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-12-26T10·31+0000 |
commit | 66a8ce5900d5e281517dc07526ce441ffc02444d (patch) | |
tree | 3f67de9852474a7ac7d7b08ffebbecb0ff87b2e1 /nix | |
parent | 99030d10ce114124e7303231e9bcb382f10bd0e7 (diff) |
feat(nix/lazy-deps): add passthru.devShell r/5488
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>
Diffstat (limited to 'nix')
-rw-r--r-- | nix/lazy-deps/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nix/lazy-deps/default.nix b/nix/lazy-deps/default.nix index bfdf5490ce22..1b88f6622571 100644 --- a/nix/lazy-deps/default.nix +++ b/nix/lazy-deps/default.nix @@ -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 |