Merge staging-next-22.11 into staging-22.11

This commit is contained in:
github-actions[bot]
2022-12-14 00:15:00 +00:00
committed by GitHub
10 changed files with 81 additions and 57 deletions

View File

@@ -57,6 +57,11 @@ stdenv.mkDerivation rec {
runHook postConfigure
'';
# Only affects unused scripts in $out/share/element/electron/scripts. Also
# breaks because there are some `node`-scripts with a `npx`-shebang and
# this shouldn't be in the closure just for unused scripts.
dontPatchShebangs = true;
buildPhase = ''
runHook preBuild

View File

@@ -1,7 +1,7 @@
{
"version": "1.11.15",
"desktopSrcHash": "l+IjI3uvnOjaJA6IszDSuOO08SMqbUf8rI/u12g5Rxo=",
"desktopYarnHash": "024vd7xiwialfrag325558qjrqlfxzy9xq7jb15ysawand1k2xyv",
"webSrcHash": "YLQ4z333RMx9qyVRTBbDCWLTy5QqLlHmYpmOa8vlCbg=",
"webYarnHash": "1ll2sj9q3h2b76383bqv8a8ckqlk8b131zwx223fnz8mfqsc9br0"
"version": "1.11.16",
"desktopSrcHash": "EeED62HRpaWN91yxcDvwwNUWmDRU38lyT5ba1S4go6Q=",
"desktopYarnHash": "1f0bghcbzab2dkvxmvhhc0dzyk3js09v2sh93gsjsq9mkhld1k0w",
"webSrcHash": "T6UcGNm4i+Nc4Yk/mVFc4L9jxWQtOpjps1ZtEhilHW0=",
"webYarnHash": "1jyzym34lzadniqrysbm1m5agw03hzw6ymmdxpbay38afrhrciyk"
}

View File

@@ -22,11 +22,11 @@
python3.pkgs.buildPythonApplication rec {
pname = "gajim";
version = "1.5.3";
version = "1.5.4";
src = fetchurl {
url = "https://gajim.org/downloads/${lib.versions.majorMinor version}/gajim-${version}.tar.gz";
sha256 = "sha256-JSV4592s7oKJzxBghtlrvXqCoO6iCRoYNu/eaqPfuLA=";
sha256 = "sha256-uIzOKiCbHiSVRlXcpE0B/+Ats3cfw4u7eA+KyPriwhk=";
};
buildInputs = [

View File

@@ -1,23 +1,37 @@
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, utop, python3, stdcompat, ncurses }:
{ buildDunePackage
, lib
, fetchFromGitHub
, fetchpatch
, utop
, python3
, stdcompat
}:
stdenv.mkDerivation rec {
buildDunePackage rec {
pname = "pyml";
version = "20220615";
version = "20220905";
src = fetchFromGitHub {
owner = "thierry-martinez";
repo = pname;
rev = version;
sha256 = "sha256-my/xn9vrYTcHyjXGBNamgqpBz2/6bTyQHuE9ViVGLjw=";
owner = "thierry-martinez";
repo = "pyml";
rev = version;
sha256 = "PL4tFIKQLRutSn9Sf84/ImJv0DqkstNnJaNBqWDTKDQ=";
};
nativeBuildInputs = [
ocaml
findlib
patches = [
# Fixes test crash.
# https://github.com/thierry-martinez/pyml/issues/85
(fetchpatch {
url = "https://github.com/thierry-martinez/pyml/commit/a0bc5aca8632bea273f869d622cad2f55e754a7c.patch";
sha256 = "bOqAokm5DE5rlvkBMQZtwMppRmoK9cvjJeGeP6BusnE=";
excludes = [
"CHANGES.md"
];
})
];
buildInputs = [
utop
ncurses
];
propagatedBuildInputs = [
@@ -25,24 +39,17 @@ stdenv.mkDerivation rec {
stdcompat
];
checkInputs = [
python3.pkgs.numpy
];
strictDeps = true;
buildPhase = ''
make all pymltop pymlutop PREFIX=$out
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin
mkdir -p $OCAMLFIND_DESTDIR/stublibs
make install PREFIX=$out
runHook postInstall
'';
doCheck = true;
meta = {
description = "OCaml bindings for Python";
homepage = "https://github.com/thierry-martinez/pyml";
license = lib.licenses.bsd2;
};
}

View File

@@ -1,29 +1,25 @@
{ stdenv, lib, fetchurl
, ocaml, findlib
{ buildDunePackage
, lib
, fetchurl
}:
stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-stdcompat";
version = "18";
buildDunePackage rec {
pname = "stdcompat";
version = "19";
src = fetchurl {
url = "https://github.com/thierry-martinez/stdcompat/releases/download/v${version}/stdcompat-${version}.tar.gz";
sha256 = "sha256:01y67rndjlzfp5zq0gbqpg9skqq2hfbvhbq9lfhhk5xidr98sfj8";
sha256 = "sha256-DKQGd4nnIN6SPls6hcA/2Jvc7ivYNpeMU6rYsVc1ClU=";
};
nativeBuildInputs = [ ocaml findlib ];
strictDeps = true;
# build fails otherwise
enableParallelBuilding = false;
configureFlags = [ "--libdir=$(OCAMLFIND_DESTDIR)" ];
# Otherwise ./configure script will run and create files conflicting with dune.
dontConfigure = true;
meta = {
homepage = "https://github.com/thierry-martinez/stdcompat";
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
}

View File

@@ -7,6 +7,7 @@
, fetchFromGitHub
, fetchurl
, git
, glibc
, icu
, libkrb5
, lib
@@ -259,7 +260,12 @@ stdenv.mkDerivation rec {
substituteInPlace $out/lib/run.sh --replace '"$DIR"/bin' '"$DIR"/lib'
substituteInPlace $out/lib/config.sh --replace './bin' $out'/lib' \
--replace 'source ./env.sh' $out/bin/env.sh
'' + lib.optionalString stdenv.isLinux ''
# Make binary paths absolute
substituteInPlace $out/lib/config.sh \
--replace 'ldd' '${glibc.bin}/bin/ldd' \
--replace '/sbin/ldconfig' '${glibc.bin}/bin/ldconfig'
'' + ''
# Remove uneeded copy for run-helper template
substituteInPlace $out/lib/run.sh --replace 'cp -f "$DIR"/run-helper.sh.template "$DIR"/run-helper.sh' ' '
substituteInPlace $out/lib/run-helper.sh --replace '"$DIR"/bin/' '"$DIR"/'

View File

@@ -2,7 +2,7 @@
, substituteAll
, fetchurl
, ocaml
, dune_2
, dune_3
, buildDunePackage
, yojson
, csexp
@@ -15,16 +15,17 @@
}:
let
merlinVersion = "4.6";
merlinVersion = "4.7";
hashes = {
"4.6-412" = "sha256-isiurLeWminJQQR4oHpJPCzVk6cEmtQdX4+n3Pdka5c=";
"4.6-413" = "sha256-8903H4TE6F/v2Kw1XpcpdXEiLIdb9llYgt42zSR9kO4=";
"4.6-414" = "sha256-AuvXCjx32JQBY9vkxAd0pEjtFF6oTgrT1f9TJEEDk84=";
"4.7-412" = "sha256-0U3Ia7EblKULNy8AuXFVKACZvGN0arYJv7BWiBRgT0Y=";
"4.7-413" = "sha256-aVmGWS4bJBLuwsxDKsng/n0A6qlyJ/pnDTcYab/5gyU=";
"4.7-414" = "sha256-bIZ4kwmnit/ujM2//jZA59rweo7Y0QfDb+BpoTxswHs=";
"4.7-500" = "sha256-elYb/0vVvohi9yYFe/54brb6Qh6fyiN1kYPRq5fP1zE=";
};
ocamlVersionShorthand = lib.concatStrings
(lib.take 2 (lib.splitVersion ocaml.version));
ocamlVersionShorthand = lib.substring 0 3
(lib.concatStrings (lib.splitVersion ocaml.version));
version = "${merlinVersion}-${ocamlVersionShorthand}";
in
@@ -36,6 +37,7 @@ else
buildDunePackage {
pname = "merlin";
inherit version;
duneVersion = "3";
src = fetchurl {
url = "https://github.com/ocaml/merlin/releases/download/v${version}/merlin-${version}.tbz";
@@ -46,7 +48,7 @@ buildDunePackage {
(substituteAll {
src = ./fix-paths.patch;
dot_merlin_reader = "${dot-merlin-reader}/bin/dot-merlin-reader";
dune = "${dune_2}/bin/dune";
dune = "${dune_3}/bin/dune";
})
];
@@ -59,14 +61,14 @@ buildDunePackage {
buildInputs = [
dot-merlin-reader
yojson
(if lib.versionAtLeast version "4.6-414"
(if lib.versionAtLeast version "4.7-414"
then merlin-lib
else csexp)
menhirSdk
menhirLib
];
doCheck = true;
doCheck = false;
checkPhase = ''
runHook preCheck
patchShebangs tests/merlin-wrapper

View File

@@ -7,7 +7,7 @@ buildDunePackage rec {
minimalOCamlVersion = "4.06";
buildInputs = if lib.versionAtLeast version "4.6-414"
buildInputs = if lib.versionAtLeast version "4.7-414"
then [ merlin-lib ]
else [ yojson csexp ];

View File

@@ -16,7 +16,7 @@
, nasm
, ocaml
, ocamlPackages
, openssl
, openssl_1_1
, perl
, python3
, texinfo
@@ -84,7 +84,7 @@ stdenv.mkDerivation rec {
buildInputs = [
libtool
openssl
openssl_1_1
];
BINUTILS_DIR = "${binutils}/bin";

View File

@@ -119,6 +119,14 @@ in lib.makeExtensible (self: {
];
};
nix_2_12 = common {
version = "2.12.0";
sha256 = "sha256-sQ9C101CL/eVN5JgH91ozHFWU4+bXr8/Fi/8NQk6xRI=";
patches = [
./patches/flaky-tests.patch
];
};
stable = self.nix_2_11;
unstable = self.stable;