bscpkgs/bsc/ctfast/default.nix

36 lines
565 B
Nix
Raw Normal View History

2021-01-18 18:42:07 +01:00
{
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/
'';
}