-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathtests.nix
More file actions
33 lines (28 loc) · 796 Bytes
/
Copy pathtests.nix
File metadata and controls
33 lines (28 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ ropfuscator-utils, stdenv, librop, cmake }:
let
ropfuscator_tests = stdenv.mkDerivation rec {
pname = "ropfuscator_tests";
nativeBuildInputs = [ cmake ];
buildInputs = [ librop ];
version = "0.1.0";
src = ./tests;
doCheck = true;
cmakeFlags = [
"-DUSE_LIBROP=On"
"-DUSE_LIBC=On"
# hardcoded /build, could break if build root is changed!
"-DROPFUSCATOR_CONFIGS_DIR=/build/utils/configs"
];
unpackPhase = ''
runHook preUnpack
mkdir utils
cp -r --no-preserve=mode,ownership $src/* .
cp -r --no-preserve=mode,ownership ${ropfuscator-utils}/* utils
# fake output
mkdir $out
# force, in case tests are automatically
doCheck=1
runHook postUnpack
'';
};
in ropfuscator_tests