diff options
author | happysalada <raphael@megzari.com> | 2021-08-03 23:51:39 +0900 |
---|---|---|
committer | Raphael Megzari <raphael@megzari.com> | 2021-08-04 12:05:00 +0900 |
commit | b1b78ac65d9d91e3cb39a1996cc585721be1ec78 (patch) | |
tree | ae2c42124f2c04706f007611efa893a382fbfba4 /pkgs/development/beam-modules/build-mix.nix | |
parent | fc2518d7d2a62d1a786342cd71fdb9eb14067f3a (diff) | |
download | nixpkgs-b1b78ac65d9d91e3cb39a1996cc585721be1ec78.tar nixpkgs-b1b78ac65d9d91e3cb39a1996cc585721be1ec78.tar.gz nixpkgs-b1b78ac65d9d91e3cb39a1996cc585721be1ec78.tar.bz2 nixpkgs-b1b78ac65d9d91e3cb39a1996cc585721be1ec78.tar.lz nixpkgs-b1b78ac65d9d91e3cb39a1996cc585721be1ec78.tar.xz nixpkgs-b1b78ac65d9d91e3cb39a1996cc585721be1ec78.tar.zst nixpkgs-b1b78ac65d9d91e3cb39a1996cc585721be1ec78.zip |
mix: add build mix and mix-release configure-hook
Diffstat (limited to 'pkgs/development/beam-modules/build-mix.nix')
-rw-r--r-- | pkgs/development/beam-modules/build-mix.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/beam-modules/build-mix.nix b/pkgs/development/beam-modules/build-mix.nix index 728d249c97d..6b6ef7ce350 100644 --- a/pkgs/development/beam-modules/build-mix.nix +++ b/pkgs/development/beam-modules/build-mix.nix @@ -42,6 +42,14 @@ let nativeBuildInputs = nativeBuildInputs ++ [ elixir hex ]; propagatedBuildInputs = propagatedBuildInputs ++ beamDeps; + configurePhase = attrs.configurePhase or '' + runHook preConfigure + + ${./mix-configure-hook.sh} + + runHook postConfigure + ''; + buildPhase = attrs.buildPhase or '' runHook preBuild export HEX_HOME="$TEMPDIR/hex" @@ -83,3 +91,4 @@ let }); in fix pkg + |