2022-10-06 18:32:54 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, autoPatchelfHook
|
|
|
|
, pkg-config
|
|
|
|
, dpkg
|
|
|
|
, openssl
|
|
|
|
, webkitgtk
|
|
|
|
, libappindicator
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "holochain-launcher";
|
2023-03-08 16:32:21 +00:00
|
|
|
version = "0.9.1";
|
2022-10-06 18:32:54 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/holochain/launcher/releases/download/v${version}/holochain-launcher_${version}_amd64.deb";
|
2023-03-08 16:32:21 +00:00
|
|
|
sha256 = "sha256-vYsJBMtdkbe87Xn8Ah0eT+azFWfm3ZUooejs7oB2KVQ=";
|
2022-10-06 18:32:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
dpkg
|
|
|
|
wrapGAppsHook # required for FileChooser
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
webkitgtk
|
|
|
|
libappindicator
|
|
|
|
];
|
|
|
|
|
|
|
|
unpackCmd = "dpkg-deb -x $curSrc source";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mv usr $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
patchelf --add-needed "libappindicator3.so" "$out/bin/holochain-launcher"
|
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|