dae973cb59
GitOrigin-RevId: c90c4025bb6e0c4eaf438128a3b2640314b1c58d
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchurl
|
|
, autoPatchelfHook
|
|
, pkg-config
|
|
, dpkg
|
|
, openssl
|
|
, webkitgtk
|
|
, libappindicator
|
|
, wrapGAppsHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "holochain-launcher";
|
|
version = "0.9.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/holochain/launcher/releases/download/v${version}/holochain-launcher_${version}_amd64.deb";
|
|
sha256 = "sha256-vYsJBMtdkbe87Xn8Ah0eT+azFWfm3ZUooejs7oB2KVQ=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|