Skip to content

Commit

Permalink
Updated script.py
Browse files Browse the repository at this point in the history
  • Loading branch information
charmoniumQ committed Mar 11, 2022
1 parent fa62b59 commit 4b06606
Show file tree
Hide file tree
Showing 4 changed files with 278 additions and 27 deletions.
9 changes: 3 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
name-test = "${name}-test";
default-python = pkgs.python39;
# Alternative Pythons for Tox
alternative-pythons = [
];
alternative-pythons = [];
binary-dependencies = [];
in {
packages.${name} = pkgs.poetry2nix.mkPoetryApplication {
projectDir = ./.;
Expand Down Expand Up @@ -42,10 +42,8 @@
};

packages.${name-shell} = pkgs.mkShell {
buildInputs = alternative-pythons ++ [
buildInputs = alternative-pythons ++ binary-dependencies ++ [
pkgs.poetry
pkgs.libseccomp.lib
pkgs.gcc-unwrapped.lib
];
shellHook = ''
env_hash=$(sha1sum poetry.lock | cut -f1 -d' ')
Expand All @@ -60,7 +58,6 @@
export PYTHONNOUSERSITE=true
export VIRTUAL_ENV=$(poetry env info -p)
export PATH=$VIRTUAL_ENV/bin:$PATH
export LD_LIBRARY_PATH=LD_LIBRARY_PATH=$(nix eval --raw nixpkgs#libseccomp.lib)/lib:$(nix eval --raw nixpkgs#gcc-unwrapped.lib)/lib:$LD_LIBRARY_PATH
'';
# TODO: write a check expression (`nix flake check`)
};
Expand Down
Loading

0 comments on commit 4b06606

Please sign in to comment.