ctfast: Add experimental ctf conversor

This commit is contained in:
Rodrigo Arias 2021-01-18 18:42:07 +01:00
parent 3d0e93b4d3
commit 1e84dc196a
2 changed files with 37 additions and 0 deletions

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

@ -0,0 +1,35 @@
{
stdenv
, babeltrace2
, pkg-config
, uthash
}:
stdenv.mkDerivation rec {
pname = "ctfast";
version = "${src.shortRev}";
buildInputs = [
babeltrace2
pkg-config
uthash
];
src = builtins.fetchGit {
url = "ssh://git@bscpm03.bsc.es/rarias/ctfast.git";
ref = "master";
};
# Fix the search path
configurePhase = ''
sed -i "s@^CTFPLUGINS=.*@CTFPLUGINS=$out/lib/nanos6@" ctfast2prv
'';
installPhase = ''
mkdir -p $out/bin
cp ctfast2prv $out/bin
mkdir -p $out/lib/nanos6
cp prv.so $out/lib/nanos6/
'';
}

View File

@ -151,6 +151,8 @@ let
systemtap = self.linuxPackages_4_9.systemtap; systemtap = self.linuxPackages_4_9.systemtap;
}; };
ctfast = callPackage ./bsc/ctfast/default.nix { };
# ================================================================= # =================================================================
# MN4 specific # MN4 specific
# ================================================================= # =================================================================