20 stdenv.mkDerivation rec {
24 src = fetchFromGitHub {
25 owner = "solemnwarning";
28 hash = "sha256-oF8XtxKqyo6c2lNH6WDq6aEPeZw8RqBinDVhPpaDAWg=";
31 nativeBuildInputs = [ pkg-config which zip ]
32 ++ lib.optionals stdenv.isDarwin [ libicns ];
34 buildInputs = [ capstone jansson libunistring wxGTK32 ]
35 ++ (with lua53Packages; [ lua busted ])
36 ++ (with perlPackages; [ perl TemplateToolkit ])
37 ++ lib.optionals stdenv.isLinux [ gtk3 ]
38 ++ lib.optionals stdenv.isDarwin [ Carbon Cocoa IOKit ];
40 makeFlags = [ "prefix=${placeholder "out"}" ]
41 ++ lib.optionals stdenv.isDarwin [ "-f Makefile.osx" ];
43 enableParallelBuilding = true;
46 description = "Reverse Engineers' Hex Editor";
48 A cross-platform (Windows, Linux, Mac) hex editor for reverse
49 engineering, and everything else.
51 homepage = "https://github.com/solemnwarning/rehex";
52 changelog = "https://github.com/solemnwarning/rehex/raw/${version}/CHANGES.txt";
53 license = licenses.gpl2Only;
54 maintainers = with maintainers; [ markus1189 wegank ];
55 platforms = platforms.all;