This commit is contained in:
morgan 2023-11-16 11:53:22 +08:00
commit 4975093f41
2 changed files with 32 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.envrc
.direnv/**
.vscode/**

29
flake.nix Normal file
View File

@ -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)
];
};
}
);
}