Skip to content

Instantly share code, notes, and snippets.

@myme
Created April 10, 2019 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myme/d6923dfc176880249226e28977e20095 to your computer and use it in GitHub Desktop.
Save myme/d6923dfc176880249226e28977e20095 to your computer and use it in GitHub Desktop.
Python/JavaScript dev env
{ pkgs ? import <nixpkgs> {} }:
let
# yarn > 1.10.x
unstable = import (fetchTarball {
url = "https://releases.nixos.org/nixos/19.03/nixos-19.03.172138.5c52b25283a/nixexprs.tar.xz";
sha256 = "14289382e88abeb2a049e948c301818a034bf09d306ce127d765a87ba644d205";
}) {};
app = pkgs.buildFHSUserEnv {
name = "app";
targetPkgs = pkgs: (with pkgs; [
binutils
gcc
gnumake
libffi.dev
libjpeg.dev
libxslt.dev
nodejs
openssl.dev
python36Full
sshpass
unstable.yarn
zlib
zlib.dev
]) ++ (with pkgs.python36Packages; [
pip
virtualenv
]);
profile = ''
export SOURCE_DATE_EPOCH=$(date +%s)
'';
runScript = "bash";
};
in app.env
@myme
Copy link
Author

myme commented Apr 10, 2019

./DEV_INSTALL script installs Python and JavaScript dependencies in the chrootenvironment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment