diff options
Diffstat (limited to '')
| -rw-r--r-- | flake.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..c12d3f7 --- /dev/null +++ b/flake.nix @@ -0,0 +1,50 @@ +{ + description = "python packagessssssss"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { + nixpkgs, + flake-utils, + ... + }: let + supportedSystems = let + inherit (flake-utils.lib) system; + in [ + system.aarch64-linux + system.x86_64-linux + ]; + in + flake-utils.lib.eachSystem supportedSystems (system: let + pkgs = import nixpkgs {inherit system;}; + in rec { + packages = import ./pkgs { + inherit pkgs; + }; + + devShell = let + in + pkgs.mkShell + { + packages = with pkgs.python3Packages; + with packages; [ + numpy + scipy + pandas + matplotlib + qiskit + qiskit-ibm-runtime + qiskit-ibm-provider + seaborn + pylatexenc + qiskit-aer + python + ]; + }; + + formatter = pkgs.alejandra; + }); +} |