100 lines
1.7 KiB
Nix
100 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
unzip,
|
|
autoPatchelfHook,
|
|
stdenv,
|
|
fetchurl,
|
|
libxcb,
|
|
libx11,
|
|
libxcomposite,
|
|
libxdamage,
|
|
libxext,
|
|
libxfixes,
|
|
libxrandr,
|
|
libgbm,
|
|
cairo,
|
|
libudev-zero,
|
|
libxkbcommon,
|
|
nspr,
|
|
nss,
|
|
pango,
|
|
qt5,
|
|
alsa-lib,
|
|
cups,
|
|
atk,
|
|
at-spi2-core,
|
|
at-spi2-atk,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "Helium";
|
|
version = "0.9.4.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/imputnet/helium-linux/releases/download/${version}/helium-${version}-x86_64_linux.tar.xz";
|
|
sha256 = "sha256-qXuDUtank46O87jASxczmVMk0iD4JaZi2j9LSBe9VCM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
unzip
|
|
autoPatchelfHook
|
|
qt5.wrapQtAppsHook
|
|
];
|
|
|
|
autoPatchelfIgnoreMissingDeps = [
|
|
"libQt6Core.so.6"
|
|
"libQt6Gui.so.6"
|
|
"libQt6Widgets.so.6"
|
|
];
|
|
|
|
runtimeDependencies = [ ];
|
|
buildInputs = [
|
|
libxcb
|
|
libx11
|
|
libxcomposite
|
|
libxdamage
|
|
libxext
|
|
libxfixes
|
|
libxrandr
|
|
libgbm
|
|
cairo
|
|
pango
|
|
libudev-zero
|
|
libxkbcommon
|
|
nspr
|
|
nss
|
|
alsa-lib
|
|
cups
|
|
atk
|
|
at-spi2-core
|
|
at-spi2-atk
|
|
qt5.qtbase
|
|
qt5.qttools
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/bin
|
|
mv * $out/bin/
|
|
mkdir -p $out/share/applications
|
|
|
|
cat <<INI> $out/share/applications/${name}.desktop
|
|
[Desktop Entry]
|
|
Name=${name}
|
|
GenericName=Web Browser
|
|
Terminal=false
|
|
Icon=$out/bin/product_logo_256.png
|
|
Exec=$out/bin/helium
|
|
Type=Application
|
|
Categories=Network;WebBrowser;
|
|
INI
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/imputnet/helium-linux";
|
|
description = "A description of your application";
|
|
platforms = platforms.linux;
|
|
mainProgram = "helium";
|
|
};
|
|
}
|