-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdefault.nix
More file actions
25 lines (24 loc) · 862 Bytes
/
default.nix
File metadata and controls
25 lines (24 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
let
pkgs = import <nixpkgs> {};
pythonBuildInputs = [ pkgs.python27Full
pkgs.python27Packages.virtualenv ];
haskellBuildInputs = [ pkgs.haskellPackages.ghc
pkgs.haskellPackages.cabal-install
pkgs.haskellPackages.stack ];
in {
tsodingToolsEnv = pkgs.stdenv.mkDerivation {
name = "tsoding-tools";
buildInputs = builtins.concatLists [ [ pkgs.stdenv ]
pythonBuildInputs
haskellBuildInputs ];
shellHook = ''
if [ ! -d venv ]; then
virtualenv --python=python2.7 venv
./venv/bin/pip install -r requirements.txt
fi
source ./venv/bin/activate
'';
PYTHONPATH = "./commons/:./profiles/:./ffmpeg-edit/:./youtube/";
SOURCE_DATE_EPOCH=315532800;
};
}