Change around environment management so we can install ssh too

The new image does not come with it
This commit is contained in:
Jean-Paul Calderone 2022-01-27 14:31:56 -05:00
parent 83a172210c
commit 5edd96ce6b
2 changed files with 16 additions and 9 deletions

View File

@ -453,14 +453,22 @@ jobs:
NIXPKGS: "nixpkgs-21.05"
steps:
- "run":
name: "Install Basic Dependencies"
command: |
nix-env \
-f .circleci/env.nix \
--argstr pkgsVersion "$NIXPKGS" \
--install \
-A ssh python3
- "checkout"
- "run":
# The Nix package doesn't know how to do this part, unfortunately.
name: "Generate version"
command: |
nix-shell .circleci/python.nix \
--argstr pkgsVersion "$NIXPKGS" \
--run 'python setup.py update_version'
python setup.py update_version
- "run":
name: "Build and Test"

View File

@ -5,10 +5,9 @@ in
{ pkgsVersion
, pkgs ? import sources.${pkgsVersion} { }
}:
pkgs.mkShell {
buildInputs = [
(pkgs.python3.withPackages (ps: [
{
ssh = pkgs.openssh;
python = pkgs.python3.withPackages (ps: [
ps.setuptools
]))
];
]);
}