Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trying to add dyninst separately #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ rec {
inherit conduit;
inherit maintainers;
};
# dyninst = pkgs.callPackage ./pkgs/binary-analysis/dyninst {
# inherit maintainers;
# };
dyninst = pkgs.callPackage ./pkgs/binary-analysis/dyninst {
inherit maintainers;
};
flux-core = pkgs.callPackage ./pkgs/hpc/flux-core {
inherit maintainers;
};
Expand Down
43 changes: 43 additions & 0 deletions pkgs/binary-analysis/dyninst/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{ lib
, fetchurl
, maintainers
, llvmPackages_14
, cmake
, boost
, libiberty
, elfutils
, libdwarf
, tbb }:

llvmPackages_14.stdenv.mkDerivation rec {
pname = "dyninst";
version = "12.2.1";

src = fetchurl {
url = "https://github.com/dyninst/dyninst/archive/refs/tags/v${version}.tar.gz";
sha256 = "sha256-wwSvPGGR6SrNJzUP2bewKJl2eg44q7OgijeKvgHR7wE=";
};

nativeBuildInputs = [ cmake ];
buildInputs = [ llvmPackages_14.openmp boost libiberty elfutils libdwarf tbb];
cmakeFlags = [
"-DBoost_ROOT_DIR=${lib.getDev boost}"
"-DElfUtils_ROOT_DIR=${lib.getDev elfutils}"
"-DLibIberty_ROOT_DIR=${lib.getDev libiberty}"
"-DTBB_ROOT_DIR=${lib.getDev tbb}"
"-DUSE_OpenMP=ON"
"-DENABLE_STATIC_LIBS=NO"
"-DSTERILE_BUILD=ON"
];

meta = with lib; {
homepage = "https://github.com/dyninst/dyninst";
description = ''
Tools for binary instrumentation, analysis, and modification.
'';
licencse = licenses.mit;
platforms = with platforms; linux;
maintainers = [maintainers.vsoch];
};
}