Skip to content

Commit

Permalink
enable fewer things by default
Browse files Browse the repository at this point in the history
  • Loading branch information
olynch committed Dec 1, 2023
1 parent 77126a0 commit 273fc93
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions fhs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@
, enableJulia ? true
, juliaVersion ? "1.9.3"
, enableConda ? false
, enablePython ? true
, enablePython ? false
, enableQuarto ? true
, condaInstallationPath ? "~/.conda"
, condaJlEnv ? "conda_jl"
, pythonVersion ? "3.8"
, enableGraphical ? false
, enableNVIDIA ? false
, enableNode ? true
, enableNode ? false
, commandName ? "scientific-fhs"
, commandScript ? "bash"
, texliveScheme ? pkgs.texlive.combined.scheme-full
, extraOutputsToInstall ? ["man" "dev"]
}:

with lib;
Expand Down Expand Up @@ -171,8 +172,6 @@ let
+ optionalString (enableConda && enableJulia) conda_julia_envvars
+ optionalString enableNVIDIA nvidia_envvars;

extraOutputsToInstall = [ "man" "dev" ];

multiPkgs = pkgs: with pkgs; [ zlib ];

condaInitScript = ''
Expand All @@ -181,10 +180,9 @@ let
'';
in
pkgs.buildFHSUserEnv {
inherit multiPkgs extraOutputsToInstall;
targetPkgs = targetPkgs;
name = commandName; # Name used to start this UserEnv
multiPkgs = multiPkgs;
runScript = commandScript;
extraOutputsToInstall = extraOutputsToInstall;
profile = envvars;
}

0 comments on commit 273fc93

Please sign in to comment.