From 66a8ce5900d5e281517dc07526ce441ffc02444d Mon Sep 17 00:00:00 2001 From: zimbatm Date: Mon, 30 May 2022 19:02:21 +0200 Subject: 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 --- nix/lazy-deps/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nix/lazy-deps') 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 -- cgit 1.4.1