nixpkgs/pkgs/applications/editors/rehex/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
, stdenv
2020-11-21 17:35:28 +00:00
, fetchFromGitHub
, pkg-config
, which
2022-10-07 23:49:05 +00:00
, zip
, libicns
, capstone
2020-11-21 17:35:28 +00:00
, jansson
, libunistring
2022-10-25 18:16:03 +00:00
, wxGTK32
2022-10-07 23:49:05 +00:00
, lua53Packages
, perlPackages
2022-10-25 18:16:03 +00:00
, gtk3
, Carbon
, Cocoa
, IOKit
2020-11-21 17:35:28 +00:00
}:
stdenv.mkDerivation rec {
pname = "rehex";
2022-10-25 18:16:03 +00:00
version = "0.5.4";
2020-11-21 17:35:28 +00:00
src = fetchFromGitHub {
owner = "solemnwarning";
repo = pname;
rev = version;
2022-10-25 18:16:03 +00:00
hash = "sha256-UgwCfy2ssaPuSWeN2SXHBDXv/uLdrDoGr/Q9wXiuCnc=";
2020-11-21 17:35:28 +00:00
};
2022-10-07 23:49:05 +00:00
nativeBuildInputs = [ pkg-config which zip ]
++ lib.optionals stdenv.isDarwin [ libicns ];
2020-11-21 17:35:28 +00:00
2022-10-25 18:16:03 +00:00
buildInputs = [ capstone jansson libunistring wxGTK32 ]
2022-10-07 23:49:05 +00:00
++ (with lua53Packages; [ lua busted ])
++ (with perlPackages; [ perl TemplateToolkit ])
2022-10-25 18:16:03 +00:00
++ lib.optionals stdenv.isLinux [ gtk3 ]
2022-10-07 23:49:05 +00:00
++ lib.optionals stdenv.isDarwin [ Carbon Cocoa IOKit ];
makeFlags = [ "prefix=${placeholder "out"}" ]
++ lib.optionals stdenv.isDarwin [ "-f Makefile.osx" ];
enableParallelBuilding = true;
meta = with lib; {
2020-11-21 17:35:28 +00:00
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;
2022-10-07 23:49:05 +00:00
maintainers = with maintainers; [ markus1189 wegank ];
2020-11-21 17:35:28 +00:00
platforms = platforms.all;
};
}