about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLuis Hebendanz <22085373+Luis-Hebendanz@users.noreply.github.com>2019-03-12 14:48:39 +0100
committerRyan Mulligan <ryan@ryantm.com>2019-03-12 06:48:39 -0700
commita5f4f743af17641cdea3be04cf55cfb2ceaa8201 (patch)
treebaff917e1d0e5590b520441e43a561d25c3ece65
parent5cbb20fc30dfa1bfc63c24b18b6c72e1e46d63e9 (diff)
downloadnixlib-a5f4f743af17641cdea3be04cf55cfb2ceaa8201.tar
nixlib-a5f4f743af17641cdea3be04cf55cfb2ceaa8201.tar.gz
nixlib-a5f4f743af17641cdea3be04cf55cfb2ceaa8201.tar.bz2
nixlib-a5f4f743af17641cdea3be04cf55cfb2ceaa8201.tar.lz
nixlib-a5f4f743af17641cdea3be04cf55cfb2ceaa8201.tar.xz
nixlib-a5f4f743af17641cdea3be04cf55cfb2ceaa8201.tar.zst
nixlib-a5f4f743af17641cdea3be04cf55cfb2ceaa8201.zip
hopper: init at 4.5.7
* hopper: init at 4.5.7

* Update pkgs/development/tools/analysis/hopper/default.nix

Co-Authored-By: Luis-Hebendanz <22085373+Luis-Hebendanz@users.noreply.github.com>

* Update pkgs/development/tools/analysis/hopper/default.nix

Co-Authored-By: Luis-Hebendanz <22085373+Luis-Hebendanz@users.noreply.github.com>

* Better versioning

* Renamed executable to lowercase name
-rw-r--r--maintainers/maintainer-list.nix5
-rw-r--r--pkgs/development/tools/analysis/hopper/default.nix44
-rw-r--r--pkgs/top-level/all-packages.nix2
3 files changed, 51 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix
index e424203cfa45..be9721d961d3 100644
--- a/maintainers/maintainer-list.nix
+++ b/maintainers/maintainer-list.nix
@@ -2673,6 +2673,11 @@
     github = "listx";
     name = "Linus Arver";
   };
+  luis = {
+      email = "luis.nixos@gmail.com";
+      github = "Luis-Hebendanz";
+      name = "Luis Hebendanz";
+  };
   lionello = {
     email = "lio@lunesu.com";
     github = "lionello";
diff --git a/pkgs/development/tools/analysis/hopper/default.nix b/pkgs/development/tools/analysis/hopper/default.nix
new file mode 100644
index 000000000000..7158ea38c04d
--- /dev/null
+++ b/pkgs/development/tools/analysis/hopper/default.nix
@@ -0,0 +1,44 @@
+{ stdenv, fetchurl, pkgs, makeWrapper, lib }:
+
+stdenv.mkDerivation rec {
+  pname    = "hopper";
+  version = "4.5.7";
+  rev = "v${lib.versions.major version}";
+
+  src = fetchurl {
+    url = "https://d2ap6ypl1xbe4k.cloudfront.net/Hopper-${rev}-${version}-Linux.pkg.tar.xz";
+    sha256 = "1ce7a0f13126a940398aa8da4a74e250dff0401074f30446a8840ac3dbb902c0";
+  };
+
+  sourceRoot = ".";
+
+  ldLibraryPath = with pkgs; stdenv.lib.makeLibraryPath  [
+libbsd.out libffi.out gmpxx.out python27Full.out python27Packages.libxml2 qt5.qtbase zlib  xlibs.libX11.out xorg_sys_opengl.out xlibs.libXrender.out gcc-unwrapped.lib
+  ];
+
+  nativeBuildInputs = [ makeWrapper ];
+
+  installPhase = ''
+     mkdir -p $out/bin
+     mkdir -p $out/lib
+     mkdir -p $out/share
+     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
+    patchelf \
+    --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 \
+    $out/bin/hopper
+    # Details: https://nixos.wiki/wiki/Qt
+     wrapProgram $out/bin/hopper \
+    --suffix LD_LIBRARY_PATH : ${ldLibraryPath} \
+    --suffix QT_PLUGIN_PATH : ${pkgs.qt5.qtbase}/lib/qt-${pkgs.qt5.qtbase.qtCompatVersion}/plugins
+  '';
+
+  meta = {
+    homepage = "https://www.hopperapp.com/index.html";
+    description = "A macOS and Linux Disassembler";
+    license = stdenv.lib.licenses.unfree;
+    maintainers = [ stdenv.lib.maintainers.luis ];
+    platforms = stdenv.lib.platforms.linux;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index d00f1f3d65a4..e4e345545207 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1515,6 +1515,8 @@ in
 
   hostsblock = callPackage ../tools/misc/hostsblock { };
 
+  hopper = callPackage ../development/tools/analysis/hopper {};
+
   hr = callPackage ../applications/misc/hr { };
 
   hyx = callPackage ../tools/text/hyx { };