forked from gmh5225/titan-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
53 lines (45 loc) · 974 Bytes
/
shell.nix
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{ pkgs ? import <unstable> {} }:
let
stdenv = pkgs.llvmPackages_15.stdenv;
triton = stdenv.mkDerivation rec {
version = "dev-v1.0";
name = "triton-${version}";
src = pkgs.fetchFromGitHub {
owner = "JonathanSalwan";
repo = "Triton";
rev = "6095a21c332caa3435e5ce9a88f544f2b9c3be5b";
sha256 = "sha256-beexdXd48i3OHPOPOOJ59go1+UH1fqL7JRjwl14bKRQ=";
};
cmakeFlags = [
"-DBOOST_INTERFACE=OFF"
"-DBUILD_EXAMPLES=OFF"
"-DENABLE_TEST=OFF"
"-DPYTHON_BINDINGS=OFF"
"-DLLVM_INTERFACE=ON"
];
nativeBuildInputs = [
pkgs.cmake
];
buildInputs = [
pkgs.capstone
pkgs.llvm_15
pkgs.z3
];
};
in rec {
titan = stdenv.mkDerivation {
name = "titan";
nativeBuildInputs = [
pkgs.cmake
pkgs.ninja
pkgs.clang_15
pkgs.graphviz
];
buildInputs = [
pkgs.range-v3
pkgs.fmt
pkgs.llvm_15
triton
];
};
}