Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8e3d1750f842
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c76deaef9caa
Choose a head ref
  • 11 commits
  • 8 files changed
  • 4 contributors

Commits on Dec 23, 2019

  1. blender: 2.81 -> 2.81a

    r-ryantm committed Dec 23, 2019

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    cole-h Cole Helbling
    Copy the full SHA
    dfa93d5 View commit details

Commits on Dec 24, 2019

  1. mixxx: 2.2.2 -> 2.2.3

    r-ryantm committed Dec 24, 2019
    Copy the full SHA
    a9d1209 View commit details
  2. nco: 4.9.0 -> 4.9.1

    r-ryantm committed Dec 24, 2019
    Copy the full SHA
    cbce288 View commit details
  3. palemoon: 28.7.2 -> 28.8.0

    r-ryantm committed Dec 24, 2019
    Copy the full SHA
    918ca56 View commit details
  4. Merge pull request #76346 from r-ryantm/auto-update/nco

    nco: 4.9.0 -> 4.9.1
    ryantm authored Dec 24, 2019
    Copy the full SHA
    26fd229 View commit details
  5. Merge pull request #76357 from r-ryantm/auto-update/palemoon

    palemoon: 28.7.2 -> 28.8.0
    ryantm authored Dec 24, 2019
    Copy the full SHA
    54ae894 View commit details
  6. Merge pull request #76339 from r-ryantm/auto-update/mixxx

    mixxx: 2.2.2 -> 2.2.3
    ryantm authored Dec 24, 2019
    Copy the full SHA
    eb4149f View commit details
  7. Merge pull request #76212 from r-ryantm/auto-update/blender

    blender: 2.81 -> 2.81a
    nh2 authored Dec 24, 2019
    Copy the full SHA
    826d61e View commit details
  8. crosvm.updateScript: use more stable update source

    It has been explained to me that cros-omahaproxy reports which
    versions are available to users, while cros-updates-serving reports
    the latest builds available for each channel.  The latter is probably
    better for our use case anyway, and apparently, while both aren't
    officially supported, is less likely to randomly break.
    
    So let's use that instead, even if it is much more annoying to parse.
    alyssais committed Dec 24, 2019
    Copy the full SHA
    7e683f6 View commit details
  9. Copy the full SHA
    0c62e73 View commit details
  10. crosvm: 77.12371.0.0-rc1 -> 79.12607.0.0-rc4

    Replaced src munging with a custom unpackPhase because the previous
    approach couldn't handle a newly introduced path with a space, and
    this is cleaner anyway (but was impossible at the time due to
    unpackPhase not being forwarded to fetchcargo).
    alyssais committed Dec 24, 2019
    Copy the full SHA
    c76deae View commit details
4 changes: 2 additions & 2 deletions pkgs/applications/audio/mixxx/default.nix
Original file line number Diff line number Diff line change
@@ -8,13 +8,13 @@

mkDerivation rec {
pname = "mixxx";
version = "2.2.2";
version = "2.2.3";

src = fetchFromGitHub {
owner = "mixxxdj";
repo = "mixxx";
rev = "release-${version}";
sha256 = "0dmkvcsgq7abxqd4wms8c4w0mr5c53z7n5r8jgzp4swz9nmfjpfg";
sha256 = "1h7q25fv62c5m74d4cn1m6mpanmqpbl2wqbch4qvn488jb2jw1dv";
};

buildInputs = [
4 changes: 2 additions & 2 deletions pkgs/applications/misc/blender/default.nix
Original file line number Diff line number Diff line change
@@ -16,11 +16,11 @@ let python = python3Packages.python; in

stdenv.mkDerivation rec {
pname = "blender";
version = "2.81";
version = "2.81a";

src = fetchurl {
url = "https://download.blender.org/source/${pname}-${version}.tar.xz";
sha256 = "1prp0f2152f1sz23jlc86vndfvmplb7qhllikkirq7hgpykrshna";
sha256 = "1zl0ar95qkxsrbqw9miz2hrjijlqjl06vg3clfk9rm7krr2l3b2j";
};

nativeBuildInputs = [ cmake ] ++ optional cudaSupport addOpenGLRunpath;
4 changes: 2 additions & 2 deletions pkgs/applications/networking/browsers/palemoon/default.nix
Original file line number Diff line number Diff line change
@@ -13,13 +13,13 @@ let

in stdenv.mkDerivation rec {
pname = "palemoon";
version = "28.7.2";
version = "28.8.0";

src = fetchFromGitHub {
owner = "MoonchildProductions";
repo = "UXP";
rev = "PM${version}_Release";
sha256 = "08w90269mwcqsdhx4vvp18c5iccvzqhaaw6aw7w0nppf2f2k8lri";
sha256 = "0swmwall8pyg905jnw6x1b6vcv92zb7ph3zqcymh4ay2liikh8c0";
};

desktopItem = makeDesktopItem {
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
diff --git a/src/main.rs b/src/main.rs
index 81f20a7..481ebd7 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -158,7 +158,9 @@ impl Default for Config {
wayland_dmabuf: false,
diff --git a/src/crosvm.rs b/src/crosvm.rs
index b7055df..5989c87 100644
--- a/src/crosvm.rs
+++ b/src/crosvm.rs
@@ -141,7 +141,9 @@ impl Default for Config {
x_display: None,
shared_dirs: Vec::new(),
sandbox: !cfg!(feature = "default-no-sandbox"),
- seccomp_policy_dir: PathBuf::from(SECCOMP_POLICY_DIR),
68 changes: 37 additions & 31 deletions pkgs/applications/virtualization/crosvm/default.nix
Original file line number Diff line number Diff line change
@@ -11,48 +11,49 @@ let
else if isx86_64 then "x86_64"
else throw "no seccomp policy files available for host platform";

# used to turn symlinks into real files because write permissions are necessary for the vendoring process
delink = src: runCommand "${src.name}-delinked" {
preferLocalBuild = true;
allowSubstitutes = false;
} ''
cp -prL --reflink=auto ${src} $out
'';

# used to place subtrees into the location they have in the Chromium monorepo
move = src: target: runCommand "moved-${src.name}" {
preferLocalBuild = true;
allowSubstitutes = false;
} ''
mkdir -p $(dirname $out/${target})
ln -s ${src} $out/${target}
'';

# used to check out subtrees from the Chromium monorepo
chromiumSource = name: subtrees: delink (symlinkJoin {
inherit name;
paths = stdenv.lib.mapAttrsToList (
location: { url, rev, sha256, fetchSubmodules, ... }:
move (fetchgit {
inherit url rev sha256 fetchSubmodules;
}) location) subtrees;
});
crosvmSrc = fetchgit {
inherit (upstreamInfo.components."chromiumos/platform/crosvm")
url rev sha256 fetchSubmodules;
};

adhdSrc = fetchgit {
inherit (upstreamInfo.components."chromiumos/third_party/adhd")
url rev sha256 fetchSubmodules;
};

in

rustPlatform.buildRustPackage rec {
pname = "crosvm";
inherit (upstreamInfo) version;

src = chromiumSource "${pname}-sources" upstreamInfo.components;
unpackPhase = ''
runHook preUnpack
mkdir -p chromiumos/platform chromiumos/third_party
pushd chromiumos/platform
unpackFile ${crosvmSrc}
mv ${crosvmSrc.name} crosvm
popd
pushd chromiumos/third_party
unpackFile ${adhdSrc}
mv ${adhdSrc.name} adhd
popd
sourceRoot = "${src.name}/chromiumos/platform/crosvm";
chmod -R u+w -- "$sourceRoot"
runHook postUnpack
'';

sourceRoot = "chromiumos/platform/crosvm";

patches = [
./default-seccomp-policy-dir.patch
./default-seccomp-policy-dir.diff
];

cargoSha256 = "16cfp79c13ng5jjcrvz00h3cg7cc9ywhjiq02vsm757knn9jgr1v";
cargoSha256 = "1d7y07wkliy5qnlyx5zj6ni39avhs3s48sqgvwxm5g5zrahg2a85";

nativeBuildInputs = [ pkgconfig ];

@@ -72,11 +73,16 @@ in
cp seccomp/${arch}/* $out/share/policy/
'';

passthru.updateScript = ./update.py;
passthru = {
inherit adhdSrc;
src = crosvmSrc;
updateScript = ./update.py;
};

meta = with stdenv.lib; {
description = "A secure virtual machine monitor for KVM";
homepage = "https://chromium.googlesource.com/chromiumos/platform/crosvm/";
maintainers = with maintainers; [ qyliss ];
license = licenses.bsd3;
platforms = [ "aarch64-linux" "x86_64-linux" ];
};
30 changes: 18 additions & 12 deletions pkgs/applications/virtualization/crosvm/update.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#! /usr/bin/env nix-shell
#! nix-shell -p python3 -p nix-prefetch-git -i python
#! nix-shell -p nix-prefetch-git "python3.withPackages (ps: with ps; [ lxml ])"
#! nix-shell -i python

import base64
import csv
import json
import re
import subprocess
import xml.etree.ElementTree as ElementTree
from codecs import iterdecode
from operator import itemgetter
from os.path import dirname, splitext
from lxml import etree
from lxml.etree import HTMLParser
from urllib.request import urlopen

# ChromiumOS components required to build crosvm.
@@ -27,13 +27,19 @@
# branch branches are used for fixes for specific devices. So for
# Chromium OS they will always be 0. This is a best guess, and is not
# documented.
with urlopen('https://cros-omahaproxy.appspot.com/all') as resp:
versions = csv.DictReader(iterdecode(resp, 'utf-8'))
stables = filter(lambda v: v['track'] == 'stable-channel', versions)
stable = sorted(stables, key=itemgetter('chrome_version'), reverse=True)[0]
with urlopen('https://cros-updates-serving.appspot.com/') as resp:
document = etree.parse(resp, HTMLParser())
# bgcolor="lightgreen" is set on the most up-to-date version for
# each channel, so find a lightgreen cell in the "Stable" column.
(platform_version, chrome_version) = document.xpath("""
(//table[@id="cros-updates"]/tr/td[1 + count(
//table[@id="cros-updates"]/thead/tr[1]/th[text() = "Stable"]
/preceding-sibling::*)
][@bgcolor="lightgreen"])[1]/text()
""")

chrome_major_version = re.match(r'\d+', stable['chrome_version'])[0]
chromeos_tip_build = re.match(r'\d+', stable['chromeos_version'])[0]
chrome_major_version = re.match(r'\d+', chrome_version)[0]
chromeos_tip_build = re.match(r'\d+', platform_version)[0]

# Find the most recent buildspec for the stable Chrome version and
# Chromium OS build number. Its branch build and branch branch build
@@ -52,8 +58,8 @@

# Read the buildspec, and extract the git revisions for each component.
with urlopen(f'{buildspecs_url}{chrome_major_version}/{buildspec}.xml?format=TEXT') as resp:
xml = base64.decodebytes(resp.read()).decode('utf-8')
root = ElementTree.fromstring(xml)
xml = base64.decodebytes(resp.read())
root = etree.fromstring(xml)
for project in root.findall('project'):
revisions[project.get('name')] = project.get('revision')

14 changes: 7 additions & 7 deletions pkgs/applications/virtualization/crosvm/upstream-info.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"version": "77.12371.0.0-rc1",
"version": "79.12607.0.0-rc4",
"components": {
"chromiumos/platform/crosvm": {
"url": "https://chromium.googlesource.com/chromiumos/platform/crosvm",
"rev": "f5285c647acacb4f25ef8cf9334254b976e71686",
"date": "2019-07-25T22:15:48+00:00",
"sha256": "1ccjd540xmpad082w9ri13q78wkg95xxmq38b8ybcrj4f7lsxm6w",
"rev": "cfb7db44eb9e5a0bca9a22bfb985252ef74ab251",
"date": "2019-10-17T23:22:08+00:00",
"sha256": "0gm1ggyzh9qfizm36jmh71c3anygxj1840cm94h71kzg9kiw0330",
"fetchSubmodules": false
},
"chromiumos/third_party/adhd": {
"url": "https://chromium.googlesource.com/chromiumos/third_party/adhd",
"rev": "a1c0d93d991daffb042b979ac807bbe9c1f9a3ee",
"date": "2019-07-25T20:38:50-07:00",
"sha256": "11bijqd876adarq96syywn6znfbiflqssgb2j4w032iw2vfnnsyy",
"rev": "a8df1c52bde3bfd2aebc1d7adcd6f195eb212cb1",
"date": "2019-10-17T18:53:18+00:00",
"sha256": "1hyvnvwr5ka9zw4h7hhl6fpsfl2acp3zy4wr5qrw8s1cn8ljr9vy",
"fetchSubmodules": false
}
}
4 changes: 2 additions & 2 deletions pkgs/development/libraries/nco/default.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{ stdenv, fetchzip, netcdf, netcdfcxx4, gsl, udunits, antlr, which, curl, flex }:

stdenv.mkDerivation rec {
version = "4.9.0";
version = "4.9.1";
pname = "nco";

nativeBuildInputs = [ flex which ];
buildInputs = [ netcdf netcdfcxx4 gsl udunits antlr curl ];

src = fetchzip {
url = "https://github.com/nco/nco/archive/${version}.tar.gz";
sha256 = "0k371b1w369dchmxskd9191i1p47xcwxqwbxsgmdhs8n477wj74b";
sha256 = "14r44wi9ina8h8gh5cmkcddxl5ziwv42mv60sp4l5wfmjz5xwa4x";
};

meta = {