{ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; }; outputs = {nixpkgs, ...}: { devShells.x86_64-linux = let pkgs = import nixpkgs { system = "x86_64-linux"; config.allowUnfree = true;}; in { default = pkgs.mkShell { shellHook = '' source $(poetry env info --path)/bin/activate ''; LD_LIBRARY_PATH = nixpkgs.lib.makeLibraryPath [ pkgs.stdenv.cc.cc ]; VIRTUAL_ENV_DISABLE_PROMPT = 1; packages = with pkgs; [ python3 poetry ]; }; }; }; }