2022-10-06 18:32:54 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, autoPatchelfHook
|
|
|
|
, pkg-config
|
|
|
|
, dpkg
|
|
|
|
, openssl
|
|
|
|
, webkitgtk
|
|
|
|
, libappindicator
|
|
|
|
, wrapGAppsHook
|
2023-10-09 19:29:22 +00:00
|
|
|
, shared-mime-info
|
|
|
|
, glib-networking
|
2022-10-06 18:32:54 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "holochain-launcher";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.11.5";
|
2023-10-09 19:29:22 +00:00
|
|
|
prerelease = "beta-2";
|
2022-10-06 18:32:54 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-10-09 19:29:22 +00:00
|
|
|
url = "https://github.com/holochain/launcher/releases/download/v${version}/holochain-launcher-${prerelease}_${version}_amd64.deb";
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-MRFQJRfvJ+dLmPDfPQX9wErIwEr07EAUqxic8kbKVdo=";
|
2022-10-06 18:32:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
dpkg
|
|
|
|
wrapGAppsHook # required for FileChooser
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
webkitgtk
|
|
|
|
libappindicator
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
glib-networking
|
2022-10-06 18:32:54 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
unpackCmd = "dpkg-deb -x $curSrc source";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mv usr $out
|
2023-10-09 19:29:22 +00:00
|
|
|
mv $out/bin/holochain-launcher-${prerelease} $out/bin/holochain-launcher
|
2022-10-06 18:32:54 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
patchelf --add-needed "libappindicator3.so" "$out/bin/holochain-launcher"
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
# without this the DevTools will just display an unparsed HTML file (see https://github.com/tauri-apps/tauri/issues/5711#issuecomment-1336409601)
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
|
|
|
|
--set WEBKIT_DISABLE_COMPOSITING_MODE 1
|
|
|
|
)
|
2022-10-06 18:32:54 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A cross-platform executable that launches a local Holochain conductor, and installs and opens apps";
|
|
|
|
homepage = "https://github.com/holochain/launcher";
|
|
|
|
maintainers = [ maintainers.steveej ];
|
|
|
|
license = licenses.cal10;
|
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|