bscpkgs/bsc/cn6/default.nix

36 lines
554 B
Nix
Raw Normal View History

2021-01-18 18:42:07 +01:00
{
stdenv
, babeltrace2
, pkg-config
, uthash
}:
stdenv.mkDerivation rec {
2021-02-15 17:44:20 +01:00
pname = "cn6";
2021-01-18 18:42:07 +01:00
version = "${src.shortRev}";
buildInputs = [
babeltrace2
pkg-config
uthash
];
src = builtins.fetchGit {
2021-02-15 17:44:20 +01:00
url = "ssh://git@bscpm03.bsc.es/rarias/cn6.git";
2021-01-18 18:42:07 +01:00
ref = "master";
};
# Fix the search path
configurePhase = ''
2021-02-15 17:44:20 +01:00
sed -i "s@^PRV_LIB_PATH=.*@PRV_LIB_PATH=$out/lib/nanos6@" Makefile
2021-01-18 18:42:07 +01:00
'';
installPhase = ''
mkdir -p $out/bin
2021-02-15 17:44:20 +01:00
cp cn6 $out/bin
2021-01-18 18:42:07 +01:00
mkdir -p $out/lib/nanos6
cp prv.so $out/lib/nanos6/
'';
}