forked from matthuszagh/pyems
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
33 lines (31 loc) · 809 Bytes
/
Copy pathflake.nix
File metadata and controls
33 lines (31 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
description = "High-level python interface to OpenEMS with automatic mesh generation";
inputs.nixpkgs.url = github:nixos/nixpkgs/master;
inputs.nixos.url = github:matthuszagh/nixos/master;
outputs =
{ self
, nixpkgs
, nixos
}: {
devShell.x86_64-linux =
let
system = "x86_64-linux";
npkgs = import nixpkgs { inherit system; };
pkgs = nixos.packages."${system}";
pythonEnv = pkgs.python3.withPackages (p: with p; [
(pyems.overrideAttrs (old: { src = ./.; }))
pytest
numpy
scipy
]);
in
npkgs.mkShell {
buildInputs = [
pythonEnv
] ++ (with pkgs; [
paraview
appcsxcad
]);
};
};
}