daml/nix/nixpkgs.nix
Stephen Compall 1a2afd5266
upgrade to Scala 2.12.12 from 2.12.11 (#7661)
* upgrade bazel settings to scala 2.12.12

* upgrade nix scala tool to scala 2.12.12

* upgrade silencer references to scala 2.12.12

* repin for scala 2.12, silencer, wartremover upgrades

* remove numerous occurrences of unused silencer now spotted

* update Scala version in our bazel notes

CHANGELOG_BEGIN
CHANGELOG_END

* update compatibility maven_install.json to match compatibility WORKSPACE
2020-10-13 08:42:14 -04:00

71 lines
2.3 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Pinned version of nixpkgs that we use for our development and deployment.
{ system ? builtins.currentSystem, ... }:
let
# See ./nixpkgs/README.md for upgrade instructions.
src = import ./nixpkgs;
# package overrides
overrides = _: pkgs: rec {
nodejs = pkgs.nodejs-12_x;
grpc = pkgs.grpc.overrideAttrs (oldAttrs: {
version = "1.23.1";
src = pkgs.fetchFromGitHub {
owner = "grpc";
repo = "grpc";
rev = "v1.23.1";
sha256 = "1jcyd9jy7kz5zfch25s4inwlivb1y1w52fzfjy5ra5vcnp3hmqyr";
fetchSubmodules = true;
};
# Upstream nixpkgs applies patches that are incompatbile with our version
# of grpc. So, we disable them.
patches = [
# Fix glibc version conflict.
./grpc-Fix-gettid-naming-conflict.patch
./grpc-Rename-gettid-functions.patch
];
});
ephemeralpg = pkgs.ephemeralpg.overrideAttrs(oldAttrs: {
installPhase = ''
mkdir -p $out
PREFIX=$out make install
wrapProgram $out/bin/pg_tmp --prefix PATH : ${pkgs.postgresql_9_6}/bin:$out/bin
'';
});
bazel = pkgs.bazel.overrideAttrs(oldAttrs: {
patches = oldAttrs.patches ++ [
# Note (MK)
# This patch enables caching of tests marked as `exclusive`. It got apparently
# rolled back because it caused problems internally at Google but its unclear
# what is actually failing and it seems to work fine for us.
# See https://github.com/bazelbuild/bazel/pull/8983/files#diff-107db037d4a55f2421fed9ed5c6cc31b
# for the only change that actually affects the code in this patch. The rest is tests
# and/or documentation.
(pkgs.fetchurl {
url = "https://patch-diff.githubusercontent.com/raw/bazelbuild/bazel/pull/8983.patch";
sha256 = "1j25bycn9q7536ab3ln6yi6zpzv2b25fwdyxbgnalkpl2dz9idb7";
})
];
});
scala_2_12 = pkgs.scala_2_12.overrideAttrs (oldAttrs: rec {
name = "scala-2.12.12";
src = pkgs.fetchurl {
url = "https://www.scala-lang.org/files/archive/${name}.tgz";
sha256 = "3520cd1f3c9efff62baee75f32e52d1e5dc120be2ccf340649e470e48f527e2b";
};
});
};
nixpkgs = import src {
inherit system;
# pin the overlays
overlays = [overrides];
config.allowUnfree = true;
config.allowBroken = true;
};
in
nixpkgs