wow
All checks were successful
CI / list-packages (push) Successful in 5s
CI / build (helium) (push) Successful in 29s
CI / build (pjsk-cursor) (push) Successful in 12s
CI / build (waterfox-bin) (push) Successful in 5s
CI / build (xcursor-mizuki) (push) Successful in 3s

This commit is contained in:
암냥 2026-04-26 02:11:42 +09:00
commit eceaac0513
No known key found for this signature in database
4 changed files with 155 additions and 4 deletions

56
pkgs/helium/default.nix Normal file
View file

@ -0,0 +1,56 @@
{
pkgs,
commandLineArgs ? [ ],
enableFeatures ? [ ],
libvaSupport ? pkgs.stdenv.hostPlatform.isLinux,
widevineSupport ? false,
}:
pkgs.appimageTools.wrapType2 rec {
pname = "helium";
version = "0.11.4.1";
src = pkgs.fetchurl {
url = "https://github.com/imputnet/helium-linux/releases/download/${version}/${pname}-${version}-x86_64.AppImage";
sha256 = "sha256-EavHZuleVkgD4J+gcUQ2ZgGHjvWXzdamUh7r42bUkas=";
};
_enableFeatures =
enableFeatures
++ pkgs.lib.optionals libvaSupport [
"VaapiVideoDecoder"
];
extraPkgs = pkgs: pkgs.lib.optionals libvaSupport [ pkgs.libva ];
extraBwrapArgs = [
"--ro-bind-try /etc/chromium /etc/chromium"
];
nativeBuildInputs = [ pkgs.makeWrapper ];
extraInstallCommands =
let
contents = pkgs.appimageTools.extract { inherit pname version src; };
in
''
wrapProgram $out/bin/${pname} \
${
pkgs.lib.optionalString (
_enableFeatures != [ ]
) "--add-flags \"--enable-features=${pkgs.lib.strings.concatStringsSep "," _enableFeatures}\""
} \
${pkgs.lib.optionalString (
commandLineArgs != [ ]
) "--add-flags \"${pkgs.lib.strings.concatStringsSep " " commandLineArgs}\""} \
${pkgs.lib.optionalString widevineSupport ''
--run "mkdir -p ~/.config/net.imput.helium/WidevineCdm" \
--run "echo '{\"Path\":\"${pkgs.widevine-cdm}/share/google/chrome/WidevineCdm\"}' > ~/.config/net.imput.helium/WidevineCdm/latest-component-updated-widevine-cdm"
''}
install -m 444 -D ${contents}/${pname}.desktop -t $out/share/applications
substituteInPlace $out/share/applications/${pname}.desktop \
--replace 'Exec=AppRun' 'Exec=${pname}'
cp -r ${contents}/usr/share/icons $out/share
'';
}