Skip to content

Commit

Permalink
nix develop setup
Browse files Browse the repository at this point in the history
  • Loading branch information
gotcha committed Sep 15, 2023
1 parent e742147 commit a8191e7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
description = "A very basic flake";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-23.05";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = nixpkgs.legacyPackages.${system};

my-python-packages = python-packages: with python-packages; [
virtualenv
tox
];
python = pkgs.python311.withPackages my-python-packages;
in
{
devShells.default = pkgs.mkShell {
buildInputs = [ python pkgs.geckodriver pkgs.chromedriver];
};
}
);
}

0 comments on commit a8191e7

Please sign in to comment.