forked from rarias/bscpkgs
cn6: use install target from the Makefile
The PREFIX must be set both at build and install time.
This commit is contained in:
parent
74cd3d4fbc
commit
9c8282362a
@ -20,16 +20,5 @@ stdenv.mkDerivation rec {
|
|||||||
ref = "master";
|
ref = "master";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Fix the search path
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
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/
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user