Merge master into staging-next
This commit is contained in:
commit
faad8493f7
@ -82,6 +82,5 @@ mkChromiumDerivation (base: rec {
|
|||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
hydraPlatforms = if channel == "stable" then ["aarch64-linux" "x86_64-linux"] else [];
|
hydraPlatforms = if channel == "stable" then ["aarch64-linux" "x86_64-linux"] else [];
|
||||||
timeout = 172800; # 48 hours (increased from the Hydra default of 10h)
|
timeout = 172800; # 48 hours (increased from the Hydra default of 10h)
|
||||||
broken = channel == "dev"; # Blocked on https://bugs.chromium.org/p/chromium/issues/detail?id=1141896
|
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
@ -18,20 +18,14 @@
|
|||||||
, ffmpeg, libxslt, libxml2, at-spi2-core
|
, ffmpeg, libxslt, libxml2, at-spi2-core
|
||||||
, jre8
|
, jre8
|
||||||
, pipewire_0_2
|
, pipewire_0_2
|
||||||
|
, libva
|
||||||
|
|
||||||
# optional dependencies
|
# optional dependencies
|
||||||
, libgcrypt ? null # gnomeSupport || cupsSupport
|
, libgcrypt ? null # gnomeSupport || cupsSupport
|
||||||
, libva ? null # useVaapi
|
|
||||||
, libdrm ? null, wayland ? null, mesa ? null, libxkbcommon ? null # useOzone
|
, libdrm ? null, wayland ? null, mesa ? null, libxkbcommon ? null # useOzone
|
||||||
|
|
||||||
# package customization
|
# package customization
|
||||||
, useOzone ? false
|
, useOzone ? true
|
||||||
, useVaapi ? !(useOzone || stdenv.isAarch64) # Built if supported, but disabled in the wrapper
|
|
||||||
# VA-API TODOs:
|
|
||||||
# - Ozone: M81 fails to build due to "ozone_platform_gbm = false"
|
|
||||||
# - Possible solutions: Write a patch to fix the build (wrong gn dependencies)
|
|
||||||
# or build with minigbm
|
|
||||||
# - AArch64: Causes serious regressions (https://github.com/NixOS/nixpkgs/pull/85253#issuecomment-614405879)
|
|
||||||
, gnomeSupport ? false, gnome ? null
|
, gnomeSupport ? false, gnome ? null
|
||||||
, gnomeKeyringSupport ? false, libgnome-keyring3 ? null
|
, gnomeKeyringSupport ? false, libgnome-keyring3 ? null
|
||||||
, proprietaryCodecs ? true
|
, proprietaryCodecs ? true
|
||||||
@ -148,8 +142,8 @@ let
|
|||||||
pciutils protobuf speechd libXdamage at-spi2-core
|
pciutils protobuf speechd libXdamage at-spi2-core
|
||||||
jre
|
jre
|
||||||
pipewire_0_2
|
pipewire_0_2
|
||||||
] ++ optional useVaapi libva
|
libva
|
||||||
++ optional gnomeKeyringSupport libgnome-keyring3
|
] ++ optional gnomeKeyringSupport libgnome-keyring3
|
||||||
++ optionals gnomeSupport [ gnome.GConf libgcrypt ]
|
++ optionals gnomeSupport [ gnome.GConf libgcrypt ]
|
||||||
++ optionals cupsSupport [ libgcrypt cups ]
|
++ optionals cupsSupport [ libgcrypt cups ]
|
||||||
++ optional pulseSupport libpulseaudio
|
++ optional pulseSupport libpulseaudio
|
||||||
@ -159,9 +153,6 @@ let
|
|||||||
./patches/no-build-timestamps.patch # Optional patch to use SOURCE_DATE_EPOCH in compute_build_timestamp.py (should be upstreamed)
|
./patches/no-build-timestamps.patch # 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/widevine-79.patch # For bundling Widevine (DRM), might be replaceable via bundle_widevine_cdm=true in gnFlags
|
||||||
# ++ optional (versionRange "68" "72") ( githubPatch "<patch>" "0000000000000000000000000000000000000000000000000000000000000000" )
|
# ++ optional (versionRange "68" "72") ( githubPatch "<patch>" "0000000000000000000000000000000000000000000000000000000000000000" )
|
||||||
] ++ optionals (useVaapi && versionRange "86" "87") [
|
|
||||||
# Check for enable-accelerated-video-decode on Linux:
|
|
||||||
(githubPatch "54deb9811ca9bd2327def5c05ba6987b8c7a0897" "11jvxjlkzz1hm0pvfyr88j7z3zbwzplyl5idkx92l2lzv4459c8d")
|
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -234,9 +225,8 @@ let
|
|||||||
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";
|
||||||
is_official_build = true;
|
is_official_build = true;
|
||||||
is_debug = false;
|
|
||||||
|
|
||||||
proprietary_codecs = false;
|
use_vaapi = !stdenv.isAarch64; # TODO: Remove once M88 is released
|
||||||
use_sysroot = false;
|
use_sysroot = false;
|
||||||
use_gnome_keyring = gnomeKeyringSupport;
|
use_gnome_keyring = gnomeKeyringSupport;
|
||||||
use_gio = gnomeSupport;
|
use_gio = gnomeSupport;
|
||||||
@ -252,7 +242,6 @@ let
|
|||||||
rtc_use_pipewire = true;
|
rtc_use_pipewire = true;
|
||||||
|
|
||||||
treat_warnings_as_errors = false;
|
treat_warnings_as_errors = false;
|
||||||
is_clang = stdenv.cc.isClang;
|
|
||||||
clang_use_chrome_plugins = false;
|
clang_use_chrome_plugins = false;
|
||||||
blink_symbol_level = 0;
|
blink_symbol_level = 0;
|
||||||
symbol_level = 0;
|
symbol_level = 0;
|
||||||
@ -270,14 +259,11 @@ let
|
|||||||
proprietary_codecs = true;
|
proprietary_codecs = true;
|
||||||
enable_hangout_services_extension = true;
|
enable_hangout_services_extension = true;
|
||||||
ffmpeg_branding = "Chrome";
|
ffmpeg_branding = "Chrome";
|
||||||
} // optionalAttrs useVaapi {
|
|
||||||
use_vaapi = true;
|
|
||||||
} // optionalAttrs pulseSupport {
|
} // optionalAttrs pulseSupport {
|
||||||
use_pulseaudio = true;
|
use_pulseaudio = true;
|
||||||
link_pulseaudio = true;
|
link_pulseaudio = true;
|
||||||
} // optionalAttrs useOzone {
|
} // optionalAttrs useOzone {
|
||||||
use_ozone = true;
|
use_ozone = true;
|
||||||
ozone_platform_gbm = false;
|
|
||||||
use_xkbcommon = true;
|
use_xkbcommon = true;
|
||||||
use_glib = true;
|
use_glib = true;
|
||||||
use_gtk = true;
|
use_gtk = true;
|
||||||
@ -286,6 +272,7 @@ let
|
|||||||
use_system_libdrm = true;
|
use_system_libdrm = true;
|
||||||
system_wayland_scanner_path = "${wayland}/bin/wayland-scanner";
|
system_wayland_scanner_path = "${wayland}/bin/wayland-scanner";
|
||||||
} // optionalAttrs ungoogled {
|
} // optionalAttrs ungoogled {
|
||||||
|
chrome_pgo_phase = 0;
|
||||||
enable_hangout_services_extension = false;
|
enable_hangout_services_extension = false;
|
||||||
enable_js_type_check = false;
|
enable_js_type_check = false;
|
||||||
enable_mdns = false;
|
enable_mdns = false;
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
, enableWideVine ? false
|
, enableWideVine ? false
|
||||||
, enableVaapi ? false # Disabled by default due to unofficial support
|
, enableVaapi ? false # Disabled by default due to unofficial support
|
||||||
, ungoogled ? true
|
, ungoogled ? true
|
||||||
, useOzone ? false
|
|
||||||
, cupsSupport ? true
|
, cupsSupport ? true
|
||||||
, pulseSupport ? config.pulseaudio or stdenv.isLinux
|
, pulseSupport ? config.pulseaudio or stdenv.isLinux
|
||||||
, commandLineArgs ? ""
|
, commandLineArgs ? ""
|
||||||
@ -35,7 +34,7 @@ let
|
|||||||
|
|
||||||
mkChromiumDerivation = callPackage ./common.nix ({
|
mkChromiumDerivation = callPackage ./common.nix ({
|
||||||
inherit channel gnome gnomeSupport gnomeKeyringSupport proprietaryCodecs
|
inherit channel gnome gnomeSupport gnomeKeyringSupport proprietaryCodecs
|
||||||
cupsSupport pulseSupport useOzone;
|
cupsSupport pulseSupport;
|
||||||
inherit ungoogled;
|
inherit ungoogled;
|
||||||
gnChromium = gn.overrideAttrs (oldAttrs: {
|
gnChromium = gn.overrideAttrs (oldAttrs: {
|
||||||
inherit (upstream-info.deps.gn) version;
|
inherit (upstream-info.deps.gn) version;
|
||||||
@ -43,9 +42,6 @@ let
|
|||||||
inherit (upstream-info.deps.gn) url rev sha256;
|
inherit (upstream-info.deps.gn) url rev sha256;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
} // lib.optionalAttrs (lib.versionAtLeast upstream-info.version "87") {
|
|
||||||
useOzone = true; # YAY: https://chromium-review.googlesource.com/c/chromium/src/+/2382834 \o/
|
|
||||||
useVaapi = !stdenv.isAarch64; # TODO: Might be best to not set use_vaapi anymore (default is fine)
|
|
||||||
});
|
});
|
||||||
|
|
||||||
browser = callPackage ./browser.nix { inherit channel enableWideVine; };
|
browser = callPackage ./browser.nix { inherit channel enableWideVine; };
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"86.0.4240.183" = {
|
"87.0.4280.88" = {
|
||||||
rev = "86.0.4240.183-1";
|
rev = "87.0.4280.88-1";
|
||||||
sha256 = "0528l2wr5bpl1cwsxzl5zxz1gw91kffkh5j1kzmc5n7m4mscqxyc";
|
sha256 = "0w2137w8hfcgl6f938hqnb4ffp33v5r8vdzxrvs814w7dszkiqgg";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,20 @@ def get_file_revision(revision, file_path):
|
|||||||
with urlopen(url) as http_response:
|
with urlopen(url) as http_response:
|
||||||
return http_response.read()
|
return http_response.read()
|
||||||
|
|
||||||
|
def get_matching_chromedriver(version):
|
||||||
|
# See https://chromedriver.chromium.org/downloads/version-selection
|
||||||
|
build = re.sub('.[0-9]+$', '', version)
|
||||||
|
chromedriver_version_url = f'https://chromedriver.storage.googleapis.com/LATEST_RELEASE_{build}'
|
||||||
|
with urlopen(chromedriver_version_url) as http_response:
|
||||||
|
chromedriver_version = http_response.read().decode()
|
||||||
|
def get_chromedriver_url(system):
|
||||||
|
return f'https://chromedriver.storage.googleapis.com/{chromedriver_version}/chromedriver_{system}.zip'
|
||||||
|
return {
|
||||||
|
'version': chromedriver_version,
|
||||||
|
'sha256_linux': nix_prefetch_url(get_chromedriver_url('linux64')),
|
||||||
|
'sha256_darwin': nix_prefetch_url(get_chromedriver_url('mac64'))
|
||||||
|
}
|
||||||
|
|
||||||
def get_channel_dependencies(channel):
|
def get_channel_dependencies(channel):
|
||||||
deps = get_file_revision(channel['version'], 'DEPS')
|
deps = get_file_revision(channel['version'], 'DEPS')
|
||||||
gn_pattern = b"'gn_version': 'git_revision:([0-9a-f]{40})'"
|
gn_pattern = b"'gn_version': 'git_revision:([0-9a-f]{40})'"
|
||||||
@ -85,6 +99,8 @@ with urlopen(HISTORY_URL) as resp:
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
channel['deps'] = get_channel_dependencies(channel)
|
channel['deps'] = get_channel_dependencies(channel)
|
||||||
|
if channel_name == 'stable':
|
||||||
|
channel['chromedriver'] = get_matching_chromedriver(channel['version'])
|
||||||
|
|
||||||
channels[channel_name] = channel
|
channels[channel_name] = channel
|
||||||
|
|
||||||
|
@ -1,21 +1,8 @@
|
|||||||
{
|
{
|
||||||
"stable": {
|
"stable": {
|
||||||
"version": "86.0.4240.183",
|
"version": "87.0.4280.88",
|
||||||
"sha256": "1g39i82js7fm4fqb8i66d6xs0kzqjxzi4vzvvwz5y9rkbikcc4ma",
|
"sha256": "1h09g9b2zxad85vd146ymvg3w2kpngpi78yig3dn1vrmhwr4aiiy",
|
||||||
"sha256bin64": "1r0dxqsx6j19hgwr3v2sdlb2vd7gb961c4wba4ymd8wy8j8pzly9",
|
"sha256bin64": "0n3fm6wf8zfkv135d50xl8xxrnng3q55vyxkck1da8jyvh18bijb",
|
||||||
"deps": {
|
|
||||||
"gn": {
|
|
||||||
"version": "2020-08-07",
|
|
||||||
"url": "https://gn.googlesource.com/gn",
|
|
||||||
"rev": "e327ffdc503815916db2543ec000226a8df45163",
|
|
||||||
"sha256": "0kvlfj3www84zp1vmxh76x8fdjm9hyk8lkh2vdsidafpmm75fphr"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"beta": {
|
|
||||||
"version": "87.0.4280.40",
|
|
||||||
"sha256": "07xh76fl257np68way6i5rf64qbvirkfddy7m5gvqb0fzcqd7dp3",
|
|
||||||
"sha256bin64": "1b2z0aqlh28pqrk6dmabxp1d4mvp9iyfmi4kqmns4cdpg0qgaf41",
|
|
||||||
"deps": {
|
"deps": {
|
||||||
"gn": {
|
"gn": {
|
||||||
"version": "2020-09-09",
|
"version": "2020-09-09",
|
||||||
@ -23,18 +10,36 @@
|
|||||||
"rev": "e002e68a48d1c82648eadde2f6aafa20d08c36f2",
|
"rev": "e002e68a48d1c82648eadde2f6aafa20d08c36f2",
|
||||||
"sha256": "0x4c7amxwzxs39grqs3dnnz0531mpf1p75niq7zhinyfqm86i4dk"
|
"sha256": "0x4c7amxwzxs39grqs3dnnz0531mpf1p75niq7zhinyfqm86i4dk"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"chromedriver": {
|
||||||
|
"version": "87.0.4280.88",
|
||||||
|
"sha256_linux": "141mr2jiy3nslwd3s43m4i6plkv9wv5fgi78cn7mz0ac9x6fpcgx",
|
||||||
|
"sha256_darwin": "048hsqp6575r980m769lzznvxypmfcwn89f1d3ik751ymzmb5r78"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"beta": {
|
||||||
|
"version": "88.0.4324.27",
|
||||||
|
"sha256": "0mciiyh3sn2zrl8g6znylc2pm9sb0wzsclgavf7mmlknri5sjblc",
|
||||||
|
"sha256bin64": "0qf2j1j3p94s724rwh8fydpjn88cs9yxxhjf5axvqwi7q3h35cfx",
|
||||||
|
"deps": {
|
||||||
|
"gn": {
|
||||||
|
"version": "2020-11-05",
|
||||||
|
"url": "https://gn.googlesource.com/gn",
|
||||||
|
"rev": "53d92014bf94c3893886470a1c7c1289f8818db0",
|
||||||
|
"sha256": "1xcm07qjk6m2czi150fiqqxql067i832adck6zxrishm70c9jbr9"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dev": {
|
"dev": {
|
||||||
"version": "88.0.4300.0",
|
"version": "89.0.4343.0",
|
||||||
"sha256": "00cfs2rp4h8ybn2snr1d8ygg635hx7q5gv2aqriy1j6f8a1pgh1b",
|
"sha256": "0jmc1l0lysl5zax98fjhzsfq3c1sqh3n3xscidafflx362wcfpwa",
|
||||||
"sha256bin64": "110r1m14h91212nx6pfhn8wkics7wlwx1608l5cqsxxcpvpzl3pv",
|
"sha256bin64": "1v6xik8kf531y0g5xj0c8szjmak0qvh77kwkw7p7hqxqmnwwp06d",
|
||||||
"deps": {
|
"deps": {
|
||||||
"gn": {
|
"gn": {
|
||||||
"version": "2020-09-09",
|
"version": "2020-11-05",
|
||||||
"url": "https://gn.googlesource.com/gn",
|
"url": "https://gn.googlesource.com/gn",
|
||||||
"rev": "e002e68a48d1c82648eadde2f6aafa20d08c36f2",
|
"rev": "53d92014bf94c3893886470a1c7c1289f8818db0",
|
||||||
"sha256": "0x4c7amxwzxs39grqs3dnnz0531mpf1p75niq7zhinyfqm86i4dk"
|
"sha256": "1xcm07qjk6m2czi150fiqqxql067i832adck6zxrishm70c9jbr9"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
"name": "element-desktop",
|
"name": "element-desktop",
|
||||||
"productName": "Element",
|
"productName": "Element",
|
||||||
"main": "src/electron-main.js",
|
"main": "src/electron-main.js",
|
||||||
"version": "1.7.14",
|
"version": "1.7.15",
|
||||||
"description": "A feature-rich client for Matrix.org",
|
"description": "A feature-rich client for Matrix.org",
|
||||||
"author": "Element",
|
"author": "Element",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/vector-im/riot-desktop"
|
"url": "https://github.com/vector-im/element-desktop"
|
||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"files": [],
|
"files": [],
|
||||||
@ -21,7 +21,7 @@
|
|||||||
"build32": "electron-builder --ia32",
|
"build32": "electron-builder --ia32",
|
||||||
"build64": "electron-builder --x64",
|
"build64": "electron-builder --x64",
|
||||||
"build": "electron-builder",
|
"build": "electron-builder",
|
||||||
"docker:setup": "docker build -t riot-desktop-dockerbuild dockerbuild",
|
"docker:setup": "docker build -t element-desktop-dockerbuild dockerbuild",
|
||||||
"docker:build:native": "scripts/in-docker.sh yarn run hak",
|
"docker:build:native": "scripts/in-docker.sh yarn run hak",
|
||||||
"docker:build": "scripts/in-docker.sh yarn run build",
|
"docker:build": "scripts/in-docker.sh yarn run build",
|
||||||
"docker:install": "scripts/in-docker.sh yarn install",
|
"docker:install": "scripts/in-docker.sh yarn install",
|
||||||
@ -62,7 +62,7 @@
|
|||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"appId": "im.riot.app",
|
"appId": "im.riot.app",
|
||||||
"electronVersion": "10.1.3",
|
"electronVersion": "10.1.6",
|
||||||
"files": [
|
"files": [
|
||||||
"package.json",
|
"package.json",
|
||||||
{
|
{
|
||||||
|
@ -8,12 +8,12 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
executableName = "element-desktop";
|
executableName = "element-desktop";
|
||||||
version = "1.7.14";
|
version = "1.7.15";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "vector-im";
|
owner = "vector-im";
|
||||||
repo = "riot-desktop";
|
repo = "element-desktop";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "04zqvj7n803dwp4jkhiihhynp82birb14vamm6ys39a0zgs91cnv";
|
sha256 = "sha256-7kWf8MXSB4/sX1bjMsfkzgzElS/AYu5VHAKGcqgvH54=";
|
||||||
};
|
};
|
||||||
electron = electron_9;
|
electron = electron_9;
|
||||||
|
|
||||||
|
@ -12,11 +12,11 @@ let
|
|||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
pname = "element-web";
|
pname = "element-web";
|
||||||
version = "1.7.14";
|
version = "1.7.15";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/vector-im/riot-web/releases/download/v${version}/riot-v${version}.tar.gz";
|
url = "https://github.com/vector-im/element-web/releases/download/v${version}/element-v${version}.tar.gz";
|
||||||
sha256 = "1wyk1si0dmlcskf25zmbijpz6505yzjxa7pvd3g2k9kxc49vi20j";
|
sha256 = "sha256-ZSi0OLA5dyPXn1NlZkkhCmWhrSryfyj/O6Ux1lO12ns=";
|
||||||
};
|
};
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
@ -1,20 +1,27 @@
|
|||||||
{ callPackage, runCommandLocal, writeShellScriptBin, stdenv, coreutils, bubblewrap }:
|
{ lib, callPackage, runCommandLocal, writeShellScriptBin, stdenv, coreutils, bubblewrap }:
|
||||||
|
|
||||||
let buildFHSEnv = callPackage ./env.nix { }; in
|
|
||||||
|
|
||||||
args @ {
|
args @ {
|
||||||
name,
|
name
|
||||||
runScript ? "bash",
|
, runScript ? "bash"
|
||||||
extraInstallCommands ? "",
|
, extraInstallCommands ? ""
|
||||||
meta ? {},
|
, meta ? {}
|
||||||
passthru ? {},
|
, passthru ? {}
|
||||||
...
|
, unshareUser ? true
|
||||||
|
, unshareIpc ? true
|
||||||
|
, unsharePid ? true
|
||||||
|
, unshareNet ? false
|
||||||
|
, unshareUts ? true
|
||||||
|
, unshareCgroup ? true
|
||||||
|
, ...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with builtins;
|
with builtins;
|
||||||
let
|
let
|
||||||
|
buildFHSEnv = callPackage ./env.nix { };
|
||||||
|
|
||||||
env = buildFHSEnv (removeAttrs args [
|
env = buildFHSEnv (removeAttrs args [
|
||||||
"runScript" "extraInstallCommands" "meta" "passthru"
|
"runScript" "extraInstallCommands" "meta" "passthru"
|
||||||
|
"unshareUser" "unshareCgroup" "unshareUts" "unshareNet" "unsharePid" "unshareIpc"
|
||||||
]);
|
]);
|
||||||
|
|
||||||
chrootenv = callPackage ./chrootenv {};
|
chrootenv = callPackage ./chrootenv {};
|
||||||
@ -92,8 +99,12 @@ let
|
|||||||
--dev-bind /dev /dev
|
--dev-bind /dev /dev
|
||||||
--proc /proc
|
--proc /proc
|
||||||
--chdir "$(pwd)"
|
--chdir "$(pwd)"
|
||||||
--unshare-all
|
${lib.optionalString unshareUser "--unshare-user"}
|
||||||
--share-net
|
${lib.optionalString unshareIpc "--unshare-ipc"}
|
||||||
|
${lib.optionalString unsharePid "--unshare-pid"}
|
||||||
|
${lib.optionalString unshareNet "--unshare-net"}
|
||||||
|
${lib.optionalString unshareUts "--unshare-uts"}
|
||||||
|
${lib.optionalString unshareCgroup "--unshare-cgroup"}
|
||||||
--die-with-parent
|
--die-with-parent
|
||||||
--ro-bind /nix /nix
|
--ro-bind /nix /nix
|
||||||
${etcBindFlags}
|
${etcBindFlags}
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
, sha1 ? ""
|
, sha1 ? ""
|
||||||
, sha256 ? ""
|
, sha256 ? ""
|
||||||
, sha512 ? ""
|
, sha512 ? ""
|
||||||
|
, hash ? ""
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
@ -30,7 +31,7 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = url;
|
url = url;
|
||||||
inherit md5 sha1 sha256 sha512;
|
inherit md5 sha1 sha256 sha512 hash;
|
||||||
};
|
};
|
||||||
nativeBuildInputs = [ coreutils unzip zip jq ];
|
nativeBuildInputs = [ coreutils unzip zip jq ];
|
||||||
}
|
}
|
||||||
|
@ -5,13 +5,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "intel-media-driver";
|
pname = "intel-media-driver";
|
||||||
version = "20.4.2";
|
version = "20.4.3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "intel";
|
owner = "intel";
|
||||||
repo = "media-driver";
|
repo = "media-driver";
|
||||||
rev = "intel-media-${version}";
|
rev = "intel-media-${version}";
|
||||||
sha256 = "1nz0f2chfm3rr8aggb7md0cmikwpd9159ql1rc59208nvl2fshrb";
|
sha256 = "04a0hcw9f8fr96xpc1inc19mncssqzxmjba9cdvvh71n8j7n3yyw";
|
||||||
};
|
};
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
|
@ -23,11 +23,11 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "thinc";
|
pname = "thinc";
|
||||||
version = "7.4.3";
|
version = "7.4.4";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "c98491b083165f48bda95f5533f7d9dbd3980d32ad621bfe579ff08ef625a4d3";
|
sha256 = "08cf5cf7d70135db931c9f9d6f3b1844c53046c88f6072675fc164884f44c9e2";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "open-policy-agent";
|
pname = "open-policy-agent";
|
||||||
version = "0.25.1";
|
version = "0.25.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "open-policy-agent";
|
owner = "open-policy-agent";
|
||||||
repo = "opa";
|
repo = "opa";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1vwyp46lxjar7wl4qjj1mlii4c1vm65kwgmnf1kkwh8i4c202zkx";
|
sha256 = "0y4jd1dpq7cy9nfacpf5jbh705gmky44j78q32kq5v566lzrsvvp";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = null;
|
vendorSha256 = null;
|
||||||
|
@ -10,16 +10,16 @@ in
|
|||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "rustup";
|
pname = "rustup";
|
||||||
version = "1.22.1";
|
version = "1.23.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "rust-lang";
|
owner = "rust-lang";
|
||||||
repo = "rustup";
|
repo = "rustup";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0nf42pkyn87y0n93vd63bihx74h4bpisv74aqldg3vcav2iv35s1";
|
sha256 = "1i3ipkq6j47bf9dh9j3axzj6z443jm4j651g38cxyrrx8b2s15x0";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "0ghjrx7y25s6rjp06h0iyv4195x7daj57bqza01i1j4hm5nkhqhi";
|
cargoSha256 = "1zkrrg5m0j9rk65g51v2zh404529p9z84qqb7bfyjmgiqlnh48ig";
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper pkgconfig ];
|
nativeBuildInputs = [ makeWrapper pkgconfig ];
|
||||||
|
|
||||||
|
@ -1,17 +1,18 @@
|
|||||||
{ stdenv, fetchurl, boost, curl, ffmpeg, icoutils, libmad, libogg, libpng
|
{ stdenv, fetchurl, boost, curl, ffmpeg, icoutils, libGLU, libmad, libogg
|
||||||
, libsndfile, libvorbis, lua, pkgconfig, SDL, SDL_image, SDL_net, SDL_ttf, smpeg
|
, libpng, libsndfile, libvorbis, lua, pkgconfig, SDL2, SDL2_image, SDL2_net
|
||||||
, speex, zziplib, zlib, makeWrapper, makeDesktopItem, unzip, alephone }:
|
, SDL2_ttf, smpeg, speex, zziplib, zlib, makeWrapper, makeDesktopItem, unzip
|
||||||
|
, alephone }:
|
||||||
|
|
||||||
let
|
let
|
||||||
self = stdenv.mkDerivation rec {
|
self = stdenv.mkDerivation rec {
|
||||||
outputs = [ "out" "icons" ];
|
outputs = [ "out" "icons" ];
|
||||||
pname = "alephone";
|
pname = "alephone";
|
||||||
version = "20150620";
|
version = "1.3.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url =
|
url = let date = "20200904";
|
||||||
"https://github.com/Aleph-One-Marathon/alephone/releases/download/release-${version}/AlephOne-${version}.tar.bz2";
|
in "https://github.com/Aleph-One-Marathon/alephone/releases/download/release-${date}/AlephOne-${date}.tar.bz2";
|
||||||
sha256 = "0cz18fa3gx8mz5j09ywz8gq0r4q082kh6l9pbpwn8qjanzgn1wy0";
|
sha256 = "13ck3mp9qd5pkiq6zwvr744bwvmnqkgj5vpf325sz1mcvnv7l8lh";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig icoutils ];
|
nativeBuildInputs = [ pkgconfig icoutils ];
|
||||||
@ -20,16 +21,17 @@ let
|
|||||||
boost
|
boost
|
||||||
curl
|
curl
|
||||||
ffmpeg
|
ffmpeg
|
||||||
|
libGLU
|
||||||
libmad
|
libmad
|
||||||
libsndfile
|
libsndfile
|
||||||
libogg
|
libogg
|
||||||
libpng
|
libpng
|
||||||
libvorbis
|
libvorbis
|
||||||
lua
|
lua
|
||||||
SDL
|
SDL2
|
||||||
SDL_image
|
SDL2_image
|
||||||
SDL_net
|
SDL2_net
|
||||||
SDL_ttf
|
SDL2_ttf
|
||||||
smpeg
|
smpeg
|
||||||
speex
|
speex
|
||||||
zziplib
|
zziplib
|
||||||
|
@ -3,13 +3,13 @@
|
|||||||
alephone.makeWrapper rec {
|
alephone.makeWrapper rec {
|
||||||
pname = "marathon-infinity";
|
pname = "marathon-infinity";
|
||||||
desktopName = "Marathon-Infinity";
|
desktopName = "Marathon-Infinity";
|
||||||
version = "20190331";
|
version = "20200904";
|
||||||
icon = alephone.icons + "/marathon-infinity.png";
|
icon = alephone.icons + "/marathon-infinity.png";
|
||||||
|
|
||||||
zip = fetchurl {
|
zip = fetchurl {
|
||||||
url =
|
url =
|
||||||
"https://github.com/Aleph-One-Marathon/alephone/releases/download/release-${version}/MarathonInfinity-${version}-Data.zip";
|
"https://github.com/Aleph-One-Marathon/alephone/releases/download/release-${version}/MarathonInfinity-${version}-Data.zip";
|
||||||
sha256 = "03vn91arnsm71dakbfzrdfwpwh5vkwildl7i16xqi1apinmvvh86";
|
sha256 = "1n2zfiqjbakkk9dpnzfndqyvq3aml2kjrr2b1wm8g1n44nbc8clq";
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -35,6 +35,10 @@ let
|
|||||||
# Steam VR
|
# Steam VR
|
||||||
procps
|
procps
|
||||||
usbutils
|
usbutils
|
||||||
|
|
||||||
|
# electron based launchers need newer versions of these libraries than what runtime provides
|
||||||
|
mesa
|
||||||
|
sqlite
|
||||||
] ++ lib.optional withJava jdk8 # TODO: upgrade https://github.com/NixOS/nixpkgs/pull/89731
|
] ++ lib.optional withJava jdk8 # TODO: upgrade https://github.com/NixOS/nixpkgs/pull/89731
|
||||||
++ lib.optional withPrimus primus
|
++ lib.optional withPrimus primus
|
||||||
++ extraPkgs pkgs;
|
++ extraPkgs pkgs;
|
||||||
@ -175,7 +179,6 @@ in buildFHSUserEnv rec {
|
|||||||
libidn
|
libidn
|
||||||
tbb
|
tbb
|
||||||
wayland
|
wayland
|
||||||
mesa
|
|
||||||
libxkbcommon
|
libxkbcommon
|
||||||
|
|
||||||
# Other things from runtime
|
# Other things from runtime
|
||||||
@ -265,6 +268,10 @@ in buildFHSUserEnv rec {
|
|||||||
broken = nativeOnly;
|
broken = nativeOnly;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# allows for some gui applications to share IPC
|
||||||
|
# this fixes certain issues where they don't render correctly
|
||||||
|
unshareIpc = false;
|
||||||
|
|
||||||
passthru.run = buildFHSUserEnv {
|
passthru.run = buildFHSUserEnv {
|
||||||
name = "steam-run";
|
name = "steam-run";
|
||||||
|
|
||||||
|
@ -10,11 +10,11 @@ let
|
|||||||
in
|
in
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "matrix-synapse";
|
pname = "matrix-synapse";
|
||||||
version = "1.23.0";
|
version = "1.24.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "18an6nvxq2g21rq5ph3xlnkl75dmilcrz4ykdydz37hs09z6q1al";
|
sha256 = "sha256-yxcdFd7iVXbDIUx1lW73FKLy+BZfSspz60LKw7BCtl4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ callPackage, ... } @ args:
|
{ callPackage, ... } @ args:
|
||||||
|
|
||||||
callPackage ./generic.nix (args // {
|
callPackage ./generic.nix (args // {
|
||||||
version = "2.1.20";
|
version = "2.1.22";
|
||||||
sha256 = "0ik7a4jg3s3xnyrj1sa0rvbh066fv1y2202l7cv6nbca72pgyl6a";
|
sha256 = "1wk57dz0kmc6d5y8d8dkx269lzh3ark3751z734gxncwdlclcyz3";
|
||||||
})
|
})
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ callPackage, ... } @ args:
|
{ callPackage, ... } @ args:
|
||||||
|
|
||||||
callPackage ./generic.nix (args // {
|
callPackage ./generic.nix (args // {
|
||||||
version = "2.2.14";
|
version = "2.2.19";
|
||||||
sha256 = "1b2x3q1ach44qg07sh8wr7d8a10n36w5522drd3p35djbiwa3d9q";
|
sha256 = "1f8axpxxpmzlb22k3lqsnw3096qjp6xd36brvq5xbdk698jw15jl";
|
||||||
})
|
})
|
||||||
|
@ -2,16 +2,16 @@
|
|||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "routinator";
|
pname = "routinator";
|
||||||
version = "0.8.1";
|
version = "0.8.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "NLnetLabs";
|
owner = "NLnetLabs";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-yH43FPeMohN6zpzEcLpbFBvO8Wz4IjuWRmsE19C7NIA=";
|
sha256 = "sha256-rxCgW4cuYNSJ9P+cBYWAYJsghz2bp9mpAh6AuwLoV5o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "14cbkvcvbjgc308lh1yj0715rnl035r5qwvfsip17xk5j3y8w1xr";
|
cargoSha256 = "0fcp4b2b0mjddj4blr20gvp1ih3ldzzr04rm1m06i8d2lnl68i79";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "An RPKI Validator written in Rust";
|
description = "An RPKI Validator written in Rust";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user