chore(nix): in-develop

This commit is contained in:
Gregor Kleen 2021-05-10 19:54:09 +02:00
parent 2e5964514a
commit 07cc413686

View File

@ -182,8 +182,18 @@ let
$(getent passwd $USER | cut -d: -f 7)
'';
inDevelop = pkgs.writeScriptBin "in-develop" ''
#!${pkgs.zsh}/bin/zsh -e
if [[ -z "''${PORT_OFFSET}" ]]; then
echo "Not in develop"
else
echo "In develop"
fi
'';
in pkgs.mkShell {
name = "uni2work";
nativeBuildInputs = [develop] ++ (with pkgs; [ nodejs-14_x postgresql_12 openldap google-chrome exiftool memcached minio minio-client gup ]) ++ (with pkgs.haskellPackages; [ stack yesod-bin hlint cabal-install weeder profiteur ]);
nativeBuildInputs = [develop inDevelop] ++ (with pkgs; [ nodejs-14_x postgresql_12 openldap google-chrome exiftool memcached minio minio-client gup ]) ++ (with pkgs.haskellPackages; [ stack yesod-bin hlint cabal-install weeder profiteur ]);
}