mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
58 lines
1.4 KiB
Nix
58 lines
1.4 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, which
|
|
, zip
|
|
, libicns
|
|
, capstone
|
|
, jansson
|
|
, libunistring
|
|
, wxGTK32
|
|
, lua53Packages
|
|
, perlPackages
|
|
, gtk3
|
|
, Carbon
|
|
, Cocoa
|
|
, IOKit
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rehex";
|
|
version = "0.5.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "solemnwarning";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-UgwCfy2ssaPuSWeN2SXHBDXv/uLdrDoGr/Q9wXiuCnc=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config which zip ]
|
|
++ lib.optionals stdenv.isDarwin [ libicns ];
|
|
|
|
buildInputs = [ capstone jansson libunistring wxGTK32 ]
|
|
++ (with lua53Packages; [ lua busted ])
|
|
++ (with perlPackages; [ perl TemplateToolkit ])
|
|
++ lib.optionals stdenv.isLinux [ gtk3 ]
|
|
++ lib.optionals stdenv.isDarwin [ Carbon Cocoa IOKit ];
|
|
|
|
makeFlags = [ "prefix=${placeholder "out"}" ]
|
|
++ lib.optionals stdenv.isDarwin [ "-f Makefile.osx" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
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";
|
|
changelog = "https://github.com/solemnwarning/rehex/raw/${version}/CHANGES.txt";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ markus1189 wegank ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|