From 07540daf4d5b189c913c58a024afaa3eca8dfb2d Mon Sep 17 00:00:00 2001 From: Markus Hauck Date: Sat, 21 Nov 2020 18:35:28 +0100 Subject: [PATCH] rehex: init at 0.3.1 --- pkgs/applications/editors/rehex/default.nix | 39 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 pkgs/applications/editors/rehex/default.nix diff --git a/pkgs/applications/editors/rehex/default.nix b/pkgs/applications/editors/rehex/default.nix new file mode 100644 index 000000000000..2f7083965afc --- /dev/null +++ b/pkgs/applications/editors/rehex/default.nix @@ -0,0 +1,39 @@ +{ capstone +, fetchFromGitHub +, jansson +, lib +, stdenv +, wxGTK30 +}: + +stdenv.mkDerivation rec { + pname = "rehex"; + version = "0.3.1"; + + src = fetchFromGitHub { + owner = "solemnwarning"; + repo = pname; + rev = version; + sha256 = "1yj9a63j7534mmz8cl1ifg2wmgkxmk6z75jd8lkmc2sfrjbick32"; + }; + + buildInputs = [ + capstone + jansson + wxGTK30 + ]; + + makeFlags = [ "prefix=$(out)" ]; + + meta = with lib; { + description = "Reverse Engineers' Hex Editor"; + longDescription = '' + A cross-platform (Windows, Linux, Mac) hex editor for reverse + engineering, and everything else. + ''; + homepage = "https://github.com/solemnwarning/rehex"; + license = licenses.gpl2; + maintainers = with maintainers; [ markus1189 ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4fa36d3fa40f..83832b547281 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6672,6 +6672,8 @@ in remarshal = callPackage ../development/tools/remarshal { }; + rehex = callPackage ../applications/editors/rehex { }; + rig = callPackage ../tools/misc/rig { stdenv = gccStdenv; };