commit 4975093f41ec56875d554d329c2a1ee0e1892034 Author: morgan Date: Thu Nov 16 11:53:22 2023 +0800 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4cbabb5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.envrc +.direnv/** +.vscode/** diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..c631529 --- /dev/null +++ b/flake.nix @@ -0,0 +1,29 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + nixpkgs_stable.url = "github:NixOS/nixpkgs/nixpkgs-23.05-darwin"; + flake-utils.url = "github:numtide/flake-utils"; + }; + outputs = { nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { + inherit system; + }; + + pypkgs = ps: [ + ps.pip + ps.scipy + ps.numpy + ps.matplotlib + ]; + + in rec { + devShell = pkgs.mkShell { + name = "WRPLL-sim"; + buildInputs = with pkgs; [ + (python3.withPackages pypkgs) + ]; + }; + } + ); +} \ No newline at end of file