From cbe0413f0c00be8b8b016b8d3e8259a0bf70e5d5 Mon Sep 17 00:00:00 2001 From: Marcos Benevides Date: Sun, 12 Apr 2026 20:28:14 -0400 Subject: [PATCH] lfe: fix install phase, make sure we get the binaries in the right place --- pkgs/development/interpreters/lfe/default.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pkgs/development/interpreters/lfe/default.nix b/pkgs/development/interpreters/lfe/default.nix index 33ad3d90bae0..1ec1f7a31f73 100644 --- a/pkgs/development/interpreters/lfe/default.nix +++ b/pkgs/development/interpreters/lfe/default.nix @@ -68,18 +68,23 @@ else beamDeps = [ proper ]; - makeFlags = [ - "-e" - "MANDB=''" - "PREFIX=$$out" - ]; - # override buildRebar3's install to let the builder use make install - installPhase = ""; + installPhase = '' + runHook preInstall + make -e MANDB= PREFIX=$out install + runHook postInstall + ''; doCheck = true; checkTarget = "travis"; + doInstallCheck = true; + installCheckPhase = '' + runHook preInstallCheck + test -e $out/bin/lfe + runHook postInstallCheck + ''; + postFixup = '' # LFE binaries are shell scripts which run erl and lfe. # Add some stuff to PATH so the scripts can run without problems.