cn6: use install target from the Makefile

The PREFIX must be set both at build and install time.
This commit is contained in:
Rodrigo Arias Mallo 2021-03-19 11:39:58 +01:00
parent 74cd3d4fbc
commit 9c8282362a

View File

@ -20,16 +20,5 @@ stdenv.mkDerivation rec {
ref = "master";
};
# Fix the search path
configurePhase = ''
sed -i "s@^PRV_LIB_PATH=.*@PRV_LIB_PATH=$out/lib/nanos6@" Makefile
'';
installPhase = ''
mkdir -p $out/bin
cp cn6 dur $out/bin
mkdir -p $out/lib/nanos6
cp prv.so $out/lib/nanos6/
'';
makeFlags = [ "PREFIX=$(out)" ];
}