Skip to content

Commit 36addb4

Browse files
author
Damon Chen
committed
Add expansion.nix
1 parent 378e739 commit 36addb4

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

integration_tests/shell.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ pkgs.mkShell {
1919
(import ../nix/testenv.nix { inherit pkgs; })
2020
(import ../nix/chainmain.nix { inherit pkgs; })
2121
(import ../nix/hermes.nix { inherit pkgs; })
22+
(import ../nix/expansion.nix { inherit pkgs; })
2223
];
2324
}

nix/expansion.nix

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{ pkgs }:
2+
let
3+
project_root = builtins.toString ../integration_tests;
4+
dotenv = builtins.path { name = "dotenv"; path = ../scripts/.env; };
5+
expansion = builtins.toString ../integration_tests/expansion.py;
6+
in with pkgs;
7+
stdenv.mkDerivation {
8+
name = "expansion";
9+
buildInputs = [
10+
(import ../nix/testenv.nix { inherit pkgs; })
11+
];
12+
buildCommand = ''
13+
mkdir -p $out
14+
cp ${dotenv} $out
15+
cd ${project_root}
16+
python ${expansion}
17+
'';
18+
}

0 commit comments

Comments
 (0)