Skip to content

Commit

Permalink
Add args extraBuildInputs
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed Mar 5, 2021
1 parent 6f85916 commit 18b0510
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions templates/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@

# Arguments
makeWrapperArgs ? "",
precompile ? true
precompile ? true,
extraBuildInputs ? []
}:

let
Expand Down Expand Up @@ -113,7 +114,7 @@ let
'';

depot = runCommand "julia-depot" {
buildInputs = [git curl julia];
buildInputs = [git curl julia] ++ extraBuildInputs;
inherit registry precompile;
} ''
export HOME=$(pwd)
Expand Down
5 changes: 4 additions & 1 deletion templates/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
with import <nixpkgs> {};
{ pkgs ? import <nixpkgs> {} }:

with pkgs;

Expand Down Expand Up @@ -36,4 +36,7 @@ callPackage ./common.nix {
# By default, it will just put the new depot at the end of JULIA_DEPOT_PATH.
# You can add additional flags here.
makeWrapperArgs = "";

# Extra Pkgs to precompile environment
extraBuildInputs = [];
}

0 comments on commit 18b0510

Please sign in to comment.