blob: d9b7d521323d47a7c126fa31f969c87630c91d71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{ lib, stdenvNoCC
, makeShellWrapper, bash, nix
, devShells
}:
with lib;
let
shells = concatStringsSep ":" (mapAttrsToList (
n: v: "${n}=${v.drvPath}=${v}"
) devShells);
in stdenvNoCC.mkDerivation rec {
name = "personal-devshells";
src = ./.;
nativeBuildInputs = [ makeShellWrapper ];
installPhase = ''
makeShellWrapper ${./dev.sh} $out/bin/dev \
--prefix PATH : ${lib.makeBinPath [ bash nix ]} \
--set DEV_SHELLS "${shells}"
'';
}
|