Merge staging-next-21.05 into staging-21.05
This commit is contained in:
commit
40abc418bb
@ -1,4 +1,7 @@
|
|||||||
{ lib, mkChromiumDerivation, channel, enableWideVine, ungoogled }:
|
{ lib, mkChromiumDerivation
|
||||||
|
, channel, chromiumVersionAtLeast
|
||||||
|
, enableWideVine, ungoogled
|
||||||
|
}:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
@ -16,7 +19,8 @@ mkChromiumDerivation (base: rec {
|
|||||||
cp -v "$buildPath/"*.so "$buildPath/"*.pak "$buildPath/"*.bin "$libExecPath/"
|
cp -v "$buildPath/"*.so "$buildPath/"*.pak "$buildPath/"*.bin "$libExecPath/"
|
||||||
cp -v "$buildPath/icudtl.dat" "$libExecPath/"
|
cp -v "$buildPath/icudtl.dat" "$libExecPath/"
|
||||||
cp -vLR "$buildPath/locales" "$buildPath/resources" "$libExecPath/"
|
cp -vLR "$buildPath/locales" "$buildPath/resources" "$libExecPath/"
|
||||||
cp -v "$buildPath/crashpad_handler" "$libExecPath/"
|
${lib.optionalString (!chromiumVersionAtLeast "94") ''cp -v "$buildPath/crashpad_handler" "$libExecPath/"''}
|
||||||
|
${lib.optionalString (chromiumVersionAtLeast "94") ''cp -v "$buildPath/chrome_crashpad_handler" "$libExecPath/"''}
|
||||||
cp -v "$buildPath/chrome" "$libExecPath/$packageName"
|
cp -v "$buildPath/chrome" "$libExecPath/$packageName"
|
||||||
|
|
||||||
# Swiftshader
|
# Swiftshader
|
||||||
|
@ -1,40 +1,51 @@
|
|||||||
{ stdenv, lib, llvmPackages, gnChromium, ninja, which, nodejs, fetchpatch, fetchurl
|
{ stdenv, lib, fetchurl, fetchpatch
|
||||||
|
# Channel data:
|
||||||
|
, channel, upstream-info
|
||||||
|
# Helper functions:
|
||||||
|
, chromiumVersionAtLeast, versionRange
|
||||||
|
|
||||||
# default dependencies
|
# Native build inputs:
|
||||||
, gnutar, bzip2, flac, speex, libopus
|
, ninja, pkg-config
|
||||||
|
, python2, python3, perl
|
||||||
|
, gnutar, which
|
||||||
|
, llvmPackages
|
||||||
|
# postPatch:
|
||||||
|
, pkgsBuildHost
|
||||||
|
# configurePhase:
|
||||||
|
, gnChromium
|
||||||
|
|
||||||
|
# Build inputs:
|
||||||
|
, libpng
|
||||||
|
, bzip2, flac, speex, libopus
|
||||||
, libevent, expat, libjpeg, snappy
|
, libevent, expat, libjpeg, snappy
|
||||||
, libpng, libcap
|
, libcap
|
||||||
, xdg-utils, yasm, nasm, minizip, libwebp
|
, xdg-utils, minizip, libwebp
|
||||||
, libusb1, pciutils, nss, re2
|
, libusb1, re2
|
||||||
|
, ffmpeg, libxslt, libxml2
|
||||||
, python2, python3, perl, pkg-config
|
, nasm
|
||||||
, nspr, systemd, libkrb5
|
, nspr, nss, systemd
|
||||||
, util-linux, alsa-lib
|
, util-linux, alsa-lib
|
||||||
, bison, gperf
|
, bison, gperf, libkrb5
|
||||||
, glib, gtk3, dbus-glib
|
, glib, gtk3, dbus-glib
|
||||||
, glibc
|
|
||||||
, libXScrnSaver, libXcursor, libXtst, libxshmfence, libGLU, libGL
|
, libXScrnSaver, libXcursor, libXtst, libxshmfence, libGLU, libGL
|
||||||
, protobuf, speechd, libXdamage, cups
|
, mesa
|
||||||
, ffmpeg, libxslt, libxml2, at-spi2-core
|
, pciutils, protobuf, speechd, libXdamage, at-spi2-core
|
||||||
, jre8
|
|
||||||
, pipewire
|
, pipewire
|
||||||
, libva
|
, libva
|
||||||
, libdrm, wayland, mesa, libxkbcommon # Ozone
|
, libdrm, wayland, libxkbcommon # Ozone
|
||||||
, curl
|
, curl
|
||||||
|
# postPatch:
|
||||||
|
, glibc # gconv + locale
|
||||||
|
|
||||||
# optional dependencies
|
# Package customization:
|
||||||
, libgcrypt ? null # gnomeSupport || cupsSupport
|
|
||||||
|
|
||||||
# package customization
|
|
||||||
, gnomeSupport ? false, gnome2 ? null
|
, gnomeSupport ? false, gnome2 ? null
|
||||||
, gnomeKeyringSupport ? false, libgnome-keyring3 ? null
|
, gnomeKeyringSupport ? false, libgnome-keyring3 ? null
|
||||||
|
, cupsSupport ? true, cups ? null
|
||||||
, proprietaryCodecs ? true
|
, proprietaryCodecs ? true
|
||||||
, cupsSupport ? true
|
|
||||||
, pulseSupport ? false, libpulseaudio ? null
|
, pulseSupport ? false, libpulseaudio ? null
|
||||||
, ungoogled ? false, ungoogled-chromium
|
, ungoogled ? false, ungoogled-chromium
|
||||||
|
# Optional dependencies:
|
||||||
, channel
|
, libgcrypt ? null # gnomeSupport || cupsSupport
|
||||||
, upstream-info
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildFun:
|
buildFun:
|
||||||
@ -91,35 +102,12 @@ let
|
|||||||
withCustomModes = true;
|
withCustomModes = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultDependencies = [
|
|
||||||
(libpng.override { apngSupport = false; }) # https://bugs.chromium.org/p/chromium/issues/detail?id=752403
|
|
||||||
bzip2 flac speex opusWithCustomModes
|
|
||||||
libevent expat libjpeg snappy
|
|
||||||
libcap
|
|
||||||
xdg-utils minizip libwebp
|
|
||||||
libusb1 re2
|
|
||||||
ffmpeg libxslt libxml2
|
|
||||||
nasm
|
|
||||||
];
|
|
||||||
|
|
||||||
# build paths and release info
|
# build paths and release info
|
||||||
packageName = extraAttrs.packageName or extraAttrs.name;
|
packageName = extraAttrs.packageName or extraAttrs.name;
|
||||||
buildType = "Release";
|
buildType = "Release";
|
||||||
buildPath = "out/${buildType}";
|
buildPath = "out/${buildType}";
|
||||||
libExecPath = "$out/libexec/${packageName}";
|
libExecPath = "$out/libexec/${packageName}";
|
||||||
|
|
||||||
warnObsoleteVersionConditional = min-version: result:
|
|
||||||
let ungoogled-version = (importJSON ./upstream-info.json).ungoogled-chromium.version;
|
|
||||||
in warnIf (versionAtLeast ungoogled-version min-version) "chromium: ungoogled version ${ungoogled-version} is newer than a conditional bounded at ${min-version}. You can safely delete it."
|
|
||||||
result;
|
|
||||||
chromiumVersionAtLeast = min-version:
|
|
||||||
let result = versionAtLeast upstream-info.version min-version;
|
|
||||||
in warnObsoleteVersionConditional min-version result;
|
|
||||||
versionRange = min-version: upto-version:
|
|
||||||
let inherit (upstream-info) version;
|
|
||||||
result = versionAtLeast version min-version && versionOlder version upto-version;
|
|
||||||
in warnObsoleteVersionConditional upto-version result;
|
|
||||||
|
|
||||||
ungoogler = ungoogled-chromium {
|
ungoogler = ungoogled-chromium {
|
||||||
inherit (upstream-info.deps.ungoogled-patches) rev sha256;
|
inherit (upstream-info.deps.ungoogled-patches) rev sha256;
|
||||||
};
|
};
|
||||||
@ -136,12 +124,20 @@ let
|
|||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
ninja pkg-config
|
ninja pkg-config
|
||||||
python2WithPackages python3WithPackages perl nodejs
|
python2WithPackages python3WithPackages perl
|
||||||
gnutar which
|
gnutar which
|
||||||
llvmPackages.bintools
|
llvmPackages.bintools
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = defaultDependencies ++ [
|
buildInputs = [
|
||||||
|
(libpng.override { apngSupport = false; }) # https://bugs.chromium.org/p/chromium/issues/detail?id=752403
|
||||||
|
bzip2 flac speex opusWithCustomModes
|
||||||
|
libevent expat libjpeg snappy
|
||||||
|
libcap
|
||||||
|
xdg-utils minizip libwebp
|
||||||
|
libusb1 re2
|
||||||
|
ffmpeg libxslt libxml2
|
||||||
|
nasm
|
||||||
nspr nss systemd
|
nspr nss systemd
|
||||||
util-linux alsa-lib
|
util-linux alsa-lib
|
||||||
bison gperf libkrb5
|
bison gperf libkrb5
|
||||||
@ -153,24 +149,19 @@ let
|
|||||||
libva
|
libva
|
||||||
libdrm wayland mesa.drivers libxkbcommon
|
libdrm wayland mesa.drivers libxkbcommon
|
||||||
curl
|
curl
|
||||||
] ++ optional gnomeKeyringSupport libgnome-keyring3
|
] ++ optionals gnomeSupport [ gnome2.GConf libgcrypt ]
|
||||||
++ optionals gnomeSupport [ gnome2.GConf libgcrypt ]
|
++ optional gnomeKeyringSupport libgnome-keyring3
|
||||||
++ optionals cupsSupport [ libgcrypt cups ]
|
++ optionals cupsSupport [ libgcrypt cups ]
|
||||||
++ optional pulseSupport libpulseaudio;
|
++ optional pulseSupport libpulseaudio;
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./patches/no-build-timestamps.patch # Optional patch to use SOURCE_DATE_EPOCH in compute_build_timestamp.py (should be upstreamed)
|
# Optional patch to use SOURCE_DATE_EPOCH in compute_build_timestamp.py (should be upstreamed):
|
||||||
./patches/widevine-79.patch # For bundling Widevine (DRM), might be replaceable via bundle_widevine_cdm=true in gnFlags
|
./patches/no-build-timestamps.patch
|
||||||
|
# For bundling Widevine (DRM), might be replaceable via bundle_widevine_cdm=true in gnFlags:
|
||||||
|
./patches/widevine-79.patch
|
||||||
|
] ++ lib.optionals (versionRange "91" "94") [
|
||||||
# Fix the build by adding a missing dependency (s. https://crbug.com/1197837):
|
# Fix the build by adding a missing dependency (s. https://crbug.com/1197837):
|
||||||
./patches/fix-missing-atspi2-dependency.patch
|
./patches/fix-missing-atspi2-dependency.patch
|
||||||
] ++ lib.optionals (chromiumVersionAtLeast "93") [
|
|
||||||
# We need to revert this patch to build M93 with LLVM 12.
|
|
||||||
(githubPatch {
|
|
||||||
# Reland "Replace 'blacklist' with 'ignorelist' in ./tools/msan/."
|
|
||||||
commit = "9d080c0934b848ee4a05013c78641e612fcc1e03";
|
|
||||||
sha256 = "1bxdhxmiy6h4acq26lq43x2mxx6rawmfmlgsh5j7w8kyhkw5af0c";
|
|
||||||
revert = true;
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -226,8 +217,8 @@ let
|
|||||||
patchShebangs .
|
patchShebangs .
|
||||||
# Link to our own Node.js and Java (required during the build):
|
# Link to our own Node.js and Java (required during the build):
|
||||||
mkdir -p third_party/node/linux/node-linux-x64/bin
|
mkdir -p third_party/node/linux/node-linux-x64/bin
|
||||||
ln -s "$(command -v node)" third_party/node/linux/node-linux-x64/bin/node
|
ln -s "${pkgsBuildHost.nodejs}/bin/node" third_party/node/linux/node-linux-x64/bin/node
|
||||||
ln -s "${jre8}/bin/java" third_party/jdk/current/bin/
|
ln -s "${pkgsBuildHost.jre8}/bin/java" third_party/jdk/current/bin/
|
||||||
|
|
||||||
# Allow building against system libraries in official builds
|
# Allow building against system libraries in official builds
|
||||||
sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' tools/generate_shim_headers/generate_shim_headers.py
|
sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' tools/generate_shim_headers/generate_shim_headers.py
|
||||||
@ -243,16 +234,28 @@ let
|
|||||||
|
|
||||||
gnFlags = mkGnFlags ({
|
gnFlags = mkGnFlags ({
|
||||||
# Main build and toolchain settings:
|
# Main build and toolchain settings:
|
||||||
|
# Create an official and optimized release build (only official builds
|
||||||
|
# should be distributed to users, as non-official builds are intended for
|
||||||
|
# development and may not be configured appropriately for production,
|
||||||
|
# e.g. unsafe developer builds have developer-friendly features that may
|
||||||
|
# weaken or disable security measures like sandboxing or ASLR):
|
||||||
is_official_build = true;
|
is_official_build = true;
|
||||||
|
# Build Chromium using the system toolchain (for Linux distributions):
|
||||||
custom_toolchain = "//build/toolchain/linux/unbundle:default";
|
custom_toolchain = "//build/toolchain/linux/unbundle:default";
|
||||||
host_toolchain = "//build/toolchain/linux/unbundle:default";
|
host_toolchain = "//build/toolchain/linux/unbundle:default";
|
||||||
|
# Don't build against a sysroot image downloaded from Cloud Storage:
|
||||||
use_sysroot = false;
|
use_sysroot = false;
|
||||||
|
# The default value is hardcoded instead of using pkg-config:
|
||||||
system_wayland_scanner_path = "${wayland}/bin/wayland-scanner";
|
system_wayland_scanner_path = "${wayland}/bin/wayland-scanner";
|
||||||
|
# Because we use a different toolchain / compiler version:
|
||||||
treat_warnings_as_errors = false;
|
treat_warnings_as_errors = false;
|
||||||
|
# We aren't compiling with Chrome's Clang (would enable Chrome-specific
|
||||||
|
# plugins for enforcing coding guidelines, etc.):
|
||||||
clang_use_chrome_plugins = false;
|
clang_use_chrome_plugins = false;
|
||||||
blink_symbol_level = 0;
|
# Disable symbols (they would negatively affect the performance of the
|
||||||
|
# build since the symbols are large and dealing with them is slow):
|
||||||
symbol_level = 0;
|
symbol_level = 0;
|
||||||
fieldtrial_testing_like_official_build = true;
|
blink_symbol_level = 0;
|
||||||
|
|
||||||
# Google API key, see: https://www.chromium.org/developers/how-tos/api-keys
|
# Google API key, see: https://www.chromium.org/developers/how-tos/api-keys
|
||||||
# Note: The API key is for NixOS/nixpkgs use ONLY.
|
# Note: The API key is for NixOS/nixpkgs use ONLY.
|
||||||
@ -260,9 +263,9 @@ let
|
|||||||
google_api_key = "AIzaSyDGi15Zwl11UNe6Y-5XW_upsfyw31qwZPI";
|
google_api_key = "AIzaSyDGi15Zwl11UNe6Y-5XW_upsfyw31qwZPI";
|
||||||
|
|
||||||
# Optional features:
|
# Optional features:
|
||||||
use_cups = cupsSupport;
|
|
||||||
use_gio = gnomeSupport;
|
use_gio = gnomeSupport;
|
||||||
use_gnome_keyring = gnomeKeyringSupport;
|
use_gnome_keyring = gnomeKeyringSupport;
|
||||||
|
use_cups = cupsSupport;
|
||||||
|
|
||||||
# Feature overrides:
|
# Feature overrides:
|
||||||
# Native Client support was deprecated in 2020 and support will end in June 2021:
|
# Native Client support was deprecated in 2020 and support will end in June 2021:
|
||||||
@ -273,6 +276,10 @@ let
|
|||||||
enable_widevine = true;
|
enable_widevine = true;
|
||||||
# Provides the enable-webrtc-pipewire-capturer flag to support Wayland screen capture:
|
# Provides the enable-webrtc-pipewire-capturer flag to support Wayland screen capture:
|
||||||
rtc_use_pipewire = true;
|
rtc_use_pipewire = true;
|
||||||
|
} // optionalAttrs (!chromiumVersionAtLeast "94") {
|
||||||
|
fieldtrial_testing_like_official_build = true;
|
||||||
|
} // optionalAttrs (chromiumVersionAtLeast "94") {
|
||||||
|
disable_fieldtrial_testing_config = true;
|
||||||
} // optionalAttrs proprietaryCodecs {
|
} // optionalAttrs proprietaryCodecs {
|
||||||
# enable support for the H.264 codec
|
# enable support for the H.264 codec
|
||||||
proprietary_codecs = true;
|
proprietary_codecs = true;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ newScope, config, stdenv, fetchurl, makeWrapper
|
{ newScope, config, stdenv, fetchurl, makeWrapper
|
||||||
, llvmPackages_11, llvmPackages_12, ed, gnugrep, coreutils, xdg-utils
|
, llvmPackages_12, llvmPackages_13, ed, gnugrep, coreutils, xdg-utils
|
||||||
, glib, gtk3, gnome, gsettings-desktop-schemas, gn, fetchgit
|
, glib, gtk3, gnome, gsettings-desktop-schemas, gn, fetchgit
|
||||||
, libva, pipewire, wayland
|
, libva, pipewire, wayland
|
||||||
, gcc, nspr, nss, runCommand
|
, gcc, nspr, nss, runCommand
|
||||||
@ -19,18 +19,34 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
llvmPackages = llvmPackages_11;
|
llvmPackages = llvmPackages_12;
|
||||||
stdenv = llvmPackages.stdenv;
|
stdenv = llvmPackages.stdenv;
|
||||||
|
|
||||||
|
upstream-info = (lib.importJSON ./upstream-info.json).${channel};
|
||||||
|
|
||||||
|
# Helper functions for changes that depend on specific versions:
|
||||||
|
warnObsoleteVersionConditional = min-version: result:
|
||||||
|
let ungoogled-version = (lib.importJSON ./upstream-info.json).ungoogled-chromium.version;
|
||||||
|
in lib.warnIf
|
||||||
|
(lib.versionAtLeast ungoogled-version min-version)
|
||||||
|
"chromium: ungoogled version ${ungoogled-version} is newer than a conditional bounded at ${min-version}. You can safely delete it."
|
||||||
|
result;
|
||||||
|
chromiumVersionAtLeast = min-version:
|
||||||
|
let result = lib.versionAtLeast upstream-info.version min-version;
|
||||||
|
in warnObsoleteVersionConditional min-version result;
|
||||||
|
versionRange = min-version: upto-version:
|
||||||
|
let inherit (upstream-info) version;
|
||||||
|
result = lib.versionAtLeast version min-version && lib.versionOlder version upto-version;
|
||||||
|
in warnObsoleteVersionConditional upto-version result;
|
||||||
|
|
||||||
callPackage = newScope chromium;
|
callPackage = newScope chromium;
|
||||||
|
|
||||||
chromium = rec {
|
chromium = rec {
|
||||||
inherit stdenv llvmPackages;
|
inherit stdenv llvmPackages upstream-info;
|
||||||
|
|
||||||
upstream-info = (lib.importJSON ./upstream-info.json).${channel};
|
|
||||||
|
|
||||||
mkChromiumDerivation = callPackage ./common.nix ({
|
mkChromiumDerivation = callPackage ./common.nix ({
|
||||||
inherit channel gnome2 gnomeSupport gnomeKeyringSupport proprietaryCodecs
|
inherit channel chromiumVersionAtLeast versionRange;
|
||||||
|
inherit gnome2 gnomeSupport gnomeKeyringSupport proprietaryCodecs
|
||||||
cupsSupport pulseSupport ungoogled;
|
cupsSupport pulseSupport ungoogled;
|
||||||
gnChromium = gn.overrideAttrs (oldAttrs: {
|
gnChromium = gn.overrideAttrs (oldAttrs: {
|
||||||
inherit (upstream-info.deps.gn) version;
|
inherit (upstream-info.deps.gn) version;
|
||||||
@ -38,12 +54,14 @@ let
|
|||||||
inherit (upstream-info.deps.gn) url rev sha256;
|
inherit (upstream-info.deps.gn) url rev sha256;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
} // lib.optionalAttrs (lib.versionAtLeast upstream-info.version "90") {
|
} // lib.optionalAttrs (chromiumVersionAtLeast "93") rec {
|
||||||
llvmPackages = llvmPackages_12;
|
llvmPackages = llvmPackages_13;
|
||||||
stdenv = llvmPackages_12.stdenv;
|
stdenv = llvmPackages.stdenv;
|
||||||
});
|
});
|
||||||
|
|
||||||
browser = callPackage ./browser.nix { inherit channel enableWideVine ungoogled; };
|
browser = callPackage ./browser.nix {
|
||||||
|
inherit channel chromiumVersionAtLeast enableWideVine ungoogled;
|
||||||
|
};
|
||||||
|
|
||||||
ungoogled-chromium = callPackage ./ungoogled.nix {};
|
ungoogled-chromium = callPackage ./ungoogled.nix {};
|
||||||
};
|
};
|
||||||
|
@ -18,28 +18,28 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"beta": {
|
"beta": {
|
||||||
"version": "93.0.4577.18",
|
"version": "94.0.4606.31",
|
||||||
"sha256": "1h1ppyizj5vbnrv11iy9vlcpcv8mgb9r8m2zmz6vp7q1ch6w0w4x",
|
"sha256": "1f5hk2acd9lj88m2acz8ik85fh5h3giz65p19dpfg92zsyly54nf",
|
||||||
"sha256bin64": "1s5qj0pd79qbchq3awhxc86l9vmi6304z7sd9ls9f8q138789cha",
|
"sha256bin64": "1ypf9j51a4kmx27x3s9izzbd2r094idz194gwhbdly75l1x8hk4z",
|
||||||
"deps": {
|
"deps": {
|
||||||
"gn": {
|
"gn": {
|
||||||
"version": "2021-07-08",
|
"version": "2021-08-11",
|
||||||
"url": "https://gn.googlesource.com/gn",
|
"url": "https://gn.googlesource.com/gn",
|
||||||
"rev": "24e2f7df92641de0351a96096fb2c490b2436bb8",
|
"rev": "69ec4fca1fa69ddadae13f9e6b7507efa0675263",
|
||||||
"sha256": "1lwkyhfhw0zd7daqz466n7x5cddf0danr799h4jg3s0yvd4galjl"
|
"sha256": "031znmkbm504iim5jvg3gmazj4qnkfc7zg8aymjsij18fhf7piz0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dev": {
|
"dev": {
|
||||||
"version": "94.0.4595.0",
|
"version": "95.0.4628.3",
|
||||||
"sha256": "0ksd7vqpbiplbg2xpm566z7p7qp57r27a3pk6ss1qz8v18490092",
|
"sha256": "04r2db9kl77lp4jyyj01pc70jkxrifbnz5hic4r91lf8m2gf1fa3",
|
||||||
"sha256bin64": "1kibyhgwcgby3hnhjdg2vrgbj4dvvbicqlcj4id9761zw1jhz8r4",
|
"sha256bin64": "1ssf8jdk6gn2mrnyvgz2c9nkk70rsidd5y26w2kx3s0cllfr7d96",
|
||||||
"deps": {
|
"deps": {
|
||||||
"gn": {
|
"gn": {
|
||||||
"version": "2021-07-31",
|
"version": "2021-08-11",
|
||||||
"url": "https://gn.googlesource.com/gn",
|
"url": "https://gn.googlesource.com/gn",
|
||||||
"rev": "eea3906f0e2a8d3622080127d2005ff214d51383",
|
"rev": "69ec4fca1fa69ddadae13f9e6b7507efa0675263",
|
||||||
"sha256": "1wc969jrivb502c45wdcbgh0c5888nqxla05is9bimkrk9rqppw3"
|
"sha256": "031znmkbm504iim5jvg3gmazj4qnkfc7zg8aymjsij18fhf7piz0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -75,6 +75,10 @@ let
|
|||||||
|
|
||||||
suffix = if channel != "stable" then "-" + channel else "";
|
suffix = if channel != "stable" then "-" + channel else "";
|
||||||
|
|
||||||
|
crashpadHandlerBinary = if lib.versionAtLeast version "94"
|
||||||
|
then "chrome_crashpad_handler"
|
||||||
|
else "crashpad_handler";
|
||||||
|
|
||||||
in stdenv.mkDerivation {
|
in stdenv.mkDerivation {
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
@ -146,7 +150,7 @@ in stdenv.mkDerivation {
|
|||||||
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \
|
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \
|
||||||
--add-flags ${escapeShellArg commandLineArgs}
|
--add-flags ${escapeShellArg commandLineArgs}
|
||||||
|
|
||||||
for elf in $out/share/google/$appname/{chrome,chrome-sandbox,crashpad_handler,nacl_helper}; do
|
for elf in $out/share/google/$appname/{chrome,chrome-sandbox,${crashpadHandlerBinary},nacl_helper}; do
|
||||||
patchelf --set-rpath $rpath $elf
|
patchelf --set-rpath $rpath $elf
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $elf
|
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $elf
|
||||||
done
|
done
|
||||||
|
@ -21,11 +21,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "mc";
|
pname = "mc";
|
||||||
version = "4.8.26";
|
version = "4.8.27";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.midnight-commander.org/downloads/${pname}-${version}.tar.xz";
|
url = "https://www.midnight-commander.org/downloads/${pname}-${version}.tar.xz";
|
||||||
sha256 = "sha256-xt6txQWV8tmiLcbCmanyizk+NYNG6/bKREqEadwWbCc=";
|
sha256 = "sha256-Mb5ZIl/6mSCBbpqLO+CrIloW0Z5Pr0aJDyW9/6AqT/Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config autoreconfHook unzip ]
|
nativeBuildInputs = [ pkg-config autoreconfHook unzip ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user