Initial commit
This commit is contained in:
99
pkgs/helium.nix
Normal file
99
pkgs/helium.nix
Normal file
@@ -0,0 +1,99 @@
|
||||
{
|
||||
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";
|
||||
};
|
||||
}
|
||||
115
pkgs/zen-browser.nix
Normal file
115
pkgs/zen-browser.nix
Normal file
@@ -0,0 +1,115 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
autoPatchelfHook,
|
||||
alsa-lib,
|
||||
atk,
|
||||
at-spi2-atk,
|
||||
at-spi2-core,
|
||||
cairo,
|
||||
cups,
|
||||
dbus,
|
||||
fontconfig,
|
||||
freetype,
|
||||
gdk-pixbuf,
|
||||
glib,
|
||||
gtk3,
|
||||
libGL,
|
||||
libX11,
|
||||
libXcomposite,
|
||||
libXdamage,
|
||||
libXext,
|
||||
libXfixes,
|
||||
libXrandr,
|
||||
libxcb,
|
||||
libxkbcommon,
|
||||
mesa,
|
||||
nspr,
|
||||
nss,
|
||||
pango,
|
||||
systemd,
|
||||
wrapGAppsHook3,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "zen-browser";
|
||||
version = "1.19b";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/zen-browser/desktop/releases/download/${version}/zen.linux-x86_64.tar.xz";
|
||||
sha256 = "sha256-C9kieXWSSwKhswRVE2BVMHjlgv+a747uHqDKhqYfjgM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
wrapGAppsHook3
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
alsa-lib
|
||||
atk
|
||||
at-spi2-atk
|
||||
at-spi2-core
|
||||
cairo
|
||||
cups
|
||||
dbus
|
||||
fontconfig
|
||||
freetype
|
||||
gdk-pixbuf
|
||||
glib
|
||||
gtk3
|
||||
libGL
|
||||
libX11
|
||||
libXcomposite
|
||||
libXdamage
|
||||
libXext
|
||||
libXfixes
|
||||
libXrandr
|
||||
libxcb
|
||||
libxkbcommon
|
||||
mesa
|
||||
nspr
|
||||
nss
|
||||
pango
|
||||
systemd
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin $out/lib/zen-browser
|
||||
cp -r * $out/lib/zen-browser/
|
||||
|
||||
# Create the main executable script that wraps the browser
|
||||
cat <<EOF > $out/bin/zen-browser
|
||||
#!/bin/sh
|
||||
exec $out/lib/zen-browser/zen "\$@"
|
||||
EOF
|
||||
chmod +x $out/bin/zen-browser
|
||||
|
||||
# Setup the desktop file
|
||||
mkdir -p $out/share/applications $out/share/pixmaps
|
||||
cp browser/chrome/icons/default/default128.png $out/share/pixmaps/zen-browser.png
|
||||
|
||||
cat <<EOF > $out/share/applications/zen-browser.desktop
|
||||
[Desktop Entry]
|
||||
Name=Zen Browser
|
||||
GenericName=Web Browser
|
||||
Exec=$out/bin/zen-browser %u
|
||||
Icon=$out/share/pixmaps/zen-browser.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Network;WebBrowser;
|
||||
EOF
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Experience tranquillity while browsing the web without people tracking you!";
|
||||
homepage = "https://github.com/zen-browser/desktop";
|
||||
platforms = platforms.linux;
|
||||
mainProgram = "zen-browser";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user