wrpll-simulation/flake.nix

29 lines
639 B
Nix

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