move default.nix to shell.nix

This commit is contained in:
Denis Lehmann 2021-03-11 09:37:54 +01:00
parent b2e0bda97e
commit e26c68f285
2 changed files with 7 additions and 11 deletions

View file

@ -1,11 +1,9 @@
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "myNodeEnv";
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
name = "node-environment";
buildInputs = with pkgs; [
nodejs
];
src = null;
shellHook = ''
mkdir -p .npm
if [ -s global_packages.txt ]; then

View file

@ -1,12 +1,10 @@
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "myPythonEnv";
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
name = "python-environment";
buildInputs = with pkgs; [
python3Full
python3
python3Packages.virtualenv
];
src = null;
shellHook = ''
if [ ! -d .venv ]; then
python -m venv .venv