move default.nix to shell.nix
This commit is contained in:
parent
b2e0bda97e
commit
e26c68f285
2 changed files with 7 additions and 11 deletions
|
|
@ -1,11 +1,9 @@
|
||||||
with import <nixpkgs> {};
|
{ pkgs ? import <nixpkgs> {} }:
|
||||||
|
pkgs.mkShell {
|
||||||
stdenv.mkDerivation {
|
name = "node-environment";
|
||||||
name = "myNodeEnv";
|
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
nodejs
|
nodejs
|
||||||
];
|
];
|
||||||
src = null;
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
mkdir -p .npm
|
mkdir -p .npm
|
||||||
if [ -s global_packages.txt ]; then
|
if [ -s global_packages.txt ]; then
|
||||||
|
|
@ -1,12 +1,10 @@
|
||||||
with import <nixpkgs> {};
|
{ pkgs ? import <nixpkgs> {} }:
|
||||||
|
pkgs.mkShell {
|
||||||
stdenv.mkDerivation {
|
name = "python-environment";
|
||||||
name = "myPythonEnv";
|
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
python3Full
|
python3
|
||||||
python3Packages.virtualenv
|
python3Packages.virtualenv
|
||||||
];
|
];
|
||||||
src = null;
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
if [ ! -d .venv ]; then
|
if [ ! -d .venv ]; then
|
||||||
python -m venv .venv
|
python -m venv .venv
|
||||||
Loading…
Add table
Add a link
Reference in a new issue