stfl: don't overwrite buildPhase, potentially make makeFlags working

This commit is contained in:
Sandro Jäckel 2021-11-17 01:24:31 +01:00 committed by Sandro Jäckel
parent 58948dcc4e
commit 421976c3e3
No known key found for this signature in database
GPG key ID: B1763F8651144063

View file

@ -11,13 +11,11 @@ stdenv.mkDerivation rec {
buildInputs = [ ncurses libiconv ];
buildPhase = ''
preBuild = ''
sed -i s/gcc/cc/g Makefile
sed -i s%ncursesw/ncurses.h%ncurses.h% stfl_internals.h
'' + (lib.optionalString stdenv.isDarwin ''
'' + lib.optionalString stdenv.isDarwin ''
sed -i s/-soname/-install_name/ Makefile
'') + ''
make
'';
installPhase = ''