diff options
author | Karel Kočí <cynerd@email.cz> | 2023-01-08 11:25:01 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2023-01-08 11:25:01 +0100 |
commit | d5dc7479c489d17e6dcacf081c0f1b5242d99bd9 (patch) | |
tree | c12d18231cacb81ff5b69a2073894d228e3c81e7 /pkgs/dev | |
parent | c7a226a92d65cedd384fa29083efdbb07a6084b0 (diff) | |
download | nixos-personal-d5dc7479c489d17e6dcacf081c0f1b5242d99bd9.tar.gz nixos-personal-d5dc7479c489d17e6dcacf081c0f1b5242d99bd9.tar.bz2 nixos-personal-d5dc7479c489d17e6dcacf081c0f1b5242d99bd9.zip |
Format using Alejandra
Diffstat (limited to 'pkgs/dev')
-rw-r--r-- | pkgs/dev/default.nix | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/pkgs/dev/default.nix b/pkgs/dev/default.nix index d9b7d52..dfc0cd7 100644 --- a/pkgs/dev/default.nix +++ b/pkgs/dev/default.nix @@ -1,24 +1,25 @@ -{ lib, stdenvNoCC -, makeShellWrapper, bash, nix -, devShells +{ + lib, + stdenvNoCC, + makeShellWrapper, + bash, + nix, + devShells, }: - -with lib; - -let - +with lib; let shells = concatStringsSep ":" (mapAttrsToList ( n: v: "${n}=${v.drvPath}=${v}" - ) devShells); - -in stdenvNoCC.mkDerivation rec { - name = "personal-devshells"; - src = ./.; + ) + 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}" - ''; -} + nativeBuildInputs = [makeShellWrapper]; + installPhase = '' + makeShellWrapper ${./dev.sh} $out/bin/dev \ + --prefix PATH : ${lib.makeBinPath [bash nix]} \ + --set DEV_SHELLS "${shells}" + ''; + } |