cn6: update name and add to the shell

This commit is contained in:
2021-02-15 17:44:20 +01:00
parent 0ee2747215
commit 243d022620
3 changed files with 6 additions and 6 deletions

35
bsc/cn6/default.nix Normal file
View File

@@ -0,0 +1,35 @@
{
stdenv
, babeltrace2
, pkg-config
, uthash
}:
stdenv.mkDerivation rec {
pname = "cn6";
version = "${src.shortRev}";
buildInputs = [
babeltrace2
pkg-config
uthash
];
src = builtins.fetchGit {
url = "ssh://git@bscpm03.bsc.es/rarias/cn6.git";
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 $out/bin
mkdir -p $out/lib/nanos6
cp prv.so $out/lib/nanos6/
'';
}