hopsflow/flake.nix

31 lines
1 KiB
Nix
Raw Normal View History

2021-12-07 11:27:03 +01:00
{
2021-12-07 13:28:32 +01:00
description = "Calculating open system bath energy changes with HOPS and analytically.";
2021-12-07 11:27:03 +01:00
2021-12-07 11:39:32 +01:00
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
2021-12-09 14:59:46 +01:00
utils.url = "github:vale981/hiro-flake-utils";
2022-11-24 21:10:59 +01:00
# poetry2nix.url = "github:nix-community/poetry2nix";
# utils.inputs.poetry.follows = "poetry2nix";
2022-11-24 21:04:27 +01:00
utils.inputs.nixpkgs.follows = "nixpkgs";
2021-12-07 11:39:32 +01:00
};
2021-12-07 11:27:03 +01:00
2021-12-09 14:59:46 +01:00
outputs = { self, utils, nixpkgs, ... }:
(utils.lib.poetry2nixWrapper nixpkgs {
name = "hopsflow";
shellPackages = pkgs: with pkgs; [ black pyright ];
2022-02-07 14:43:25 +01:00
python = pkgs: pkgs.python39;
2021-12-09 14:59:46 +01:00
poetryArgs = {
projectDir = ./.;
};
2022-04-06 18:26:24 +02:00
2022-08-03 15:32:31 +02:00
shellOverride = (pkgs: oldAttrs: {
2022-04-06 18:26:24 +02:00
shellHook = ''
# export PYTHONPATH=/home/hiro/src/two_qubit_model/:$PYTHONPATH
export PYTHONPATH=/home/hiro/src/hops/:$PYTHONPATH
# export PYTHONPATH=/home/hiro/src/hopsflow/:$PYTHONPATH
# export PYTHONPATH=/home/hiro/src/stocproc/:$PYTHONPATH
'';
});
2021-12-09 14:59:46 +01:00
});
2021-12-07 11:27:03 +01:00
}