Merge master into staging-next

This commit is contained in:
github-actions[bot] 2021-04-02 12:06:12 +00:00 committed by GitHub
commit 60739e07d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 55 additions and 44 deletions

View file

@ -190,7 +190,7 @@ If one imagines the saturating self references at the end being replaced with in
```
(native..., native, native, native, foreign, foreign, foreign...)
```
On can then imagine any sequence of platforms such that there are bootstrap stages with their 3 platforms determined by "sliding a window" that is the 3 tuple through the sequence. This was the original model for bootstrapping. Without a target platform (assume a better world where all compilers are multi-target and all standard libraries are built in their own derivation), this is sufficient. Conversely if one wishes to cross compile "faster", with a "Canadian Cross" bootstrapping stage where `build != host != target`, more bootstrapping stages are needed since no sliding window provides the pesky `pkgsBuildTarget` package set since it skips the Canadian cross stage's "host".
One can then imagine any sequence of platforms such that there are bootstrap stages with their 3 platforms determined by "sliding a window" that is the 3 tuple through the sequence. This was the original model for bootstrapping. Without a target platform (assume a better world where all compilers are multi-target and all standard libraries are built in their own derivation), this is sufficient. Conversely if one wishes to cross compile "faster", with a "Canadian Cross" bootstrapping stage where `build != host != target`, more bootstrapping stages are needed since no sliding window provides the pesky `pkgsBuildTarget` package set since it skips the Canadian cross stage's "host".
::: note

View file

@ -3,8 +3,9 @@ import ./make-test-python.nix ({ pkgs, ... }:
let
hello-world = pkgs.writeText "hello-world" ''
open import IO
open import Level
main = run(putStrLn "Hello World!")
main = run {0} (putStrLn "Hello World!")
'';
in
{

View file

@ -89,6 +89,6 @@ mkChromiumDerivation (base: rec {
then ["aarch64-linux" "x86_64-linux"]
else [];
timeout = 172800; # 48 hours (increased from the Hydra default of 10h)
broken = elem channel [ "beta" "dev" ]; # Build requires LLVM 12
broken = elem channel [ "beta" "dev" ];
};
})

View file

@ -1,5 +1,5 @@
{ newScope, config, stdenv, fetchurl, makeWrapper
, llvmPackages_11, ed, gnugrep, coreutils, xdg-utils
, llvmPackages_11, llvmPackages_12, ed, gnugrep, coreutils, xdg-utils
, glib, gtk3, gnome3, gsettings-desktop-schemas, gn, fetchgit
, libva ? null
, pipewire
@ -39,6 +39,8 @@ let
inherit (upstream-info.deps.gn) url rev sha256;
};
});
} // lib.optionalAttrs (lib.versionAtLeast upstream-info.version "90") {
llvmPackages = llvmPackages_12;
});
browser = callPackage ./browser.nix { inherit channel enableWideVine ungoogled; };

View file

@ -1,6 +1,6 @@
# Builder for Agda packages.
{ stdenv, lib, self, Agda, runCommandNoCC, makeWrapper, writeText, mkShell, ghcWithPackages }:
{ stdenv, lib, self, Agda, runCommandNoCC, makeWrapper, writeText, mkShell, ghcWithPackages, nixosTests }:
with lib.strings;
@ -18,7 +18,10 @@ let
in runCommandNoCC "${pname}-${version}" {
inherit pname version;
nativeBuildInputs = [ makeWrapper ];
passthru.unwrapped = Agda;
passthru = {
unwrapped = Agda;
tests = { inherit (nixosTests) agda; };
};
} ''
mkdir -p $out/bin
makeWrapper ${Agda}/bin/agda $out/bin/agda \

View file

@ -1,4 +1,4 @@
{ lib, mkDerivation, fetchFromGitHub, ghcWithPackages }:
{ lib, mkDerivation, fetchFromGitHub, ghcWithPackages, nixosTests }:
mkDerivation rec {
pname = "standard-library";
@ -19,6 +19,7 @@ mkDerivation rec {
rm EverythingSafe.agda EverythingSafeGuardedness.agda EverythingSafeSizedTypes.agda
'';
passthru.tests = { inherit (nixosTests) agda; };
meta = with lib; {
homepage = "https://wiki.portal.chalmers.se/agda/pmwiki.php?n=Libraries.StandardLibrary";
description = "A standard library for use with the Agda compiler";

View file

@ -1,6 +1,5 @@
{ lib, stdenv
, fetchFromGitLab
, fetchpatch
, meson
, ninja
, pkg-config
@ -17,22 +16,14 @@
stdenv.mkDerivation rec {
pname = "libplacebo";
version = "3.104.0";
patches = [
(fetchpatch {
# support glslang>=11.0.0; Upstream MR: https://code.videolan.org/videolan/libplacebo/-/merge_requests/131
url = "https://code.videolan.org/videolan/libplacebo/-/commit/affd15a2faa1340d40dcf277a8acffe2987f517c.patch";
sha256 = "1nm27mdm9rn3wsbjdif46pici6mbzmfb6521ijl8ah4mxn9p1ikc";
})
];
version = "3.120.0";
src = fetchFromGitLab {
domain = "code.videolan.org";
owner = "videolan";
repo = pname;
rev = "v${version}";
sha256 = "0p5mx8ch7cp7b54yrkl4fs8bcvqma1h461gx6ps4kagn4dsx8asb";
sha256 = "1vjcp703h0a8z70bqkx1fawhpyv3zl11c7rczyky8v4cmcihscgg";
};
nativeBuildInputs = [

View file

@ -0,0 +1,16 @@
{ buildDunePackage, ocaml_gettext, camomile, ounit, fileutils }:
buildDunePackage {
pname = "gettext-camomile";
inherit (ocaml_gettext) src version useDune2;
propagatedBuildInputs = [ camomile ocaml_gettext ];
doCheck = true;
checkInputs = [ ounit fileutils ];
meta = ocaml_gettext.meta // {
description = "Internationalization library using camomile (i18n)";
};
}

View file

@ -1,7 +1,11 @@
{ lib, fetchFromGitHub, stdenv
, findlib, nonstd, ocaml, ocamlbuild
, findlib, ocaml, ocamlbuild
}:
if !lib.versionAtLeast ocaml.version "4.02"
then throw "sosa is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-sosa-${version}";
version = "0.3.0";
@ -13,7 +17,7 @@ stdenv.mkDerivation rec {
sha256 = "053hdv6ww0q4mivajj4iyp7krfvgq8zajq9d8x4mia4lid7j0dyk";
};
buildInputs = [ nonstd ocaml ocamlbuild findlib ];
buildInputs = [ ocaml ocamlbuild findlib ];
buildPhase = "make build";

View file

@ -36,7 +36,7 @@ in buildPythonPackage rec {
description = "Python extension to run WebAssembly binaries";
homepage = "https://github.com/wasmerio/wasmer-python";
license = licenses.mit;
platforms = platforms.linux;
platforms = platforms.unix;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View file

@ -1,29 +1,20 @@
{ buildRubyGem, fetchFromGitHub, makeWrapper, lib, bundler, nix,
nix-prefetch-git, fetchpatch }:
nix-prefetch-git }:
buildRubyGem rec {
inherit (bundler) ruby;
name = "${gemName}-${version}";
gemName = "bundix";
version = "2.5.0";
version = "2.5.1";
src = fetchFromGitHub {
owner = "nix-community";
repo = "bundix";
rev = version;
sha256 = "05y8sy6v9km1dwvpjzkjxpfzv95g6yzac1b5blac2f1r2kw167p8";
sha256 = "sha256-iMp6Yj7TSWDqge3Lw855/igOWdTIuFH1LGeIN/cpq7U=";
};
patches = [
# write trailing newline to gemset.nix
# https://github.com/nix-community/bundix/pull/78
(fetchpatch {
url = "https://github.com/nix-community/bundix/commit/02ca7a6c656a1e5e5465ad78b31040d82ae1a7e6.patch";
sha256 = "18r30icv7r79dlmxz1d1qlk5b6c7r257x23sqav55yhfail9hqrb";
})
];
buildInputs = [ ruby bundler ];
nativeBuildInputs = [ makeWrapper ];

View file

@ -11,13 +11,13 @@
stdenv.mkDerivation rec {
pname = "git-quick-stats";
version = "2.1.6";
version = "2.1.7";
src = fetchFromGitHub {
repo = "git-quick-stats";
owner = "arzzen";
rev = version;
sha256 = "sha256-l3Aftu1RkcDgzdzrKIAlziDgbjYfj5xLIbysS0a5JZw=";
sha256 = "sha256-DFssuvafgAZY26Ycv/SV5EF1B5rax3R41PCLZL09A0s=";
};
nativeBuildInputs = [ makeWrapper ];

View file

@ -4,13 +4,13 @@
buildGoModule rec {
pname = "fscrypt";
version = "0.2.9";
version = "0.3.0";
src = fetchFromGitHub {
owner = "google";
repo = "fscrypt";
rev = "v${version}";
sha256 = "020hhdarbn3bwlc2j2g89868v8nfx8562z1a778ihpvvsa4ykr31";
sha256 = "1zdadi9f7wj6kgmmk9zlkpdm1lb3gfiscg9gkqqdql2si7y6g2nq";
};
postPatch = ''

View file

@ -2,13 +2,13 @@
buildGoModule rec {
pname = "documize-community";
version = "3.8.2";
version = "3.9.0";
src = fetchFromGitHub {
owner = "documize";
repo = "community";
rev = "v${version}";
sha256 = "sha256-6DOvInfD32/mEILGXdXUeflmHoyn0eiYyQN/aI23FJ0=";
sha256 = "sha256-Kv4BsFB08rkGRkePFIkjjuhK1TnLPS4m+PUlgKG5cTQ=";
};
vendorSha256 = null;

View file

@ -5,16 +5,16 @@
buildGoModule rec {
pname = "rtsp-simple-server";
version = "0.15.1";
version = "0.15.2";
src = fetchFromGitHub {
owner = "aler9";
repo = pname;
rev = "v${version}";
sha256 = "sha256-uahgIphp2/iE11v33sPNrm0evz6dQvzjEQ9uMVEuTTI=";
sha256 = "sha256-XuyE0gubkE08Qei30/q8fLdX8V7zBsbFsdaiqbXgeI4=";
};
vendorSha256 = "sha256-nAeP9ZmYu5VPKR628aJVNS8t41V/AYkgwOcO/d0nQv4=";
vendorSha256 = "sha256-4R2gA9QwfyBNDasRuDawDFEmXu31yGuZUQZS6cZL3B0=";
# Tests need docker
doCheck = false;

View file

@ -10896,13 +10896,13 @@ in
stdenv = gcc7Stdenv;
}));
llvmPackages_12 = callPackage ../development/compilers/llvm/12 ({
llvmPackages_12 = recurseIntoAttrs (callPackage ../development/compilers/llvm/12 ({
inherit (stdenvAdapters) overrideCC;
buildLlvmTools = buildPackages.llvmPackages_12.tools;
targetLlvmLibraries = targetPackages.llvmPackages_12.libraries;
} // lib.optionalAttrs (stdenv.hostPlatform.isi686 && buildPackages.stdenv.cc.isGNU) {
stdenv = gcc7Stdenv;
});
}));
llvmPackages_latest = llvmPackages_11;

View file

@ -796,6 +796,8 @@ let
ocaml_gettext = callPackage ../development/ocaml-modules/ocaml-gettext { };
gettext-camomile = callPackage ../development/ocaml-modules/ocaml-gettext/camomile.nix { };
gettext-stub = callPackage ../development/ocaml-modules/ocaml-gettext/stub.nix { };
ocamlgraph = callPackage ../development/ocaml-modules/ocamlgraph { };