hopper: apply changes from code review
* add dependency to ncurses, gnustep * don't copy to share/share * run pre/post Install hooks * fix desktop icon * with maintainers
This commit is contained in:
parent
b301e82cfe
commit
7da91c565c
@ -8,10 +8,11 @@
|
|||||||
libbsd,
|
libbsd,
|
||||||
python27,
|
python27,
|
||||||
gmpxx,
|
gmpxx,
|
||||||
}:
|
|
||||||
let
|
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
ncurses5,
|
||||||
|
gnustep,
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
pname = "hopper";
|
pname = "hopper";
|
||||||
version = "4.5.19";
|
version = "4.5.19";
|
||||||
rev = "v${lib.versions.major version}";
|
rev = "v${lib.versions.major version}";
|
||||||
@ -32,25 +33,47 @@ in stdenv.mkDerivation rec {
|
|||||||
libbsd
|
libbsd
|
||||||
python27
|
python27
|
||||||
gmpxx
|
gmpxx
|
||||||
|
|
||||||
|
ncurses5
|
||||||
|
gnustep.libobjc
|
||||||
];
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
mkdir -p $out/lib
|
mkdir -p $out/lib
|
||||||
mkdir -p $out/share
|
mkdir -p $out/share
|
||||||
|
|
||||||
cp $sourceRoot/opt/hopper-${rev}/bin/Hopper $out/bin/hopper
|
cp $sourceRoot/opt/hopper-${rev}/bin/Hopper $out/bin/hopper
|
||||||
cp -r $sourceRoot/opt/hopper-${rev}/lib $out
|
cp \
|
||||||
cp -r $sourceRoot/usr/share $out/share
|
--archive \
|
||||||
|
$sourceRoot/opt/hopper-${rev}/lib/libBlocksRuntime.so* \
|
||||||
|
$sourceRoot/opt/hopper-${rev}/lib/libdispatch.so* \
|
||||||
|
$sourceRoot/opt/hopper-${rev}/lib/libgnustep-base.so* \
|
||||||
|
$sourceRoot/opt/hopper-${rev}/lib/libHopperCore.so* \
|
||||||
|
$sourceRoot/opt/hopper-${rev}/lib/libkqueue.so* \
|
||||||
|
$sourceRoot/opt/hopper-${rev}/lib/libobjcxx.so* \
|
||||||
|
$sourceRoot/opt/hopper-${rev}/lib/libpthread_workqueue.so* \
|
||||||
|
$out/lib
|
||||||
|
|
||||||
|
cp -r $sourceRoot/usr/share $out
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
substituteInPlace "$out/share/applications/hopper-${rev}.desktop" \
|
||||||
|
--replace "Exec=/opt/hopper-${rev}/bin/Hopper" "Exec=$out/bin/hopper"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://www.hopperapp.com/index.html";
|
homepage = "https://www.hopperapp.com/index.html";
|
||||||
description = "A macOS and Linux Disassembler";
|
description = "A macOS and Linux Disassembler";
|
||||||
license = licenses.unfree;
|
license = licenses.unfree;
|
||||||
maintainers = [
|
maintainers = with maintainers; [
|
||||||
maintainers.luis
|
luis
|
||||||
maintainers.Enteee
|
Enteee
|
||||||
];
|
];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user