mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
53 lines
1.1 KiB
Nix
53 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.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/holochain/launcher/releases/download/v${version}/holochain-launcher_${version}_amd64.deb";
|
|
sha256 = "sha256-hvnOB6cTL+VffwtBulrEzujxVZEQMSDoJx2HjivJ9z8=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|