2019-12-11 20:13:30 +00:00
|
|
|
{
|
|
|
|
stdenv, fetchurl, lib,
|
2019-03-12 13:48:39 +00:00
|
|
|
|
2019-12-11 20:13:30 +00:00
|
|
|
autoPatchelfHook,
|
|
|
|
|
|
|
|
wrapQtAppsHook,
|
|
|
|
|
|
|
|
libbsd,
|
|
|
|
python27,
|
|
|
|
gmpxx,
|
|
|
|
}:
|
|
|
|
let
|
2019-12-11 17:34:41 +00:00
|
|
|
|
2019-12-11 20:13:30 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
2019-03-12 13:48:39 +00:00
|
|
|
pname = "hopper";
|
2019-12-11 20:19:21 +00:00
|
|
|
version = "4.5.19";
|
2019-03-12 13:48:39 +00:00
|
|
|
rev = "v${lib.versions.major version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://d2ap6ypl1xbe4k.cloudfront.net/Hopper-${rev}-${version}-Linux.pkg.tar.xz";
|
2019-12-11 20:19:21 +00:00
|
|
|
sha256 = "1c9wbjwz5xn0skz2a1wpxyx78hhrm8vcbpzagsg4wwnyblap59db";
|
2019-03-12 13:48:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
2019-12-11 20:13:30 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapQtAppsHook
|
|
|
|
autoPatchelfHook
|
2019-03-12 13:48:39 +00:00
|
|
|
];
|
|
|
|
|
2019-12-11 20:13:30 +00:00
|
|
|
buildInputs = [
|
|
|
|
libbsd
|
|
|
|
python27
|
|
|
|
gmpxx
|
2019-12-11 17:34:41 +00:00
|
|
|
];
|
2019-03-12 13:48:39 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2019-07-05 15:42:08 +00:00
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/lib
|
|
|
|
mkdir -p $out/share
|
2019-12-11 20:13:30 +00:00
|
|
|
|
2019-07-05 15:42:08 +00:00
|
|
|
cp $sourceRoot/opt/hopper-${rev}/bin/Hopper $out/bin/hopper
|
|
|
|
cp -r $sourceRoot/opt/hopper-${rev}/lib $out
|
|
|
|
cp -r $sourceRoot/usr/share $out/share
|
2019-03-12 13:48:39 +00:00
|
|
|
'';
|
|
|
|
|
2019-12-11 20:13:30 +00:00
|
|
|
meta = with stdenv.lib; {
|
2019-03-12 13:48:39 +00:00
|
|
|
homepage = "https://www.hopperapp.com/index.html";
|
|
|
|
description = "A macOS and Linux Disassembler";
|
2019-12-11 20:13:30 +00:00
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = [
|
|
|
|
maintainers.luis
|
|
|
|
maintainers.Enteee
|
|
|
|
];
|
|
|
|
platforms = platforms.linux;
|
2019-03-12 13:48:39 +00:00
|
|
|
};
|
|
|
|
}
|