mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
Add darwin support from @SuperSandro2000
This commit is contained in:
parent
07540daf4d
commit
cdb23e9abd
@ -1,9 +1,11 @@
|
||||
{ capstone
|
||||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, capstone
|
||||
, jansson
|
||||
, lib
|
||||
, stdenv
|
||||
, wxGTK30
|
||||
, darwin
|
||||
, libicns
|
||||
, wxmac
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -17,15 +19,20 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1yj9a63j7534mmz8cl1ifg2wmgkxmk6z75jd8lkmc2sfrjbick32";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
capstone
|
||||
jansson
|
||||
wxGTK30
|
||||
];
|
||||
patchPhase = ''
|
||||
substituteInPlace Makefile.osx --replace 'iconutil -c icns -o $@ $(ICONSET)' \
|
||||
'png2icns $@ $(ICONSET)/icon_16x16.png $(ICONSET)/icon_32x32.png $(ICONSET)/icon_128x128.png $(ICONSET)/icon_256x256.png $(ICONSET)/icon_512x512.png'
|
||||
'';
|
||||
|
||||
makeFlags = [ "prefix=$(out)" ];
|
||||
nativeBuildInputs = stdenv.lib.optionals (stdenv.isDarwin) [ libicns ];
|
||||
|
||||
meta = with lib; {
|
||||
buildInputs = [ capstone jansson ]
|
||||
++ (stdenv.lib.optionals (!stdenv.isDarwin) [ wxGTK30 ])
|
||||
++ (stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Carbon Cocoa IOKit wxmac ]));
|
||||
|
||||
makeFlags = [ "prefix=$(out)" ] ++ (stdenv.lib.optionals stdenv.isDarwin [ "-f Makefile.osx" ]);
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Reverse Engineers' Hex Editor";
|
||||
longDescription = ''
|
||||
A cross-platform (Windows, Linux, Mac) hex editor for reverse
|
||||
@ -33,7 +40,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
homepage = "https://github.com/solemnwarning/rehex";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ markus1189 ];
|
||||
maintainers = with maintainers; [ markus1189 SuperSandro2000 ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user