Commit 24767277 authored by Rhys-T's avatar Rhys-T
Browse files

icbm3d: remove install commands from makefile

The Makefile tries to install icbm3d immediately after building it, and
ends up trying to copy it to /icbm3d. Normally this just gets an error
and moves on, but it's probably better to not try it in the first place.
parent 2d4449f7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -26,6 +26,11 @@ stdenv.mkDerivation (finalAttrs: {
    substituteInPlace randnum.c --replace-fail 'stdio.h' 'stdlib.h'
    sed -i '1i\
    #include <string.h>' text.c

    # The Makefile tries to install icbm3d immediately after building it, and
    # ends up trying to copy it to /icbm3d. Normally this just gets an error
    # and moves on, but it's probably better to not try it in the first place.
    sed -i '/INSTALLROOT/d' makefile
  '';

  installPhase = ''