wip: aarch64 widevine for helium
This commit is contained in:
parent
69b7fb4cec
commit
94cf39da75
3 changed files with 28 additions and 6 deletions
|
|
@ -7,6 +7,8 @@
|
||||||
autoPatchelfHook,
|
autoPatchelfHook,
|
||||||
makeWrapper,
|
makeWrapper,
|
||||||
|
|
||||||
|
helium-widevine,
|
||||||
|
|
||||||
# runtime dependencies
|
# runtime dependencies
|
||||||
xorg,
|
xorg,
|
||||||
libGL,
|
libGL,
|
||||||
|
|
@ -104,6 +106,9 @@ stdenv.mkDerivation rec {
|
||||||
cp -r ${xzName}/* $out/opt/helium/
|
cp -r ${xzName}/* $out/opt/helium/
|
||||||
chmod +x $out/opt/helium/chrome-wrapper $out/opt/helium/chrome
|
chmod +x $out/opt/helium/chrome-wrapper $out/opt/helium/chrome
|
||||||
|
|
||||||
|
|
||||||
|
cp -r ${helium-widevine}/share/helium/WidevineCdm $out/opt/helium/
|
||||||
|
|
||||||
makeWrapper $out/opt/helium/chrome-wrapper $out/bin/helium-browser \
|
makeWrapper $out/opt/helium/chrome-wrapper $out/bin/helium-browser \
|
||||||
--chdir $out/opt/helium \
|
--chdir $out/opt/helium \
|
||||||
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}" \
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}" \
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "widevine-helium";
|
pname = "helium-widevine";
|
||||||
version = "${finalAttrs.lacrosVersion}-${builtins.substring 0 7 finalAttrs.widevineInstaller.rev}";
|
version = "${finalAttrs.lacrosVersion}-${builtins.substring 0 7 finalAttrs.widevineInstaller.rev}";
|
||||||
lacrosVersion = "120.0.6098.0";
|
lacrosVersion = "120.0.6098.0";
|
||||||
|
|
||||||
|
|
@ -38,11 +38,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
|
|
||||||
# Accoring to widevine-installer: "Hack because Chromium hardcodes a check for this right now..."
|
# Accoring to widevine-installer: "Hack because Chromium hardcodes a check for this right now..."
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -vD manifest.json "$out/share/helium/WidevineCdm/manifest.json"
|
mkdir -p "$out/share/helium/WidevineCdm/_platform_specific/linux_x64"
|
||||||
install -vD LICENSE.txt "$out/share/helium/WidevineCdm/License.txt"
|
touch "$out/share/helium/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so"
|
||||||
|
install -vD manifest.json "$out/share/helium/WidevineCdm/manifest.json"
|
||||||
|
install -vD LICENSE.txt "$out/share/helium/WidevineCdm/License.txt"
|
||||||
install -vD libwidevinecdm.so "$out/share/helium/WidevineCdm/_platform_specific/linux_arm64/libwidevinecdm.so"
|
install -vD libwidevinecdm.so "$out/share/helium/WidevineCdm/_platform_specific/linux_arm64/libwidevinecdm.so"
|
||||||
mkdir -p "$out/share/helium/WidevineCdm/_platform_specific/linux_x64"
|
|
||||||
touch "$out/share/helium/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = import ./widevine-meta.nix lib;
|
meta = import ./widevine-meta.nix lib;
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,24 @@ final: prev: {
|
||||||
else
|
else
|
||||||
null;
|
null;
|
||||||
|
|
||||||
helium-browser = prev.callPackage (builtins.path { path = ./helium-browser/package.nix; }) { };
|
# helium-browser =
|
||||||
|
# prev.callPackage
|
||||||
|
# (builtins.path {
|
||||||
|
# path = ./helium-browser/package.nix;
|
||||||
|
# })
|
||||||
|
# {
|
||||||
|
# helium-widevine = prev.callPackage (builtins.path {
|
||||||
|
# path = ./helium-browser/widevine-aarch64-linux.nix;
|
||||||
|
# }) { };
|
||||||
|
# };
|
||||||
|
|
||||||
|
helium-browser =
|
||||||
|
let
|
||||||
|
helium-widevine = prev.callPackage ./helium-browser/widevine-aarch64-linux.nix { };
|
||||||
|
in
|
||||||
|
prev.callPackage ./helium-browser/package.nix {
|
||||||
|
inherit helium-widevine;
|
||||||
|
};
|
||||||
|
|
||||||
strawberry-master = prev.callPackage (builtins.path {
|
strawberry-master = prev.callPackage (builtins.path {
|
||||||
path = ./strawberry/package.nix;
|
path = ./strawberry/package.nix;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue