Loading pkgs/by-name/mi/microsoft-edge/update.py +1 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ def write_expression(): "upstream_version" ) os.system(f'update-source-version microsoft-edge "{version}"') os.system(f'update-source-version msedgedriver "{version}"') write_expression() pkgs/by-name/ms/msedgedriver/package.nix +7 −30 Original line number Diff line number Diff line Loading @@ -11,31 +11,11 @@ stdenvNoCC.mkDerivation (finalAttrs: { pname = "msedgedriver"; # finding a version that has all 4 builds is a pain # https://msedgewebdriverstorage.z22.web.core.windows.net/?form=MA13LH version = "130.0.2849.1"; version = "146.0.3856.84"; src = let inherit (stdenvNoCC.hostPlatform) system; selectSystem = attrs: attrs.${system} or (throw "Unsupported system: ${system}"); suffix = selectSystem { x86_64-linux = "linux64"; aarch64-linux = "arm64"; x86_64-darwin = "mac64"; aarch64-darwin = "mac64_m1"; }; hash = selectSystem { x86_64-linux = "sha256-U6YGD2PAhVUa7f+R5pmKLazGLOBbf3bRqzlwIJewA+w="; aarch64-linux = "sha256-QJ1jRw8kkWbT8US5qI8DMZI/7Q8yJWpFXrfzGdxDWKE="; x86_64-darwin = "sha256-Ejcv1DtuEiLJvTsv48AwoCQlFO3xM9PkM3HvZG65AC4="; aarch64-darwin = "sha256-ykn4bYREE6xmJY02WiCRGsGnyWjnmnZM8FemK4XZqhc="; }; in fetchzip { url = "https://msedgedriver.azureedge.net/${finalAttrs.version}/edgedriver_${suffix}.zip"; inherit hash; src = fetchzip { url = "https://msedgedriver.microsoft.com/${finalAttrs.version}/edgedriver_linux64.zip"; hash = "sha256-WMfJQYfs8Y7fllPTy1UZ/mQmz+L/xb8neqhj457pTuE="; stripRoot = false; }; Loading @@ -46,7 +26,7 @@ stdenvNoCC.mkDerivation (finalAttrs: { nss ]; nativeBuildInputs = lib.optionals (!stdenvNoCC.hostPlatform.isDarwin) [ autoPatchelfHook ]; nativeBuildInputs = [ autoPatchelfHook ]; installPhase = if stdenvNoCC.hostPlatform.isDarwin then Loading Loading @@ -75,9 +55,6 @@ stdenvNoCC.mkDerivation (finalAttrs: { maintainers = with lib.maintainers; [ cholli ]; platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; mainProgram = "msedgedriver"; }; Loading Loading
pkgs/by-name/mi/microsoft-edge/update.py +1 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ def write_expression(): "upstream_version" ) os.system(f'update-source-version microsoft-edge "{version}"') os.system(f'update-source-version msedgedriver "{version}"') write_expression()
pkgs/by-name/ms/msedgedriver/package.nix +7 −30 Original line number Diff line number Diff line Loading @@ -11,31 +11,11 @@ stdenvNoCC.mkDerivation (finalAttrs: { pname = "msedgedriver"; # finding a version that has all 4 builds is a pain # https://msedgewebdriverstorage.z22.web.core.windows.net/?form=MA13LH version = "130.0.2849.1"; version = "146.0.3856.84"; src = let inherit (stdenvNoCC.hostPlatform) system; selectSystem = attrs: attrs.${system} or (throw "Unsupported system: ${system}"); suffix = selectSystem { x86_64-linux = "linux64"; aarch64-linux = "arm64"; x86_64-darwin = "mac64"; aarch64-darwin = "mac64_m1"; }; hash = selectSystem { x86_64-linux = "sha256-U6YGD2PAhVUa7f+R5pmKLazGLOBbf3bRqzlwIJewA+w="; aarch64-linux = "sha256-QJ1jRw8kkWbT8US5qI8DMZI/7Q8yJWpFXrfzGdxDWKE="; x86_64-darwin = "sha256-Ejcv1DtuEiLJvTsv48AwoCQlFO3xM9PkM3HvZG65AC4="; aarch64-darwin = "sha256-ykn4bYREE6xmJY02WiCRGsGnyWjnmnZM8FemK4XZqhc="; }; in fetchzip { url = "https://msedgedriver.azureedge.net/${finalAttrs.version}/edgedriver_${suffix}.zip"; inherit hash; src = fetchzip { url = "https://msedgedriver.microsoft.com/${finalAttrs.version}/edgedriver_linux64.zip"; hash = "sha256-WMfJQYfs8Y7fllPTy1UZ/mQmz+L/xb8neqhj457pTuE="; stripRoot = false; }; Loading @@ -46,7 +26,7 @@ stdenvNoCC.mkDerivation (finalAttrs: { nss ]; nativeBuildInputs = lib.optionals (!stdenvNoCC.hostPlatform.isDarwin) [ autoPatchelfHook ]; nativeBuildInputs = [ autoPatchelfHook ]; installPhase = if stdenvNoCC.hostPlatform.isDarwin then Loading Loading @@ -75,9 +55,6 @@ stdenvNoCC.mkDerivation (finalAttrs: { maintainers = with lib.maintainers; [ cholli ]; platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; mainProgram = "msedgedriver"; }; Loading