Merge master into staging-next

This commit is contained in:
github-actions[bot] 2021-03-08 06:17:49 +00:00 committed by GitHub
commit edd43953df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 153 additions and 65 deletions

View File

@ -194,6 +194,12 @@
githubId = 124545; githubId = 124545;
name = "Anthony Cowley"; name = "Anthony Cowley";
}; };
adamlwgriffiths = {
email = "adam.lw.griffiths@gmail.com";
github = "adamlwgriffiths";
githubId = 1239156;
name = "Adam Griffiths";
};
adamt = { adamt = {
email = "mail@adamtulinius.dk"; email = "mail@adamtulinius.dk";
github = "adamtulinius"; github = "adamtulinius";

View File

@ -26,11 +26,11 @@
mkDerivation rec { mkDerivation rec {
pname = "calibre"; pname = "calibre";
version = "5.11.0"; version = "5.12.0";
src = fetchurl { src = fetchurl {
url = "https://download.calibre-ebook.com/${version}/${pname}-${version}.tar.xz"; url = "https://download.calibre-ebook.com/${version}/${pname}-${version}.tar.xz";
sha256 = "sha256-PI+KIMnslhoagv9U6Mcmo9Onfu8clVqASNlDir8JzUw="; sha256 = "sha256-N3/y1kSWyM36LpwbimftJ67h4zfk2j9hcvUi/pQL3YU=";
}; };
patches = [ patches = [

View File

@ -23,7 +23,7 @@
, ffmpegSupport ? true , ffmpegSupport ? true
, gtk3Support ? true, gtk2, gtk3, wrapGAppsHook , gtk3Support ? true, gtk2, gtk3, wrapGAppsHook
, waylandSupport ? true, libxkbcommon , waylandSupport ? true, libxkbcommon
, ltoSupport ? stdenv.isLinux, overrideCC, buildPackages , ltoSupport ? (stdenv.isLinux && stdenv.is64bit), overrideCC, buildPackages
, gssSupport ? true, kerberos , gssSupport ? true, kerberos
, pipewireSupport ? waylandSupport && webrtcSupport, pipewire , pipewireSupport ? waylandSupport && webrtcSupport, pipewire
@ -111,6 +111,13 @@ let
else stdenv; else stdenv;
nss_pkg = if lib.versionOlder ffversion "83" then nss_3_53 else nss; nss_pkg = if lib.versionOlder ffversion "83" then nss_3_53 else nss;
# --enable-release adds -ffunction-sections & LTO that require a big amount of
# RAM and the 32-bit memory space cannot handle that linking
# We also disable adding "-g" for easier linking
releaseFlags = if stdenv.is32bit
then [ "--disable-release" "--disable-debug-symbols" ]
else [ "--enable-release" ];
in in
buildStdenv.mkDerivation ({ buildStdenv.mkDerivation ({
@ -296,9 +303,9 @@ buildStdenv.mkDerivation ({
++ lib.optional drmSupport "--enable-eme=widevine" ++ lib.optional drmSupport "--enable-eme=widevine"
++ (if debugBuild then [ "--enable-debug" "--enable-profiling" ] ++ (if debugBuild then [ "--enable-debug" "--enable-profiling" ]
else [ "--disable-debug" "--enable-release" else ([ "--disable-debug"
"--enable-optimize" "--enable-optimize"
"--enable-strip" ]) "--enable-strip" ] ++ releaseFlags))
++ lib.optional enableOfficialBranding "--enable-official-branding" ++ lib.optional enableOfficialBranding "--enable-official-branding"
++ extraConfigureFlags; ++ extraConfigureFlags;

View File

@ -1,10 +1,9 @@
{ stdenv, lib, fetchurl, fetchpatch, texlive, bison, flex, lapack, blas { stdenv, lib, fetchurl, fetchpatch, texlive, bison, flex, lapack, blas
, gmp, mpfr, pari, ntl, gsl, mpfi, ecm, glpk, nauty , gmp, mpfr, pari, ntl, gsl, mpfi, ecm, glpk, nauty
, readline, gettext, libpng, libao, gfortran, perl , readline, gettext, libpng, libao, gfortran, perl
, enableGUI ? false, libGL ? null, libGLU ? null, xorg ? null, fltk ? null , enableGUI ? false, libGL, libGLU, xorg, fltk
}: }:
assert enableGUI -> libGLU != null && libGL != null && xorg != null && fltk != null;
assert (!blas.isILP64) && (!lapack.isILP64); assert (!blas.isILP64) && (!lapack.isILP64);
stdenv.mkDerivation rec { stdenv.mkDerivation rec {

View File

@ -1,4 +1,5 @@
{ lib, stdenv { lib
, stdenv
, fetchurl , fetchurl
, dimensions ? 6 # works for <= dimensions dimensions, but is only optimized for that exact value , dimensions ? 6 # works for <= dimensions dimensions, but is only optimized for that exact value
, doSymlink ? true # symlink the executables to the default location (without dimension postfix) , doSymlink ? true # symlink the executables to the default location (without dimension postfix)
@ -42,12 +43,12 @@ stdenv.mkDerivation rec {
''; '';
installPhase = '' installPhase = ''
mkdir -p "$out/bin" mkdir -p $out/bin
for file in poly class cws nef mori; do for file in poly class cws nef mori; do
cp -p $file.x "$out/bin/$file-${dim}d.x" cp -p $file.x "$out/bin/$file-${dim}d.x"
done done
'' + lib.optionalString doSymlink '' '' + lib.optionalString doSymlink ''
cd "$out/bin" cd $out/bin
for file in poly class cws nef mori; do for file in poly class cws nef mori; do
ln -sf $file-6d.x $file.x ln -sf $file-6d.x $file.x
done done

View File

@ -31,7 +31,7 @@ rustPlatform.buildRustPackage rec {
''; '';
meta = with lib; { meta = with lib; {
description = "🍺🐙 ZetZ a zymbolic verifier and tranzpiler to bare metal C"; description = "ZetZ a zymbolic verifier and tranzpiler to bare metal C";
homepage = "https://github.com/zetzit/zz"; homepage = "https://github.com/zetzit/zz";
license = licenses.mit; license = licenses.mit;
maintainers = [ maintainers.marsam ]; maintainers = [ maintainers.marsam ];

View File

@ -1,26 +1,32 @@
{lib, stdenv, fetchFromGitHub, mpir, gmp, mpfr, flint}: { lib, stdenv, fetchFromGitHub, mpir, gmp, mpfr, flint }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "arb"; pname = "arb";
version = "2.17.0"; version = "2.17.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "fredrik-johansson"; owner = "fredrik-johansson";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "05lpy3hkl5f8ik19aw40cqydrb932xaf2n8hbq9ib5dnk7f010p1"; sha256 = "05lpy3hkl5f8ik19aw40cqydrb932xaf2n8hbq9ib5dnk7f010p1";
}; };
buildInputs = [mpir gmp mpfr flint];
buildInputs = [ mpir gmp mpfr flint ];
configureFlags = [ configureFlags = [
"--with-gmp=${gmp}" "--with-gmp=${gmp}"
"--with-mpir=${mpir}" "--with-mpir=${mpir}"
"--with-mpfr=${mpfr}" "--with-mpfr=${mpfr}"
"--with-flint=${flint}" "--with-flint=${flint}"
]; ];
doCheck = true; doCheck = true;
meta = with lib; { meta = with lib; {
description = "A library for arbitrary-precision interval arithmetic"; description = "A library for arbitrary-precision interval arithmetic";
homepage = "https://arblib.org/"; homepage = "https://arblib.org/";
license = lib.licenses.lgpl21Plus; license = licenses.lgpl21Plus;
maintainers = teams.sage.members; maintainers = teams.sage.members;
platforms = lib.platforms.unix; platforms = platforms.unix;
}; };
} }

View File

@ -1,11 +1,11 @@
{ lib, stdenv, fetchurl, perl, pkg-config, audiofile, bzip2, glib, libgcrypt, zlib }: { lib, stdenv, fetchurl, perl, pkg-config, audiofile, bzip2, glib, libgcrypt, zlib }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libspectrum-1.4.4"; name = "libspectrum-1.5.0";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/fuse-emulator/${name}.tar.gz"; url = "mirror://sourceforge/fuse-emulator/${name}.tar.gz";
sha256 = "1cc0jx617sym6qj1f9fm115q44cq5azsxplqq2cgrg0pmlmjpyzx"; sha256 = "sha256-o1PLRumxooEGHYFjU+oBDQpv545qF6oLe3QnHKXkrPw=";
}; };
nativeBuildInputs = [ perl pkg-config ]; nativeBuildInputs = [ perl pkg-config ];

View File

@ -0,0 +1,54 @@
{ stdenv, lib, fetchFromGitHub, fetchpatch, cmake,
mesa, libGLU, glfw,
libX11, libXi, libXcursor, libXrandr, libXinerama,
alsaSupport ? stdenv.hostPlatform.isLinux, alsaLib,
pulseSupport ? stdenv.hostPlatform.isLinux, libpulseaudio,
includeEverything ? true
}:
stdenv.mkDerivation rec {
pname = "raylib";
version = "3.5.0";
src = fetchFromGitHub {
owner = "raysan5";
repo = pname;
rev = version;
sha256 = "0syvd5js1lbx3g4cddwwncqg95l6hb3fdz5nsh5pqy7fr6v84kwj";
};
patches = [
# fixes examples not compiling in 3.5.0
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/raysan5/raylib/pull/1470.patch";
sha256 = "1ff5l839wl8dxwrs2bwky7kqa8kk9qmsflg31sk5vbil68dzbzg0";
})
];
nativeBuildInputs = [ cmake ];
buildInputs = [
mesa libGLU glfw libX11 libXi libXcursor libXrandr libXinerama
] ++ lib.optional alsaSupport alsaLib
++ lib.optional pulseSupport libpulseaudio;
# https://github.com/raysan5/raylib/wiki/CMake-Build-Options
cmakeFlags = [
"-DUSE_EXTERNAL_GLFW=ON"
"-DSHARED=ON"
"-DBUILD_EXAMPLES=OFF"
] ++ lib.optional includeEverything "-DINCLUDE_EVERYTHING=ON";
# fix libasound.so/libpulse.so not being found
preFixup = ''
${lib.optionalString alsaSupport "patchelf --add-needed ${alsaLib}/lib/libasound.so $out/lib/libraylib.so.${version}"}
${lib.optionalString pulseSupport "patchelf --add-needed ${libpulseaudio}/lib/libpulse.so $out/lib/libraylib.so.${version}"}
'';
meta = with lib; {
description = "A simple and easy-to-use library to enjoy videogames programming";
homepage = "http://www.raylib.com/";
license = licenses.zlib;
maintainers = with maintainers; [ adamlwgriffiths ];
platforms = platforms.linux;
};
}

View File

@ -11,10 +11,14 @@ buildPythonPackage rec {
propagatedBuildInputs = [ agate sqlalchemy crate ]; propagatedBuildInputs = [ agate sqlalchemy crate ];
pythonImportsCheck = [ "agatesql" ];
meta = with lib; { meta = with lib; {
description = "Adds SQL read/write support to agate."; description = "Adds SQL read/write support to agate.";
homepage = "https://github.com/wireservice/agate-sql"; homepage = "https://github.com/wireservice/agate-sql";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = with maintainers; [ vrthra ]; maintainers = with maintainers; [ vrthra ];
# FAIL: test_to_sql_create_statement_with_schema (tests.test_agatesql.TestSQL)
broken = true;
}; };
} }

View File

@ -5,18 +5,22 @@
}: }:
buildPythonPackage { buildPythonPackage {
version = "2016-01-04";
pname = "dopy"; pname = "dopy";
version = "2016-01-04";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "Wiredcraft"; owner = "Wiredcraft";
repo = "dopy"; repo = "dopy";
rev = "cb443214166a4e91b17c925f40009ac883336dc3"; rev = "cb443214166a4e91b17c925f40009ac883336dc3";
sha256 ="0ams289qcgna96aak96jbz6wybs6qb95h2gn8lb4lmx2p5sq4q56"; sha256 = "0ams289qcgna96aak96jbz6wybs6qb95h2gn8lb4lmx2p5sq4q56";
}; };
propagatedBuildInputs = [ requests six ]; propagatedBuildInputs = [ requests six ];
# contains no tests
doCheck = false;
pythonImportsCheck = [ "dopy" ];
meta = with pkgs.lib; { meta = with pkgs.lib; {
description = "Digital Ocean API python wrapper"; description = "Digital Ocean API python wrapper";
homepage = "https://github.com/Wiredcraft/dopy"; homepage = "https://github.com/Wiredcraft/dopy";

View File

@ -1,26 +1,25 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, pytestrunner , pytestCheckHook
, pytest
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "managesieve"; pname = "managesieve";
version = "0.6"; version = "0.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "ee70e298e9b68eb81f93d52a1320a034fdc182f3927fdd551836fc93b0ed2c5f"; sha256 = "1dx0j8hhjwip1ackaj2m4hqrrx2iiv846ic4wa6ymrawwb8iq8m6";
}; };
checkInputs = [ pytestrunner pytest ]; checkInputs = [ pytestCheckHook ];
meta = with lib; { meta = with lib; {
description = "ManageSieve client library for remotely managing Sieve scripts"; description = "ManageSieve client library for remotely managing Sieve scripts";
homepage = "https://managesieve.readthedocs.io/"; homepage = "https://managesieve.readthedocs.io/";
# PSFL for the python module, GPLv3 for sieveshell # PSFL for the python module, GPLv3 only for sieveshell
license = with licenses; [ gpl3 psfl ]; license = with licenses; [ gpl3Only psfl ];
maintainers = with maintainers; [ dadada ]; maintainers = with maintainers; [ dadada ];
}; };
} }

View File

@ -8,7 +8,7 @@
, lib, stdenv }: , lib, stdenv }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "2.52"; version = "2.53";
pname = "frotz"; pname = "frotz";
src = fetchFromGitLab { src = fetchFromGitLab {
@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
owner = "DavidGriffith"; owner = "DavidGriffith";
repo = "frotz"; repo = "frotz";
rev = version; rev = version;
sha256 = "11ca1dz31b7s5vxjqncwjwmbbcr2m5v2rxjn49g4gnvwd6mqw48y"; sha256 = "sha256-xVC/iE71W/Wdy5aPGH9DtcVAHWCcg3HkEA3iDV6OYUo=";
}; };
buildInputs = [ libao libmodplug libsamplerate libsndfile libvorbis ncurses ]; buildInputs = [ libao libmodplug libsamplerate libsndfile libvorbis ncurses ];

View File

@ -4,14 +4,14 @@ with lib;
buildGoPackage rec { buildGoPackage rec {
pname = "nats-streaming-server"; pname = "nats-streaming-server";
version = "0.20.0"; version = "0.21.0";
goPackagePath = "github.com/nats-io/${pname}"; goPackagePath = "github.com/nats-io/${pname}";
src = fetchFromGitHub { src = fetchFromGitHub {
rev = "v${version}"; rev = "v${version}";
owner = "nats-io"; owner = "nats-io";
repo = pname; repo = pname;
sha256 = "sha256-vhUj3CVBM5jbwEtnzdgQD3eLguiHQguK01O69JZIUUk="; sha256 = "sha256-vZFX5YDf722c7xc4oh4SoL91s7XuZsXzFxW+i//mOUw=";
}; };
meta = { meta = {

View File

@ -1,6 +1,13 @@
{ lib, stdenv, fetchurl, fetchgit, cmake, libuuid, expat, sqlite, libidn, { lib, stdenv, fetchurl, fetchgit, cmake, libuuid, expat, sqlite, libidn
libiconv, botan2, systemd, pkg-config, udns, coreutils, python3Packages } : , libiconv, botan2, systemd, pkg-config, udns, python3Packages } :
let
louiz_catch = fetchgit {
url = "https://lab.louiz.org/louiz/Catch.git";
rev = "0a34cc201ef28bf25c88b0062f331369596cb7b7"; # v2.2.1
sha256 = "0ad0sjhmzx61a763d2ali4vkj8aa1sbknnldks7xlf4gy83jfrbl";
};
in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "biboumi"; pname = "biboumi";
version = "9.0"; version = "9.0";
@ -10,22 +17,16 @@ stdenv.mkDerivation rec {
sha256 = "1jvygri165aknmvlinx3jb8cclny6cxdykjf8dp0a3l3228rmzqy"; sha256 = "1jvygri165aknmvlinx3jb8cclny6cxdykjf8dp0a3l3228rmzqy";
}; };
louiz_catch = fetchgit {
url = "https://lab.louiz.org/louiz/Catch.git";
rev = "0a34cc201ef28bf25c88b0062f331369596cb7b7"; # v2.2.1
sha256 = "0ad0sjhmzx61a763d2ali4vkj8aa1sbknnldks7xlf4gy83jfrbl";
};
patches = [ ./catch.patch ]; patches = [ ./catch.patch ];
nativeBuildInputs = [ cmake pkg-config python3Packages.sphinx ]; nativeBuildInputs = [ cmake pkg-config python3Packages.sphinx ];
buildInputs = [ libuuid expat sqlite libiconv libidn botan2 systemd buildInputs = [ libuuid expat sqlite libiconv libidn botan2 systemd udns ];
udns ];
buildFlags = [ "all" "man" ]; buildFlags = [ "all" "man" ];
preConfigure = '' preConfigure = ''
substituteInPlace CMakeLists.txt --replace /etc/biboumi $out/etc/biboumi substituteInPlace CMakeLists.txt --replace /etc/biboumi $out/etc/biboumi
cp $louiz_catch/single_include/catch.hpp tests/ cp ${louiz_catch}/single_include/catch.hpp tests/
''; '';
doCheck = true; doCheck = true;

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "liquidprompt"; pname = "liquidprompt";
version = "2.0.0"; version = "2.0.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nojhan"; owner = "nojhan";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-+qNH4Df0wCI3KE6LT3YWKpp7yzJcedmVlm/f1Myz108="; sha256 = "sha256-FXBClOkGRUey/FnLw3g3uiHUJeNiB4tXqP4Na6CuwIM=";
}; };
installPhase = '' installPhase = ''

View File

@ -11,7 +11,7 @@ python3.pkgs.buildPythonApplication rec {
patches = [ patches = [
# Fixes a failing dbf related test. Won't be needed on 1.0.6 or later. # Fixes a failing dbf related test. Won't be needed on 1.0.6 or later.
(fetchpatch{ (fetchpatch {
url = "https://github.com/wireservice/csvkit/commit/5f22e664121b13d9ff005a9206873a8f97431dca.patch"; url = "https://github.com/wireservice/csvkit/commit/5f22e664121b13d9ff005a9206873a8f97431dca.patch";
sha256 = "1kg00z65x7l6dnm5nfsr5krs8m7mv23hhb1inkaqf5m5fpkpnvv7"; sha256 = "1kg00z65x7l6dnm5nfsr5krs8m7mv23hhb1inkaqf5m5fpkpnvv7";
}) })
@ -23,17 +23,22 @@ python3.pkgs.buildPythonApplication rec {
agate-dbf agate-dbf
agate-sql agate-sql
six six
setuptools # `csvsql` requires pkg_resources https://github.com/NixOS/nixpkgs/issues/93594 setuptools
]; ];
checkInputs = with python3.pkgs; [ checkInputs = with python3.pkgs; [
nose pytestCheckHook nose
pytestCheckHook
]; ];
pythonImportsCheck = [ "csvkit" ];
meta = with lib; { meta = with lib; {
description = "A suite of command-line tools for converting to and working with CSV"; description = "A suite of command-line tools for converting to and working with CSV";
maintainers = with maintainers; [ vrthra ]; maintainers = with maintainers; [ vrthra ];
license = licenses.mit; license = licenses.mit;
homepage = "https://github.com/wireservice/csvkit"; homepage = "https://github.com/wireservice/csvkit";
# FAIL: test_to_sql_create_statement_with_schema (tests.test_agatesql.TestSQL)
broken = true;
}; };
} }

View File

@ -16703,6 +16703,8 @@ in
raul = callPackage ../development/libraries/audio/raul { }; raul = callPackage ../development/libraries/audio/raul { };
raylib = callPackage ../development/libraries/raylib { };
readline = readline6; readline = readline6;
readline6 = readline63; readline6 = readline63;

View File

@ -402,7 +402,7 @@ lib.makeScope pkgs.newScope (self: with self; {
buildInputs = [ pcre' ] ++ lib.optionals (lib.versionAtLeast php.version "8.0") [ buildInputs = [ pcre' ] ++ lib.optionals (lib.versionAtLeast php.version "8.0") [
valgrind.dev valgrind.dev
]; ];
patches = [] ++ lib.optionals (lib.versionOlder php.version "7.4") [ patches = lib.optionals (lib.versionOlder php.version "7.4") [
(pkgs.writeText "zend_file_cache_config.patch" '' (pkgs.writeText "zend_file_cache_config.patch" ''
--- a/ext/opcache/zend_file_cache.c --- a/ext/opcache/zend_file_cache.c
+++ b/ext/opcache/zend_file_cache.c +++ b/ext/opcache/zend_file_cache.c