Skip to content

Commit

Permalink
Add lhapdf dependency, setup shell to ease its usage
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Feb 24, 2024
1 parent d4f74da commit 033faf0
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,25 @@
forEachSystem
(system: let
pkgs = nixpkgs.legacyPackages.${system};
pwd = builtins.getEnv "PWD";
path = builtins.getEnv "PATH";
prefix = "${pwd}/target/prefix";
lhapath = "${prefix}/share/LHAPDF";
in {
default = devenv.lib.mkShell {
inherit inputs pkgs;
modules = [
{
packages = with pkgs; [maturin];
packages = with pkgs; [maturin lhapdf];

env = {
PREFIX = prefix;
PATH = "${path}:${prefix}/bin";
LHAPDF_DATA_PATH = lhapath;
};
enterShell = ''
mkdir -p ${lhapath}
'';

languages.python = {
enable = true;
Expand Down

0 comments on commit 033faf0

Please sign in to comment.