From 1e9d2d2f12c2f7367f744107a9e68b64beb6beb0 Mon Sep 17 00:00:00 2001 From: luc65r Date: Thu, 29 Oct 2020 19:58:28 +0100 Subject: [PATCH] keystone: init at 0.9.2 --- .../libraries/keystone/default.nix | 32 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/libraries/keystone/default.nix diff --git a/pkgs/development/libraries/keystone/default.nix b/pkgs/development/libraries/keystone/default.nix new file mode 100644 index 00000000000..dc83209c147 --- /dev/null +++ b/pkgs/development/libraries/keystone/default.nix @@ -0,0 +1,32 @@ +{ stdenv +, fetchFromGitHub +, pkg-config +, cmake +, python3 +}: + +stdenv.mkDerivation rec { + pname = "keystone"; + version = "0.9.2"; + + src = fetchFromGitHub { + owner = "keystone-engine"; + repo = pname; + rev = version; + sha256 = "020d1l1aqb82g36l8lyfn2j8c660mm6sh1nl4haiykwgdl9xnxfa"; + }; + + nativeBuildInputs = [ + pkg-config + cmake + python3 + ]; + + meta = with stdenv.lib; { + description = "Lightweight multi-platform, multi-architecture assembler framework"; + homepage = "https://www.keystone-engine.org"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ luc65r ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a37fab7ec3d..111ed500554 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1651,6 +1651,8 @@ in capstone = callPackage ../development/libraries/capstone { }; unicorn-emu = callPackage ../development/libraries/unicorn-emu { }; + keystone = callPackage ../development/libraries/keystone { }; + casync = callPackage ../applications/networking/sync/casync { sphinx = python3Packages.sphinx; };