Skip to content

Commit

Permalink
Add contrib-shell.nix to allow running contrib scripts in nix
Browse files Browse the repository at this point in the history
Just do `nix-shell contrib-shell.nix` then run any of the python
scripts in contrib/
  • Loading branch information
chrisguida committed Oct 4, 2024
1 parent d595541 commit 9b69e8b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions contrib-shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ pkgs ? import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz";
}) {} }:

let
poetry2nix = import (builtins.fetchGit {
url = "https://github.com/nix-community/poetry2nix";
}) { inherit pkgs; };
in

pkgs.mkShell {
buildInputs = [
pkgs.poetry
(poetry2nix.mkPoetryEnv {
projectDir = ./contrib;
})
];
}

0 comments on commit 9b69e8b

Please sign in to comment.