From 4f1ece1b2c50a7134c962cac4027e359168101d2 Mon Sep 17 00:00:00 2001 From: 06kellyjac Date: Mon, 7 Dec 2020 12:53:17 +0000 Subject: [PATCH 01/38] kube3d: 3.3.0 -> 3.4.0 --- pkgs/applications/networking/cluster/kube3d/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/cluster/kube3d/default.nix b/pkgs/applications/networking/cluster/kube3d/default.nix index 9163347d7b22..a97bf509fe46 100644 --- a/pkgs/applications/networking/cluster/kube3d/default.nix +++ b/pkgs/applications/networking/cluster/kube3d/default.nix @@ -1,11 +1,11 @@ { lib, buildGoModule, fetchFromGitHub, installShellFiles }: let - k3sVersion = "1.19.3-k3s3"; + k3sVersion = "1.19.4-k3s1"; in buildGoModule rec { pname = "kube3d"; - version = "3.3.0"; + version = "3.4.0"; excludedPackages = "tools"; @@ -13,7 +13,7 @@ buildGoModule rec { owner = "rancher"; repo = "k3d"; rev = "v${version}"; - sha256 = "1pq5x4fyn98f01mzfjv335gx29c61zd85qc5vhx9rk27hi825ima"; + sha256 = "1fisbzv786n841pagy7zbanll7k1g5ib805j9azs2s30cfhvi08b"; }; vendorSha256 = null; From abb4ae4e9f7a784cd2c35ffff965f6938b6fb3bf Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Mon, 7 Dec 2020 19:09:20 +0100 Subject: [PATCH 02/38] belcard: 4.4.0 -> 4.4.13 --- pkgs/development/libraries/belcard/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/belcard/default.nix b/pkgs/development/libraries/belcard/default.nix index 34b0560f3f46..ae9b1e6e43c5 100644 --- a/pkgs/development/libraries/belcard/default.nix +++ b/pkgs/development/libraries/belcard/default.nix @@ -7,7 +7,7 @@ stdenv.mkDerivation rec { pname = "belcard"; - version = "4.4.0"; + version = "4.4.13"; src = fetchFromGitLab { domain = "gitlab.linphone.org"; From ba6b3cb7564c26e1760013a14ca5057b0bc31563 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Mon, 7 Dec 2020 19:09:40 +0100 Subject: [PATCH 03/38] ortp: unstable-2020-03-17 -> 4.4.9 --- pkgs/development/libraries/ortp/default.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/ortp/default.nix b/pkgs/development/libraries/ortp/default.nix index 53636f05b789..f84f3ab1d83e 100644 --- a/pkgs/development/libraries/ortp/default.nix +++ b/pkgs/development/libraries/ortp/default.nix @@ -6,17 +6,15 @@ stdenv.mkDerivation rec { pname = "ortp"; - # Using master branch for linphone-desktop caused a chain reaction that many - # of its dependencies needed to use master branch too. - version = "unstable-2020-03-17"; + version = "4.4.9"; src = fetchFromGitLab { domain = "gitlab.linphone.org"; owner = "public"; group = "BC"; repo = pname; - rev = "804dfc4f90d1a4301127c7af10a74fd2935dd5d8"; - sha256 = "1yr8j8am68spyy5d9vna8zcq3qn039mi16cv9jf5n4chs9rxf7xx"; + rev = version; + sha256 = "0igiw863gnf9f626v0igg1pj3fv4anvlvlk6xx3bk2zdi52a9kcc"; }; # Do not build static libraries From c17a8f27171c3353fec29a3825d723d1d3e11e9c Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Mon, 7 Dec 2020 19:10:33 +0100 Subject: [PATCH 04/38] mediastreamer: unstable-2020-03-20 -> 4.4.13 --- pkgs/development/libraries/mediastreamer/default.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/mediastreamer/default.nix b/pkgs/development/libraries/mediastreamer/default.nix index 81c7c8fcacf3..64ddba517df8 100644 --- a/pkgs/development/libraries/mediastreamer/default.nix +++ b/pkgs/development/libraries/mediastreamer/default.nix @@ -33,17 +33,15 @@ stdenv.mkDerivation rec { pname = "mediastreamer2"; - # Using master branch for linphone-desktop caused a chain reaction that many - # of its dependencies needed to use master branch too. - version = "unstable-2020-03-20"; + version = "4.4.13"; src = fetchFromGitLab { domain = "gitlab.linphone.org"; owner = "public"; group = "BC"; repo = pname; - rev = "c5eecb72cb44376d142949051dd0cb7c982608fb"; - sha256 = "1vp260jxvjlmrmjdl4p23prg4cjln20a7z6zq8dqvfh4iq3ya033"; + rev = version; + sha256 = "0w84v1ajhyysr41qaj7x4njwdak84cc10lq33hl8lq68a52fc2vw"; }; patches = [ From 64f42418a6ed9b8529435a66ccd56098d9302eb0 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Mon, 7 Dec 2020 19:10:51 +0100 Subject: [PATCH 05/38] belle-sip: unstable-2020-02-18 -> 4.4.13 --- pkgs/development/libraries/belle-sip/default.nix | 16 +++++----------- pkgs/top-level/all-packages.nix | 5 +---- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/pkgs/development/libraries/belle-sip/default.nix b/pkgs/development/libraries/belle-sip/default.nix index a935372656e7..788e656301ba 100644 --- a/pkgs/development/libraries/belle-sip/default.nix +++ b/pkgs/development/libraries/belle-sip/default.nix @@ -2,7 +2,6 @@ , bctoolbox , cmake , fetchFromGitLab -, jre , libantlr3c , mbedtls , stdenv @@ -11,20 +10,18 @@ stdenv.mkDerivation rec { pname = "belle-sip"; - # Using master branch for linphone-desktop caused a chain reaction that many - # of its dependencies needed to use master branch too. - version = "unstable-2020-02-18"; + version = "4.4.13"; src = fetchFromGitLab { domain = "gitlab.linphone.org"; owner = "public"; group = "BC"; repo = pname; - rev = "0dcb13416eae87edf140771b886aedaf6be8cf60"; - sha256 = "0pzxk8mkkg6zsnmj1bwggbdjv864psx89gglfm51h8s501kg11fv"; + rev = version; + sha256 = "1ad7sqc5y4f3gc8glwmb3rvfzapnvhg981g13x90cg4nzikjvka0"; }; - nativeBuildInputs = [ jre cmake ]; + nativeBuildInputs = [ cmake antlr3_4 ]; buildInputs = [ zlib ]; @@ -37,10 +34,7 @@ stdenv.mkDerivation rec { "-Wno-error=cast-function-type" ]; - propagatedBuildInputs = [ antlr3_4 libantlr3c mbedtls bctoolbox ]; - - # Fails to build with lots of parallel jobs - enableParallelBuilding = false; + propagatedBuildInputs = [ libantlr3c mbedtls bctoolbox ]; meta = with stdenv.lib; { homepage = "https://linphone.org/technical-corner/belle-sip"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 184632f49246..11dcccf1bf15 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12388,10 +12388,7 @@ in inherit (llvmPackages_6) llvm clang-unwrapped; }; - belle-sip = callPackage ../development/libraries/belle-sip { - stdenv = gcc8Stdenv; - jre = jre8; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731 - }; + belle-sip = callPackage ../development/libraries/belle-sip { }; libbfd = callPackage ../development/libraries/libbfd { }; From 64c7999f76525a92be94d9bdcc5ac513335877bd Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Mon, 7 Dec 2020 19:11:14 +0100 Subject: [PATCH 06/38] liblinphone: unstable-2020-03-20 -> 4.4.15 --- .../libraries/liblinphone/default.nix | 36 +++---------------- 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/pkgs/development/libraries/liblinphone/default.nix b/pkgs/development/libraries/liblinphone/default.nix index 1c414b9dd866..21f9833a5d56 100644 --- a/pkgs/development/libraries/liblinphone/default.nix +++ b/pkgs/development/libraries/liblinphone/default.nix @@ -46,43 +46,18 @@ , xsd , zlib }: -let - # Got the following error when building: - # - # Your version of Doxygen (1.8.17) is known to malfunction with some of our - # macro definitions, which causes errors while wrapprers generation. Please - # install an older version of Doxygen (< 1.8.17) or disable documentation - # and wrapper generation. - # - # So, let's then use 1.8.16 version of doxygen in this derivation. Hopefully - # this workaround can be removed with some newer release of liblinphone. - doxygen_1_8_16 = doxygen.overrideAttrs ( - oldAttrs: rec { - name = "doxygen-1.8.16"; - src = fetchurl { - urls = [ - "mirror://sourceforge/doxygen/${name}.src.tar.gz" # faster, with https, etc. - "http://doxygen.nl/files/${name}.src.tar.gz" - ]; - sha256 = "10iwv8bcz5b5cd85gg8pgn0bmyg04n9hs36xn7ggjjnvynv1z67z"; - }; - buildInputs = oldAttrs.buildInputs ++ [ git ]; - } - ); -in + stdenv.mkDerivation rec { pname = "liblinphone"; - # Using master branch for linphone-desktop caused a chain reaction that many - # of its dependencies needed to use master branch too. - version = "unstable-2020-03-20"; + version = "4.4.15"; src = fetchFromGitLab { domain = "gitlab.linphone.org"; owner = "public"; group = "BC"; repo = pname; - rev = "1d762a3e0e304aa579798aed4400d2cee2c1ffa0"; - sha256 = "0ja38payyqbd8z6q5l5w6hi7xarmfj5021gh0qdk0j832br4c6c3"; + rev = version; + sha256 = "16a31c0n5lix4r5xk7p447xlxbrhdlmj11kb4y1krb5fx8hf65cl"; }; # Do not build static libraries @@ -103,7 +78,6 @@ stdenv.mkDerivation rec { cyrus_sasl ffmpeg_3 gdk-pixbuf - git glib gtk2 libX11 @@ -133,7 +107,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ bcunit cmake - doxygen_1_8_16 + doxygen graphviz intltool makeWrapper From c7447bc87ba736a3eb42155892f6336b152dd2e3 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Mon, 7 Dec 2020 19:41:38 +0100 Subject: [PATCH 07/38] minizip2: init at 2.10.4 --- .../libraries/minizip2/default.nix | 30 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/libraries/minizip2/default.nix diff --git a/pkgs/development/libraries/minizip2/default.nix b/pkgs/development/libraries/minizip2/default.nix new file mode 100644 index 000000000000..6c6d8b3ef86c --- /dev/null +++ b/pkgs/development/libraries/minizip2/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchFromGitHub, cmake, pkg-config, zlib, bzip2, xz, zstd, openssl }: + +stdenv.mkDerivation rec { + pname = "minizip"; + version = "2.10.4"; + + src = fetchFromGitHub { + owner = "nmoinvaz"; + repo = pname; + rev = version; + sha256 = "15bbagngvm738prkzv7lfs64pn4pq7jkhwz571j0w0nb5nw9c01x"; + }; + + nativeBuildInputs = [ cmake pkg-config ]; + + cmakeFlags = [ + "-DBUILD_SHARED_LIBS=YES" + "-DMZ_OPENSSL=ON" + ]; + + buildInputs = [ zlib bzip2 xz zstd openssl ]; + + meta = with stdenv.lib; { + description = "Compression library implementing the deflate compression method found in gzip and PKZIP"; + homepage = "https://github.com/nmoinvaz/minizip"; + license = licenses.zlib; + maintainers = with maintainers; [ gebner ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 11dcccf1bf15..4dcaec8a0ae9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14927,6 +14927,8 @@ in minizip = callPackage ../development/libraries/minizip { }; + minizip2 = callPackage ../development/libraries/minizip2 { }; + mkvtoolnix = libsForQt5.callPackage ../applications/video/mkvtoolnix { }; mkvtoolnix-cli = callPackage ../applications/video/mkvtoolnix { From a30310415cf39c61fcbe83df762123d2f445e7ea Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Mon, 7 Dec 2020 19:31:41 +0100 Subject: [PATCH 08/38] linphone: unstable-2020-03-06 -> 4.2.4 --- .../instant-messengers/linphone/default.nix | 74 ++--------- .../linphone/do-not-build-linphone-sdk.patch | 118 ++++++++++++++++++ .../linphone/fix_minizip_linking.patch | 13 -- ...remove-bc_compute_full_version-usage.patch | 74 +++++++++++ 4 files changed, 204 insertions(+), 75 deletions(-) create mode 100644 pkgs/applications/networking/instant-messengers/linphone/do-not-build-linphone-sdk.patch delete mode 100644 pkgs/applications/networking/instant-messengers/linphone/fix_minizip_linking.patch create mode 100644 pkgs/applications/networking/instant-messengers/linphone/remove-bc_compute_full_version-usage.patch diff --git a/pkgs/applications/networking/instant-messengers/linphone/default.nix b/pkgs/applications/networking/instant-messengers/linphone/default.nix index e27835851445..c055718f47f3 100644 --- a/pkgs/applications/networking/instant-messengers/linphone/default.nix +++ b/pkgs/applications/networking/instant-messengers/linphone/default.nix @@ -31,6 +31,7 @@ , mbedtls , mediastreamer , mediastreamer-openh264 +, minizip2 , mkDerivation , openldap , ortp @@ -47,81 +48,30 @@ , stdenv , udev , zlib - # For Minizip 2.2.7: -, fetchFromGitHub -, libbsd }: -let - # Linphone Desktop requires Minizip 2.2.7. Nixpkgs contains a very old version - # from the time when it was part of zlib. The most recent release of Minizip - # is currently 2.9.2 but Linphone Desktop didn't work with that. So, even if - # we added most recent Minizip version to nixpkgs, probably Minizip 2.2.7 is - # only needed here and we shouldn't add this semi-old version to - # all-packages.nix. Therefore, just define it here locally. - minizip2 = stdenv.mkDerivation rec { - pname = "minizip"; - version = "2.2.7"; - disabled = stdenv.isAarch32; - - src = fetchFromGitHub { - owner = "nmoinvaz"; - repo = pname; - rev = version; - sha256 = "1a88v1gjlflsd17mlrgxh420rpa38q0d17yh9q8j1zzqfrd1azch"; - }; - - nativeBuildInputs = [ cmake pkgconfig ]; - - cmakeFlags = [ - "-DBUILD_SHARED_LIBS=YES" - ]; - - buildInputs = [ - zlib - libbsd # required in 2.2.7 but not in 2.9.2? - ]; - - meta = with stdenv.lib; { - description = "Compression library implementing the deflate compression method found in gzip and PKZIP"; - homepage = "https://github.com/nmoinvaz/minizip"; - license = licenses.zlib; - platforms = platforms.unix; - }; - }; -in mkDerivation rec { pname = "linphone-desktop"; - # Latest release is 4.1.1 old and doesn't build with the latest releases of - # some of the dependencies so let's use the latest commit. - version = "unstable-2020-03-06"; + version = "4.2.4"; src = fetchFromGitLab { domain = "gitlab.linphone.org"; owner = "public"; group = "BC"; repo = pname; - rev = "971997e162558d37051f89c9c34bbc240135f704"; - sha256 = "02ji4r8bpcm2kyisn9d3054m026l33g2574i1ag1cmb2dz2p8i1c"; + rev = version; + sha256 = "1gq4l9p21rbrcksa7fbkzn9fzbbynqmn6ni6lhnvzk359sb1xvbz"; }; - # Without this patch, the build fails with: - # - # No rule to make target - # 'minizip_OUTPUT/nix/store/...linphone-desktop.../lib/libminizip.so', - # - # So, the makefile tries to use a full absolute path to the library but does - # it incorrectly. As we have installed Minizip properly, it's sufficient to - # just use "minizip" and the library is found automatically. If this patched - # target_link_libraries line was removed entirely, the build would fail at the - # very end when linking minizip. patches = [ - ./fix_minizip_linking.patch + ./do-not-build-linphone-sdk.patch + ./remove-bc_compute_full_version-usage.patch ]; # See: https://gitlab.linphone.org/BC/public/linphone-desktop/issues/21 postPatch = '' - substituteInPlace src/app/AppController.cpp \ + echo "project(linphoneqt VERSION ${version})" >linphone-app/linphoneqt_version.cmake + substituteInPlace linphone-app/src/app/AppController.cpp \ --replace "LINPHONE_QT_GIT_VERSION" "\"${version}\"" ''; @@ -214,18 +164,18 @@ mkDerivation rec { # those just need to be copied manually below. installPhase = '' mkdir -p $out/bin - cp linphone $out/bin/ + cp linphone-app/linphone $out/bin/ wrapProgram $out/bin/linphone \ --set MEDIASTREAMER_PLUGINS_DIR \ ${mediastreamer-openh264}/lib/mediastreamer/plugins mkdir -p $out/share/applications - sed -i "s@/build/.*/OUTPUT/bin@$out/bin@" linphone.desktop - cp linphone.desktop $out/share/applications/ - cp -r ../assets/icons $out/share/ + cp linphone-app/linphone.desktop $out/share/applications/ + cp -r ../linphone-app/assets/icons $out/share/ mkdir -p $out/share/belr/grammars ln -s ${liblinphone}/share/belr/grammars/* $out/share/belr/grammars/ mkdir -p $out/share/linphone ln -s ${liblinphone}/share/linphone/* $out/share/linphone/ + mkdir $out/lib # prevent warning ''; meta = with lib; { diff --git a/pkgs/applications/networking/instant-messengers/linphone/do-not-build-linphone-sdk.patch b/pkgs/applications/networking/instant-messengers/linphone/do-not-build-linphone-sdk.patch new file mode 100644 index 000000000000..fe774a479fac --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/linphone/do-not-build-linphone-sdk.patch @@ -0,0 +1,118 @@ +From 08b8b1811a1ad079fa713d19a8cc6bf2dc782bb7 Mon Sep 17 00:00:00 2001 +From: David P +Date: Thu, 26 Nov 2020 15:56:30 -0300 +Subject: [PATCH 1/2] do not build linphone-sdk + +Signed-off-by: David P +--- + CMakeLists.txt | 61 +------------------ + .../cmake_builder/additional_steps.cmake | 9 --- + 2 files changed, 3 insertions(+), 67 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index f7eb05f2..5921ee5b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -118,7 +118,6 @@ list(APPEND APP_OPTIONS "-DENABLE_RELATIVE_PREFIX=${ENABLE_RELATIVE_PREFIX}") + + list(APPEND APP_OPTIONS "-DLINPHONE_OUTPUT_DIR=${LINPHONE_OUTPUT_DIR}") + +-include(ExternalProject) + set(PROJECT_BUILD_COMMAND "") + if(CMAKE_BUILD_PARALLEL_LEVEL) + list(APPEND APP_OPTIONS "-DCMAKE_BUILD_PARALLEL_LEVEL=${CMAKE_BUILD_PARALLEL_LEVEL}") +@@ -136,29 +135,8 @@ if(UNIX AND NOT APPLE) + set(CMAKE_INSTALL_RPATH "$ORIGIN:$ORIGIN/lib64:$ORIGIN/../lib64:$ORIGIN/lib:$ORIGIN/../lib:${LINPHONE_OUTPUT_DIR}/${CMAKE_INSTALL_LIBDIR}") + list(APPEND APP_OPTIONS "-DCMAKE_INSTALL_RPATH=${CMAKE_INSTALL_RPATH}") + endif() +-ExternalProject_Add(sdk PREFIX "${CMAKE_BINARY_DIR}/sdk" +- SOURCE_DIR "${CMAKE_SOURCE_DIR}/linphone-sdk" +- INSTALL_DIR "${LINPHONE_OUTPUT_DIR}" +- STAMP_DIR "${SDK_BUILD_DIR}/stamp" +- BINARY_DIR "${SDK_BUILD_DIR}" +- STEP_TARGETS build +- BUILD_COMMAND ${CMAKE_COMMAND} --build --config $ ${PROJECT_BUILD_COMMAND} +- INSTALL_COMMAND ${CMAKE_COMMAND} -E echo "Install step is already done at build time." +- LIST_SEPARATOR | # Use the alternate list separator +- CMAKE_ARGS ${APP_OPTIONS} ${USER_ARGS} -DCMAKE_INSTALL_PREFIX:PATH= -DCMAKE_PREFIX_PATH=${PREFIX_PATH} +- #BUILD_ALWAYS NO #${DO_BUILD} +-) +-ExternalProject_Add_Step(sdk force_build +- COMMENT "Forcing build for 'desktop'" +- DEPENDEES configure +- DEPENDERS build +- ALWAYS 1 +-) + include(FindPkgConfig) + +-set(APP_DEPENDS sdk) +- +- + find_package(Qt5 5.12 COMPONENTS Core REQUIRED) + + if ( NOT Qt5_FOUND ) +@@ -173,39 +151,6 @@ find_package(Mediastreamer2 CONFIG QUIET) + find_package(ortp CONFIG QUIET) + + +-if(NOT (LinphoneCxx_FOUND) OR NOT (Linphone_FOUND) OR NOT (bctoolbox_FOUND) OR NOT (belcard_FOUND) OR NOT (Mediastreamer2_FOUND) OR NOT (ortp_FOUND) OR FORCE_APP_EXTERNAL_PROJECTS) +- message("Projects are set as External projects. You can start building them by using for example : cmake --build . --target install") +- ExternalProject_Add(linphone-qt PREFIX "${CMAKE_BINARY_DIR}/linphone-app" +- SOURCE_DIR "${CMAKE_SOURCE_DIR}/linphone-app" +- INSTALL_DIR "${APPLICATION_OUTPUT_DIR}" +- BINARY_DIR "${CMAKE_BINARY_DIR}/linphone-app" +- DEPENDS ${APP_DEPENDS} +- BUILD_COMMAND ${CMAKE_COMMAND} --build --config $ ${PROJECT_BUILD_COMMAND} +- INSTALL_COMMAND ${CMAKE_COMMAND} -E echo "Install step will not be done by external project" +- LIST_SEPARATOR | # Use the alternate list separator +- CMAKE_ARGS ${APP_OPTIONS} ${USER_ARGS} -DCMAKE_INSTALL_PREFIX:PATH= -DCMAKE_PREFIX_PATH=${PREFIX_PATH} +- # ${APP_OPTIONS} +- BUILD_ALWAYS ON +- ) +- install(CODE "message(STATUS Running install)") +- set(AUTO_REGENERATION auto_regeneration) +- add_custom_target(${AUTO_REGENERATION} ALL +- COMMAND ${CMAKE_COMMAND} ${CMAKE_CURRENT_SOURCE_DIR} +- DEPENDS linphone-qt) +-else() +- message("Adding Linphone Desktop in an IDE-friendly state") +- set(CMAKE_INSTALL_PREFIX "${APPLICATION_OUTPUT_DIR}") +- add_subdirectory(${CMAKE_SOURCE_DIR}/linphone-app) +- add_dependencies(app-library ${APP_DEPENDS}) +-endif() +-ExternalProject_Add(linphone-qt-only PREFIX "${CMAKE_BINARY_DIR}/linphone-app" +- SOURCE_DIR "${CMAKE_SOURCE_DIR}/linphone-app" +- INSTALL_DIR "${APPLICATION_OUTPUT_DIR}" +- BINARY_DIR "${CMAKE_BINARY_DIR}/linphone-app" +- BUILD_COMMAND ${CMAKE_COMMAND} --build --config $ ${PROJECT_BUILD_COMMAND} +-# INSTALL_COMMAND ${CMAKE_COMMAND} -E echo "Install step is already done at build time." +- LIST_SEPARATOR | # Use the alternate list separator +- CMAKE_ARGS ${APP_OPTIONS} ${USER_ARGS} -DCMAKE_INSTALL_PREFIX:PATH= -DCMAKE_PREFIX_PATH=${PREFIX_PATH} +- EXCLUDE_FROM_ALL ON +- BUILD_ALWAYS ON +-) ++message("Adding Linphone Desktop in an IDE-friendly state") ++set(CMAKE_INSTALL_PREFIX "${APPLICATION_OUTPUT_DIR}") ++add_subdirectory(${CMAKE_SOURCE_DIR}/linphone-app) +diff --git a/linphone-app/cmake_builder/additional_steps.cmake b/linphone-app/cmake_builder/additional_steps.cmake +index 7f7fd573..a69a04e8 100644 +--- a/linphone-app/cmake_builder/additional_steps.cmake ++++ b/linphone-app/cmake_builder/additional_steps.cmake +@@ -54,14 +54,5 @@ if (ENABLE_PACKAGING) + linphone_builder_apply_flags() + linphone_builder_set_ep_directories(linphone_package) + linphone_builder_expand_external_project_vars() +- ExternalProject_Add(TARGET_linphone_package +- DEPENDS TARGET_linphone_builder +- TMP_DIR ${ep_tmp} +- BINARY_DIR ${ep_build} +- SOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}/linphone_package" +- DOWNLOAD_COMMAND "" +- CMAKE_GENERATOR ${CMAKE_GENERATOR} +- CMAKE_ARGS ${LINPHONE_BUILDER_EP_ARGS} -DCMAKE_INSTALL_PREFIX=${LINPHONE_BUILDER_WORK_DIR}/PACKAGE -DTOOLS_DIR=${CMAKE_BINARY_DIR}/programs -DLINPHONE_OUTPUT_DIR=${CMAKE_INSTALL_PREFIX} -DLINPHONE_DESKTOP_DIR=${CMAKE_CURRENT_LIST_DIR}/.. -DLINPHONE_SOURCE_DIR=${EP_linphone_SOURCE_DIR} ${ENABLE_VARIABLES} -DLINPHONE_BUILDER_SIGNING_IDENTITY=${LINPHONE_BUILDER_SIGNING_IDENTITY} +- ) + endif () + endif () +-- +2.29.2 + diff --git a/pkgs/applications/networking/instant-messengers/linphone/fix_minizip_linking.patch b/pkgs/applications/networking/instant-messengers/linphone/fix_minizip_linking.patch deleted file mode 100644 index bb88d0030fae..000000000000 --- a/pkgs/applications/networking/instant-messengers/linphone/fix_minizip_linking.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 3ee77441..18ea5c27 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -517,7 +517,7 @@ else() - target_link_libraries(${TARGET_NAME} "${MINIZIP_OUTPUT_DIR}/${CMAKE_INSTALL_LIBDIR}/libminizip.dylib") - execute_process(COMMAND install_name_tool -id "@executable_path/../Frameworks/libminizip.dylib" "${MINIZIP_OUTPUT_DIR}/${CMAKE_INSTALL_LIBDIR}/libminizip.dylib") - elseif(NOT WIN32) -- target_link_libraries(${TARGET_NAME} "${MINIZIP_OUTPUT_DIR}/${CMAKE_INSTALL_LIBDIR}/libminizip.so") -+ target_link_libraries(${TARGET_NAME} "minizip") - endif() - endif()#If (LinphoneCxx_FOUND AND Minizip_FOUND) - endif()#If (LinphoneCxx_FOUND) diff --git a/pkgs/applications/networking/instant-messengers/linphone/remove-bc_compute_full_version-usage.patch b/pkgs/applications/networking/instant-messengers/linphone/remove-bc_compute_full_version-usage.patch new file mode 100644 index 000000000000..547652d3af7f --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/linphone/remove-bc_compute_full_version-usage.patch @@ -0,0 +1,74 @@ +From 6fc23da651d54979e73776fcda38614e290d65dc Mon Sep 17 00:00:00 2001 +From: David P +Date: Fri, 23 Oct 2020 16:44:17 -0300 +Subject: [PATCH 2/2] remove bc_compute_full_version usage + +--- + linphone-app/CMakeLists.txt | 11 +---------- + linphone-app/build/CMakeLists.txt | 5 ----- + .../cmake_builder/linphone_package/CMakeLists.txt | 10 +--------- + 3 files changed, 2 insertions(+), 24 deletions(-) + +diff --git a/linphone-app/CMakeLists.txt b/linphone-app/CMakeLists.txt +index 3bc9420a..27b418ee 100644 +--- a/linphone-app/CMakeLists.txt ++++ b/linphone-app/CMakeLists.txt +@@ -21,17 +21,8 @@ + ################################################################################ + cmake_minimum_required(VERSION 3.1) + ++include(linphoneqt_version.cmake) + find_package(bctoolbox CONFIG) +-set(FULL_VERSION ) +-bc_compute_full_version(FULL_VERSION) +-set(version_major ) +-set(version_minor ) +-set(version_patch ) +-set(identifiers ) +-set(metadata ) +-bc_parse_full_version("${FULL_VERSION}" version_major version_minor version_patch identifiers metadata) +- +-project(linphoneqt VERSION "${version_major}.${version_minor}.${version_patch}") + + if(ENABLE_BUILD_VERBOSE) + #message("CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH}") +diff --git a/linphone-app/build/CMakeLists.txt b/linphone-app/build/CMakeLists.txt +index 8ef03faa..97d94bd6 100644 +--- a/linphone-app/build/CMakeLists.txt ++++ b/linphone-app/build/CMakeLists.txt +@@ -46,11 +46,6 @@ set(CPACK_SOURCE_IGNORE_FILES + "libmng.spec" + ) + +-bc_compute_full_version(PROJECT_VERSION_BUILD) +-if(PROJECT_VERSION_BUILD) +- set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${PROJECT_VERSION_BUILD}") +-endif() +- + message("-- Package file name is ${CPACK_PACKAGE_FILE_NAME}") + + set(CPACK_SOURCE_PACKAGE_FILE_NAME ${CPACK_PACKAGE_FILE_NAME}) +diff --git a/linphone-app/cmake_builder/linphone_package/CMakeLists.txt b/linphone-app/cmake_builder/linphone_package/CMakeLists.txt +index baea03cf..08ffc1b5 100644 +--- a/linphone-app/cmake_builder/linphone_package/CMakeLists.txt ++++ b/linphone-app/cmake_builder/linphone_package/CMakeLists.txt +@@ -38,15 +38,7 @@ set(LINPHONE_QML_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../ui") + # ============================================================================== + # Build package version. + # ============================================================================== +-bc_compute_full_version(APP_PROJECT_VERSION) +-if (GIT_EXECUTABLE AND NOT(APP_PROJECT_VERSION)) +- execute_process( +- COMMAND ${GIT_EXECUTABLE} describe --always +- OUTPUT_VARIABLE APP_PROJECT_VERSION +- OUTPUT_STRIP_TRAILING_WHITESPACE +- WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../.." +- ) +-elseif (NOT(APP_PROJECT_VERSION)) ++if (NOT(APP_PROJECT_VERSION)) + set(APP_PROJECT_VERSION "0.0.0") + endif () + string(REGEX REPLACE "([0-9.]+)-?.*" "\\1" LINPHONE_VERSION "${APP_PROJECT_VERSION}") +-- +2.29.2 + From 4437752e3976722ba0e998c3e28c4cdc49ae31e5 Mon Sep 17 00:00:00 2001 From: Benjamin Asbach Date: Tue, 24 Nov 2020 21:16:04 +0100 Subject: [PATCH 09/38] netbeans: 12.1 -> 12.2 --- pkgs/applications/editors/netbeans/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/netbeans/default.nix b/pkgs/applications/editors/netbeans/default.nix index 718b1b8dcb61..a83bea7ed8d7 100644 --- a/pkgs/applications/editors/netbeans/default.nix +++ b/pkgs/applications/editors/netbeans/default.nix @@ -3,7 +3,7 @@ }: let - version = "12.1"; + version = "12.2"; desktopItem = makeDesktopItem { name = "netbeans"; exec = "netbeans"; @@ -19,7 +19,7 @@ stdenv.mkDerivation { inherit version; src = fetchurl { url = "mirror://apache/netbeans/netbeans/${version}/netbeans-${version}-bin.zip"; - sha512 = "ad4bb5b191c784ed144b0b4831a8b95e0707c362917833c279d3f6fad11d7b3fb1f004f30121a941b694fc2ce323974b15072aa31cb5449111bc5d33d0d77103"; + sha512 = "b25cda9830e8fe1d05687b08cc5fa9bcac7e8e6d12776998a4da7e483b3be0d04493345e56be7e6198fa8f86428d57d4459bfa7372c2e3f918f4a1101d0a31a7"; }; buildCommand = '' From a9616e521f6dadad15cc07747595679848ab2495 Mon Sep 17 00:00:00 2001 From: Benjamin Asbach Date: Tue, 8 Dec 2020 01:08:27 +0100 Subject: [PATCH 10/38] netbeans: remove windows binaries before copying package to output --- pkgs/applications/editors/netbeans/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/editors/netbeans/default.nix b/pkgs/applications/editors/netbeans/default.nix index a83bea7ed8d7..eb4698c69d6f 100644 --- a/pkgs/applications/editors/netbeans/default.nix +++ b/pkgs/applications/editors/netbeans/default.nix @@ -27,6 +27,8 @@ stdenv.mkDerivation { unzip $src patchShebangs . + rm netbeans/bin/*.exe + # Copy to installation directory and create a wrapper capable of starting # it. mkdir -pv $out/bin From 537b1abc3e3d3ae75b11c6ad939d3d2815d7e196 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Tue, 8 Dec 2020 00:58:25 +0000 Subject: [PATCH 11/38] mympd: 6.8.1 -> 6.8.3 --- pkgs/applications/audio/mympd/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/mympd/default.nix b/pkgs/applications/audio/mympd/default.nix index 5c8c5e7c7bff..cc709822d9e5 100644 --- a/pkgs/applications/audio/mympd/default.nix +++ b/pkgs/applications/audio/mympd/default.nix @@ -12,13 +12,13 @@ stdenv.mkDerivation rec { pname = "mympd"; - version = "6.8.1"; + version = "6.8.3"; src = fetchFromGitHub { owner = "jcorporation"; repo = "myMPD"; rev = "v${version}"; - sha256 = "dIGg2mLxN6XBDH3GFXtF7nB9a/zf/qMlPCvIulFRXn8="; + sha256 = "1a3jrqslxk2a9h5gj6kch108lg9z0i5zwr0j9yd5viyfhr3ka4cq"; }; nativeBuildInputs = [ From 3cd1a6706ceaeca09b3cc15322f9c75d25883a46 Mon Sep 17 00:00:00 2001 From: Peng Mei Yu Date: Tue, 8 Dec 2020 09:18:13 +0800 Subject: [PATCH 12/38] unbound: Add AF_NETLINK to allowed address families. Unbound throws the following error: --8<---------------cut here---------------start------------->8--- error: failed to list interfaces: getifaddrs: Address family not supported by protocol fatal error: could not open ports --8<---------------cut here---------------end--------------->8--- The solution is pulled from upstream: https://github.com/NLnetLabs/unbound/pull/351 --- nixos/modules/services/networking/unbound.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/unbound.nix b/nixos/modules/services/networking/unbound.nix index 9a46fa3075fa..622c3d8ea434 100644 --- a/nixos/modules/services/networking/unbound.nix +++ b/nixos/modules/services/networking/unbound.nix @@ -195,7 +195,7 @@ in RuntimeDirectory = "unbound"; ConfigurationDirectory = "unbound"; StateDirectory = "unbound"; - RestrictAddressFamilies = [ "AF_INET" "AF_INET6" "AF_UNIX" ]; + RestrictAddressFamilies = [ "AF_INET" "AF_INET6" "AF_NETLINK" "AF_UNIX" ]; RestrictRealtime = true; SystemCallArchitectures = "native"; SystemCallFilter = [ From d35b635628c417dd1f46f6a9d26e4b3be98c0a1b Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Tue, 8 Dec 2020 13:39:25 +0100 Subject: [PATCH 13/38] chromedriver.src: Update the hash I just regenerated upstream-info.json using update.py again and got a different hash this time (but the same hash as in #106272). Therefore, the only possible explanation I have is that upstream changed the file that is hosted at [0]. I'll try to contact upstream regarding this. Fix #106272. [0]: https://chromedriver.storage.googleapis.com/87.0.4280.88/chromedriver_linux64.zip --- .../networking/browsers/chromium/upstream-info.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/networking/browsers/chromium/upstream-info.json b/pkgs/applications/networking/browsers/chromium/upstream-info.json index 6343dd4b2468..15899d31e726 100644 --- a/pkgs/applications/networking/browsers/chromium/upstream-info.json +++ b/pkgs/applications/networking/browsers/chromium/upstream-info.json @@ -13,7 +13,7 @@ }, "chromedriver": { "version": "87.0.4280.88", - "sha256_linux": "141mr2jiy3nslwd3s43m4i6plkv9wv5fgi78cn7mz0ac9x6fpcgx", + "sha256_linux": "11plh2hs2zpa14ymlbnj92pa58krl28yw4c0s55wk8qsxvzvl02m", "sha256_darwin": "048hsqp6575r980m769lzznvxypmfcwn89f1d3ik751ymzmb5r78" } }, From 7e8e71f73e37c2979b7d468917c7698b97f5300c Mon Sep 17 00:00:00 2001 From: "Robert T. McGibbon" Date: Sun, 15 Nov 2020 16:43:17 -0500 Subject: [PATCH 14/38] nice-dcv-client: init at 2020.2.1737-1 --- .../remote/nice-dcv-client/default.nix | 87 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 89 insertions(+) create mode 100644 pkgs/applications/networking/remote/nice-dcv-client/default.nix diff --git a/pkgs/applications/networking/remote/nice-dcv-client/default.nix b/pkgs/applications/networking/remote/nice-dcv-client/default.nix new file mode 100644 index 000000000000..19e65c0bdb3d --- /dev/null +++ b/pkgs/applications/networking/remote/nice-dcv-client/default.nix @@ -0,0 +1,87 @@ +{ stdenv +, fetchurl +, glib +, libX11 +, gst_all_1 +, sqlite +, epoxy +, pango +, cairo +, gdk-pixbuf +, e2fsprogs +, libkrb5 +, libva +, openssl +, pcsclite +, gtk3 +, libselinux +, libxml2 +, python3Packages +, cpio +, autoPatchelfHook +}: + +stdenv.mkDerivation rec { + pname = "nice-dcv-client"; + version = "2020.2.1737-1"; + + src = + fetchurl { + url = "https://d1uj6qtbmh3dt5.cloudfront.net/2020.2/Clients/nice-dcv-viewer-${version}.el8.x86_64.rpm"; + sha256 = "sha256-SUpfHd/Btc07cfjc3zx5I5BiNatr/c4E2/mfJuU4R1E="; + }; + + nativeBuildInputs = [ autoPatchelfHook python3Packages.rpm ]; + unpackPhase = '' + rpm2cpio $src | ${cpio}/bin/cpio -idm + ''; + + buildInputs = [ + libselinux + libkrb5 + libxml2 + libva + e2fsprogs + libX11 + openssl + pcsclite + gtk3 + cairo + epoxy + pango + gdk-pixbuf + gst_all_1.gstreamer + gst_all_1.gst-plugins-base + ]; + + installPhase = '' + mkdir -p $out/bin/ + mkdir -p $out/lib64/ + + mv usr/bin/dcvviewer $out/bin/dcvviewer + mv usr/lib64/* $out/lib64/ + + mkdir -p $out/libexec/dcvviewer + mv usr/libexec/dcvviewer/dcvviewer $out/libexec/dcvviewer/dcvviewer + patchelf \ + --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ + $out/libexec/dcvviewer/dcvviewer + + # Fix the wrapper script to have the right basedir. + sed -i "s#basedir=/usr#basedir=$out#" $out/bin/dcvviewer + + mv usr/share $out/ + ${glib.dev}/bin/glib-compile-schemas $out/share/glib-2.0/schemas + + # broken symlink, seems to give a warning message if i don't delete it + rm $out/lib64/dcvviewer/gio/modules/libdconfsettings.so + ''; + + meta = with stdenv.lib; { + description = "High-performance remote display protocol"; + homepage = "https://aws.amazon.com/hpc/dcv/"; + license = licenses.unfree; + platforms = platforms.linux; + maintainers = with maintainers; [ rmcgibbo ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 460a9e39e4f5..8589df069dc4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22580,6 +22580,8 @@ julia_15 = callPackage ../development/compilers/julia/1.5.nix { geoip = geoipWithDatabase; }; + nice-dcv-client = callPackage ../applications/networking/remote/nice-dcv-client { }; + nixos-shell = callPackage ../tools/virtualization/nixos-shell {}; noaa-apt = callPackage ../applications/radio/noaa-apt { }; From 833c76d138bebcdafa03ebf623b1575ab2c3018c Mon Sep 17 00:00:00 2001 From: "Robert T. McGibbon" Date: Mon, 7 Dec 2020 09:51:36 -0500 Subject: [PATCH 15/38] maintainers: add rmcgibbo --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 2838f60ad003..383d21c08d9d 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -7403,6 +7403,12 @@ githubId = 13752145; name = "Richard Lupton"; }; + rmcgibbo = { + email = "rmcgibbo@gmail.com"; + github = "rmcgibbo"; + githubId = 641278; + name = "Robert T. McGibbon"; + }; rnhmjoj = { email = "rnhmjoj@inventati.org"; github = "rnhmjoj"; From 8ee53823058bbd089dc1457a6ec143784a160cd5 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Tue, 8 Dec 2020 13:16:41 +0100 Subject: [PATCH 16/38] ocamlPackages.tls: 0.12.7 -> 0.12.8 --- pkgs/development/ocaml-modules/tls/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/ocaml-modules/tls/default.nix b/pkgs/development/ocaml-modules/tls/default.nix index 5aa3ecb0bf17..2ee01ed82194 100644 --- a/pkgs/development/ocaml-modules/tls/default.nix +++ b/pkgs/development/ocaml-modules/tls/default.nix @@ -6,12 +6,12 @@ buildDunePackage rec { minimumOCamlVersion = "4.08"; - version = "0.12.7"; + version = "0.12.8"; pname = "tls"; src = fetchurl { url = "https://github.com/mirleft/ocaml-tls/releases/download/v${version}/tls-v${version}.tbz"; - sha256 = "1c7hmcpcxn1bfa9cavqzriv7py2q7xfbdpb7kh1kb3j1qjap17dc"; + sha256 = "0sgppvfnamfnsglw1cl801i1xqkxbs33g40kwmmqj2vqjcarm26a"; }; useDune2 = true; From 827bb3b9c075b56e8fb44ef2cb2f7ed953cd478f Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Tue, 8 Dec 2020 16:29:06 +0100 Subject: [PATCH 17/38] coin3d: 4.0.0 -> 2020-12-07-unstable --- pkgs/development/libraries/coin3d/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/coin3d/default.nix b/pkgs/development/libraries/coin3d/default.nix index 7fd676372534..c76aaa4c8e53 100644 --- a/pkgs/development/libraries/coin3d/default.nix +++ b/pkgs/development/libraries/coin3d/default.nix @@ -1,14 +1,15 @@ -{ fetchFromGitHub, stdenv, boost, cmake, libGL, libGLU }: +{ fetchFromGitHub, stdenv, boost, cmake, libX11, libGL, libGLU }: stdenv.mkDerivation rec { pname = "coin"; - version = "4.0.0"; + version = "2020-12-07-unstable"; src = fetchFromGitHub { owner = "coin3d"; repo = "coin"; - rev = "Coin-${version}"; - sha256 = "1ayg0hl8wanhadahm5xbghghxw1qjwqbrs3dl3ngnff027hsyf8p"; + # rev = "Coin-${version}"; + rev = "d5539998aff272b349590fe74d068659682ecd0d"; + sha256 = "11jaz8p9nn8jpd6dsgwgkldwr7z829gyf64g014qyyh8l6p7jzzd"; }; postPatch = '' @@ -16,7 +17,7 @@ stdenv.mkDerivation rec { ''; nativeBuildInputs = [ cmake ]; - buildInputs = [ boost libGL libGLU ]; + buildInputs = [ boost libX11 libGL libGLU ]; meta = with stdenv.lib; { homepage = "https://github.com/coin3d/coin"; From 2e64b946f86bdf9993c6b9ef0e642e1d7a94939d Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Tue, 8 Dec 2020 16:29:28 +0100 Subject: [PATCH 18/38] soqt: 1.6.0 -> 2020-12-05-unstable --- pkgs/development/libraries/soqt/default.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/soqt/default.nix b/pkgs/development/libraries/soqt/default.nix index de11407e12b9..8d69c328eed9 100644 --- a/pkgs/development/libraries/soqt/default.nix +++ b/pkgs/development/libraries/soqt/default.nix @@ -1,12 +1,16 @@ -{ fetchurl, stdenv, coin3d, qtbase, cmake, pkgconfig }: +{ fetchFromGitHub, stdenv, coin3d, qtbase, cmake, pkgconfig }: stdenv.mkDerivation rec { pname = "soqt"; - version = "1.6.0"; + version = "2020-12-05-unstable"; - src = fetchurl { - url = "https://github.com/coin3d/soqt/releases/download/SoQt-${version}/soqt-${version}-src.tar.gz"; - sha256 = "07qfljy286vb7y1p93205zn9sp1lpn0rcrqm5010gj87kzsmllwz"; + src = fetchFromGitHub { + owner = "coin3d"; + repo = "soqt"; + # rev = "SoQt-${version}"; + rev = "fb8f655632bb9c9c60e0ff9fa69a5ba22d3ff99d"; + sha256 = "sha256-YoBq8P3Tag2Sepqxf/qIcJDBhH/gladBmDUj78aacZs="; + fetchSubmodules = true; }; buildInputs = [ coin3d qtbase ]; From ee545c66ca6ee92dde9bc5c6676cc6e3c50219fc Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Tue, 8 Dec 2020 16:32:26 +0100 Subject: [PATCH 19/38] freecad: 2020-10-17 -> 2020-12-08 --- pkgs/applications/graphics/freecad/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/graphics/freecad/default.nix b/pkgs/applications/graphics/freecad/default.nix index 3a5d36dfac19..f1e366b65699 100644 --- a/pkgs/applications/graphics/freecad/default.nix +++ b/pkgs/applications/graphics/freecad/default.nix @@ -9,13 +9,13 @@ let pythonPackages = python3Packages; in mkDerivation rec { pname = "freecad-unstable"; - version = "2020-10-17"; + version = "2020-12-08"; src = fetchFromGitHub { owner = "FreeCAD"; repo = "FreeCAD"; - rev = "f3bdaaa55a6c03b297924c40819d23e4603fa55b"; - sha256 = "1q1iy4i9k65v8z7h8a6r4bf5ycn124jp26xwp0xwbar4gnkx2jiq"; + rev = "daea30341ea2d5eaf2bfb65614128a5fa2abc8b7"; + sha256 = "1fza64lygqq35v7kzgqmiq5dvl5rpgkhlzv06f9dszdz44hznina"; }; nativeBuildInputs = [ From e4a7c4268b2f6a4382bdd5e17265c7df145139f0 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Wed, 2 Dec 2020 08:27:16 +0100 Subject: [PATCH 20/38] =?UTF-8?q?ocaml-ng.ocamlPackages=5F4=5F12.ocaml:=20?= =?UTF-8?q?4.12.0~=CE=B11=20=E2=86=92=204.12.0~=CE=B12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/compilers/ocaml/4.12.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/compilers/ocaml/4.12.nix b/pkgs/development/compilers/ocaml/4.12.nix index 9fa5d62423cc..444d332817b6 100644 --- a/pkgs/development/compilers/ocaml/4.12.nix +++ b/pkgs/development/compilers/ocaml/4.12.nix @@ -1,9 +1,9 @@ import ./generic.nix { major_version = "4"; minor_version = "12"; - patch_version = "0-alpha1"; + patch_version = "0-alpha2"; src = fetchTarball { - url = "http://caml.inria.fr/pub/distrib/ocaml-4.12/ocaml-4.12.0~alpha1.tar.xz"; - sha256 = "1p9nnj7l43b697b6bm767znbf1h0s2lyc1qb8izr1vfpsmnm11ws"; + url = "http://caml.inria.fr/pub/distrib/ocaml-4.12/ocaml-4.12.0~alpha2.tar.xz"; + sha256 = "148vgjcfajjvrvh0q9kb2y7fszqd02cikb5wyznz7kjxka6xxyn9"; }; } From 02698c9618c7c8248a8a63e950bcdaa8e02adbc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Tue, 8 Dec 2020 17:14:54 +0100 Subject: [PATCH 21/38] hsphfpd: 2020-11-27 -> 2020-12-05 --- pkgs/servers/pulseaudio/hsphfpd.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/pulseaudio/hsphfpd.nix b/pkgs/servers/pulseaudio/hsphfpd.nix index dd2f5f07a2f0..9a235434ce32 100644 --- a/pkgs/servers/pulseaudio/hsphfpd.nix +++ b/pkgs/servers/pulseaudio/hsphfpd.nix @@ -5,13 +5,13 @@ let in stdenv.mkDerivation { pname = "hsphfpd"; - version = "2020-11-27"; + version = "2020-12-05"; src = fetchFromGitHub { owner = "pali"; repo = "hsphfpd-prototype"; - rev = "58ffbf8f1b457e46801039d572cd344472828714"; - sha256 = "1hyg3cz6s58k6a7a3hcbs6wfk14cflnikd9psi7sirq6cn1z0ggb"; + rev = "d294d064879591e9570ca3f444fa3eee2f269df8"; + sha256 = "0pm5rbsfrm04hnifzdmsyz17rjk8h9h6d19jaikjc5y36z03xf1c"; }; nativeBuildInputs = [ makeWrapper ]; From e56e8d4f7405f1739b63661f0905502f0f9eb2c8 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sat, 5 Dec 2020 17:27:26 +0100 Subject: [PATCH 22/38] ocamlPackages.mirage-time: use Dune 2 --- pkgs/development/ocaml-modules/mirage-time/default.nix | 2 ++ pkgs/development/ocaml-modules/mirage-time/unix.nix | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/mirage-time/default.nix b/pkgs/development/ocaml-modules/mirage-time/default.nix index b98fd3b6279c..2e91bda61d6b 100644 --- a/pkgs/development/ocaml-modules/mirage-time/default.nix +++ b/pkgs/development/ocaml-modules/mirage-time/default.nix @@ -6,6 +6,8 @@ buildDunePackage rec { pname = "mirage-time"; version = "2.0.1"; + useDune2 = true; + src = fetchurl { url = "https://github.com/mirage/mirage-time/releases/download/v${version}/mirage-time-v${version}.tbz"; sha256 = "1w6mm4g7fc19cs0ncs0s9fsnb1k1s04qqzs9bsqvq8ngsb90cbh0"; diff --git a/pkgs/development/ocaml-modules/mirage-time/unix.nix b/pkgs/development/ocaml-modules/mirage-time/unix.nix index da5326bc0751..c19ca30fe024 100644 --- a/pkgs/development/ocaml-modules/mirage-time/unix.nix +++ b/pkgs/development/ocaml-modules/mirage-time/unix.nix @@ -3,7 +3,7 @@ buildDunePackage { pname = "mirage-time-unix"; - inherit (mirage-time) src version minimumOCamlVersion; + inherit (mirage-time) src useDune2 version minimumOCamlVersion; propagatedBuildInputs = [ mirage-time ocaml_lwt duration ]; From 46281741b2be8fcee97bd72efa611a28f3a086e2 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sat, 5 Dec 2020 17:27:35 +0100 Subject: [PATCH 23/38] ocamlPackages.graphql: use Dune 2 --- pkgs/development/ocaml-modules/graphql/default.nix | 6 +++--- pkgs/development/ocaml-modules/graphql/lwt.nix | 6 +++--- pkgs/development/ocaml-modules/graphql/parser.nix | 4 +++- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/pkgs/development/ocaml-modules/graphql/default.nix b/pkgs/development/ocaml-modules/graphql/default.nix index 22b7bf35f8e1..f3adfdc87a9d 100644 --- a/pkgs/development/ocaml-modules/graphql/default.nix +++ b/pkgs/development/ocaml-modules/graphql/default.nix @@ -1,13 +1,13 @@ -{ lib, buildDunePackage, alcotest, graphql_parser, rresult, yojson }: +{ buildDunePackage, alcotest, graphql_parser, rresult, yojson }: buildDunePackage rec { pname = "graphql"; - inherit (graphql_parser) version src; + inherit (graphql_parser) version useDune2 src; propagatedBuildInputs = [ graphql_parser rresult yojson ]; - checkInputs = lib.optional doCheck alcotest; + checkInputs = [ alcotest ]; doCheck = true; diff --git a/pkgs/development/ocaml-modules/graphql/lwt.nix b/pkgs/development/ocaml-modules/graphql/lwt.nix index 37d75f9e22ea..187856da0d61 100644 --- a/pkgs/development/ocaml-modules/graphql/lwt.nix +++ b/pkgs/development/ocaml-modules/graphql/lwt.nix @@ -1,13 +1,13 @@ -{ lib, buildDunePackage, alcotest, graphql, ocaml_lwt }: +{ buildDunePackage, alcotest, graphql, ocaml_lwt }: buildDunePackage rec { pname = "graphql-lwt"; - inherit (graphql) version src; + inherit (graphql) version useDune2 src; propagatedBuildInputs = [ graphql ocaml_lwt ]; - checkInputs = lib.optional doCheck alcotest; + checkInputs = [ alcotest ]; doCheck = true; diff --git a/pkgs/development/ocaml-modules/graphql/parser.nix b/pkgs/development/ocaml-modules/graphql/parser.nix index 4172ccd8d043..62f8ca1ef129 100644 --- a/pkgs/development/ocaml-modules/graphql/parser.nix +++ b/pkgs/development/ocaml-modules/graphql/parser.nix @@ -4,6 +4,8 @@ buildDunePackage rec { pname = "graphql_parser"; version = "0.13.0"; + useDune2 = true; + minimumOCamlVersion = "4.03"; src = fetchurl { @@ -14,7 +16,7 @@ buildDunePackage rec { nativeBuildInputs = [ menhir ]; propagatedBuildInputs = [ fmt re ]; - checkInputs = lib.optional doCheck alcotest; + checkInputs = [ alcotest ]; doCheck = true; From 73182c1442f26386aff968b07f0a2ec7d3dd14b3 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sat, 5 Dec 2020 17:27:37 +0100 Subject: [PATCH 24/38] ocamlPackages.gmap: use Dune 2 --- pkgs/development/ocaml-modules/gmap/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/gmap/default.nix b/pkgs/development/ocaml-modules/gmap/default.nix index 2585dfcaa968..407919f91bc3 100644 --- a/pkgs/development/ocaml-modules/gmap/default.nix +++ b/pkgs/development/ocaml-modules/gmap/default.nix @@ -1,9 +1,11 @@ -{ lib, buildDunePackage, fetchurl, alcotest }: +{ lib, buildDunePackage, ocaml, fetchurl, alcotest }: buildDunePackage rec { pname = "gmap"; version = "0.3.0"; + useDune2 = true; + src = fetchurl { url = "https://github.com/hannesm/gmap/releases/download/${version}/gmap-${version}.tbz"; sha256 = "073wa0lrb0jj706j87cwzf1a8d1ff14100mnrjs8z3xc4ri9xp84"; @@ -11,9 +13,9 @@ buildDunePackage rec { minimumOCamlVersion = "4.03"; - buildInputs = [ alcotest ]; + checkInputs = [ alcotest ]; - doCheck = true; + doCheck = lib.versionAtLeast ocaml.version "4.05"; meta = { description = "Heterogenous maps over a GADT"; From bee0a512d0873d56d4860fcbc3109e7263e828d9 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sat, 5 Dec 2020 17:27:41 +0100 Subject: [PATCH 25/38] ocamlPackages.domain-name: use Dune 2 --- pkgs/development/ocaml-modules/domain-name/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/domain-name/default.nix b/pkgs/development/ocaml-modules/domain-name/default.nix index cb0105ff46fa..a34c06aa8ee1 100644 --- a/pkgs/development/ocaml-modules/domain-name/default.nix +++ b/pkgs/development/ocaml-modules/domain-name/default.nix @@ -7,6 +7,8 @@ buildDunePackage rec { pname = "domain-name"; version = "0.3.0"; + useDune2 = true; + src = fetchurl { url = "https://github.com/hannesm/domain-name/releases/download/v${version}/domain-name-v${version}.tbz"; sha256 = "12kc9p2a2fi1ipc2hyhbzivxpph3npglxwdgvhd6v20rqqdyvnad"; @@ -14,7 +16,7 @@ buildDunePackage rec { minimumOCamlVersion = "4.03"; - buildInputs = [ alcotest ]; + checkInputs = [ alcotest ]; propagatedBuildInputs = [ astring fmt ]; From 30487789abe79e3ffe53faea02b8998e9b755ccc Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sat, 5 Dec 2020 17:27:44 +0100 Subject: [PATCH 26/38] ocamlPackages.duration: use Dune 2 --- pkgs/development/ocaml-modules/duration/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/duration/default.nix b/pkgs/development/ocaml-modules/duration/default.nix index 7b3c1c65fc80..a547a919c31d 100644 --- a/pkgs/development/ocaml-modules/duration/default.nix +++ b/pkgs/development/ocaml-modules/duration/default.nix @@ -1,16 +1,18 @@ -{ lib, buildDunePackage, fetchurl, alcotest }: +{ lib, buildDunePackage, ocaml, fetchurl, alcotest }: buildDunePackage rec { pname = "duration"; version = "0.1.3"; + useDune2 = true; + src = fetchurl { url = "https://github.com/hannesm/duration/releases/download/${version}/duration-${version}.tbz"; sha256 = "0m9r0ayhpl98g9vdxrbjdcllns274jilic5v8xj1x7dphw21p95h"; }; - doCheck = true; - checkInputs = lib.optional doCheck alcotest; + doCheck = lib.versionAtLeast ocaml.version "4.05"; + checkInputs = [ alcotest ]; meta = { homepage = "https://github.com/hannesm/duration"; From 567e02e20450b3863545a57199c2bea42fe42829 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sat, 5 Dec 2020 17:27:48 +0100 Subject: [PATCH 27/38] =?UTF-8?q?ocamlPackages.alcotest:=201.0.1=20?= =?UTF-8?q?=E2=86=92=201.2.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../development/ocaml-modules/alcotest/default.nix | 14 +++++++++----- pkgs/development/ocaml-modules/alcotest/lwt.nix | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/pkgs/development/ocaml-modules/alcotest/default.nix b/pkgs/development/ocaml-modules/alcotest/default.nix index 3ebf0f3ed6bd..94626f3c1798 100644 --- a/pkgs/development/ocaml-modules/alcotest/default.nix +++ b/pkgs/development/ocaml-modules/alcotest/default.nix @@ -1,17 +1,21 @@ { lib, buildDunePackage, fetchurl -, astring, cmdliner, fmt, uuidm, re, stdlib-shims +, astring, cmdliner, fmt, uuidm, re, stdlib-shims, uutf }: buildDunePackage rec { pname = "alcotest"; - version = "1.0.1"; + version = "1.2.3"; + + useDune2 = true; src = fetchurl { - url = "https://github.com/mirage/alcotest/releases/download/${version}/alcotest-${version}.tbz"; - sha256 = "1xlklxb83gamqbg8j5dzm5jk4mvcwkspxajh93p6vpw9ia1li1qc"; + url = "https://github.com/mirage/alcotest/releases/download/${version}/alcotest-mirage-${version}.tbz"; + sha256 = "1bmjcivbmd4vib15v4chycgd1gl8js9dk94vzxkdg06zxqd4hp08"; }; - propagatedBuildInputs = [ astring cmdliner fmt uuidm re stdlib-shims ]; + propagatedBuildInputs = [ astring cmdliner fmt uuidm re stdlib-shims uutf ]; + + doCheck = true; meta = with lib; { homepage = "https://github.com/mirage/alcotest"; diff --git a/pkgs/development/ocaml-modules/alcotest/lwt.nix b/pkgs/development/ocaml-modules/alcotest/lwt.nix index f005421a6fc8..82efbe91a069 100644 --- a/pkgs/development/ocaml-modules/alcotest/lwt.nix +++ b/pkgs/development/ocaml-modules/alcotest/lwt.nix @@ -3,7 +3,7 @@ buildDunePackage { pname = "alcotest-lwt"; - inherit (alcotest) version src; + inherit (alcotest) version src useDune2; propagatedBuildInputs = [ alcotest logs ocaml_lwt ]; From 24b4e1094ea65a4f76b77fecb72e92bb03eeedce Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sat, 5 Dec 2020 23:23:58 +0100 Subject: [PATCH 28/38] ocamlPackages.ocplib-json-typed: use Dune 2 --- pkgs/development/ocaml-modules/ocplib-json-typed/bson.nix | 2 +- pkgs/development/ocaml-modules/ocplib-json-typed/default.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/ocplib-json-typed/bson.nix b/pkgs/development/ocaml-modules/ocplib-json-typed/bson.nix index 350c31a3819d..f95a25d25f2e 100644 --- a/pkgs/development/ocaml-modules/ocplib-json-typed/bson.nix +++ b/pkgs/development/ocaml-modules/ocplib-json-typed/bson.nix @@ -2,7 +2,7 @@ buildDunePackage { pname = "ocplib-json-typed-bson"; - inherit (ocplib-json-typed) version src; + inherit (ocplib-json-typed) version useDune2 src; propagatedBuildInputs = [ ocplib-json-typed ocplib-endian ]; diff --git a/pkgs/development/ocaml-modules/ocplib-json-typed/default.nix b/pkgs/development/ocaml-modules/ocplib-json-typed/default.nix index 6a1b906d7f2b..6a3de6292d8c 100644 --- a/pkgs/development/ocaml-modules/ocplib-json-typed/default.nix +++ b/pkgs/development/ocaml-modules/ocplib-json-typed/default.nix @@ -3,6 +3,7 @@ buildDunePackage rec { pname = "ocplib-json-typed"; version = "0.7.1"; + useDune2 = true; src = fetchFromGitHub { owner = "OCamlPro"; repo = "ocplib-json-typed"; From 57f2285079d724cf3b7ef016d25476edf1309198 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sun, 6 Dec 2020 09:33:38 +0100 Subject: [PATCH 29/38] =?UTF-8?q?stog:=20fix=20compatibility=20with=20uri?= =?UTF-8?q?=20=E2=89=A5=204.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/applications/misc/stog/default.nix | 2 +- pkgs/applications/misc/stog/uri.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 pkgs/applications/misc/stog/uri.patch diff --git a/pkgs/applications/misc/stog/default.nix b/pkgs/applications/misc/stog/default.nix index 038d04adeaa8..7b497dc60e47 100644 --- a/pkgs/applications/misc/stog/default.nix +++ b/pkgs/applications/misc/stog/default.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { createFindlibDestdir = true; - patches = [ ./install.patch ]; + patches = [ ./install.patch ./uri.patch ]; meta = with stdenv.lib; { description = "XML documents and web site compiler"; diff --git a/pkgs/applications/misc/stog/uri.patch b/pkgs/applications/misc/stog/uri.patch new file mode 100644 index 000000000000..08063a38add4 --- /dev/null +++ b/pkgs/applications/misc/stog/uri.patch @@ -0,0 +1,13 @@ +diff --git a/src/stog_url.ml b/src/stog_url.ml +index 5d30a43f..c67bfc36 100644 +--- a/src/stog_url.ml ++++ b/src/stog_url.ml +@@ -40,7 +40,7 @@ let of_string s = + with _ -> + failwith (Printf.sprintf "Malformed URL %S" s) + ;; +-let to_string = Uri.to_string ;; ++let to_string u = Uri.to_string u;; + + let path url = + let l = From d702e6e6ab1206b34e282e5a22ef2f3958a457c1 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sun, 6 Dec 2020 09:36:39 +0100 Subject: [PATCH 30/38] =?UTF-8?q?ocamlPackages.uri:=203.1.0=20=E2=86=92=20?= =?UTF-8?q?4.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/uri/default.nix | 12 +++++++----- pkgs/development/ocaml-modules/uri/sexp.nix | 5 +++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/development/ocaml-modules/uri/default.nix b/pkgs/development/ocaml-modules/uri/default.nix index 6a7c03b9bb6b..7933b3bd8d42 100644 --- a/pkgs/development/ocaml-modules/uri/default.nix +++ b/pkgs/development/ocaml-modules/uri/default.nix @@ -1,19 +1,21 @@ { lib, fetchurl, buildDunePackage, ounit -, re, stringext +, angstrom, stringext }: buildDunePackage rec { minimumOCamlVersion = "4.03"; pname = "uri"; - version = "3.1.0"; + version = "4.0.0"; + + useDune2 = true; src = fetchurl { url = "https://github.com/mirage/ocaml-${pname}/releases/download/v${version}/${pname}-v${version}.tbz"; - sha256 = "0hxc2mshmqxz2qmjya47dzf858s6lsf3xvqswpzprkvhv0zq4ln4"; + sha256 = "13r9nkgym9z3dqxkyf0yyaqlrk5r3pjdw0kfzvrc90bmhwl9j380"; }; - buildInputs = [ ounit ]; - propagatedBuildInputs = [ re stringext ]; + checkInputs = [ ounit ]; + propagatedBuildInputs = [ angstrom stringext ]; doCheck = true; meta = { diff --git a/pkgs/development/ocaml-modules/uri/sexp.nix b/pkgs/development/ocaml-modules/uri/sexp.nix index c6f979e5a3e7..83be70c36497 100644 --- a/pkgs/development/ocaml-modules/uri/sexp.nix +++ b/pkgs/development/ocaml-modules/uri/sexp.nix @@ -6,8 +6,9 @@ else buildDunePackage { pname = "uri-sexp"; - inherit (uri) version src doCheck meta; + inherit (uri) version useDune2 src meta; - buildInputs = [ ounit ]; + checkInputs = [ ounit ]; propagatedBuildInputs = [ ppx_sexp_conv sexplib0 uri ]; + doCheck = lib.versionAtLeast ocaml.version "4.08"; } From a9ba7578429ccf5f074d003d6c3ba31a5bed7948 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Tue, 8 Dec 2020 16:35:58 +0000 Subject: [PATCH 31/38] musescore: build in release configuration This affects settings and document directories. The configuration was "release" before the switch from fetchzip to fetchFromGitHub. --- pkgs/applications/audio/musescore/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/audio/musescore/default.nix b/pkgs/applications/audio/musescore/default.nix index c9a1f44ec639..18026808b2b7 100644 --- a/pkgs/applications/audio/musescore/default.nix +++ b/pkgs/applications/audio/musescore/default.nix @@ -21,6 +21,7 @@ mkDerivation rec { ]; cmakeFlags = [ + "-DMUSESCORE_BUILD_CONFIG=release" "-DUSE_SYSTEM_FREETYPE=ON" ]; From 1c6b12dee16d9a87c8616c18e9800d6ea360c661 Mon Sep 17 00:00:00 2001 From: Sebastian Jordan Date: Mon, 7 Dec 2020 23:05:06 +0100 Subject: [PATCH 32/38] pythonPackages.nix-prefetch-github: 4.0.2 -> 4.0.3 --- .../nix-prefetch-github/default.nix | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/nix-prefetch-github/default.nix b/pkgs/development/python-modules/nix-prefetch-github/default.nix index d7f203aa4d8d..d4817480e57c 100644 --- a/pkgs/development/python-modules/nix-prefetch-github/default.nix +++ b/pkgs/development/python-modules/nix-prefetch-github/default.nix @@ -1,41 +1,38 @@ -{ fetchPypi +{ fetchFromGitHub , lib , buildPythonPackage -, pythonOlder , attrs , click , effect -, jinja2 , git , pytestCheckHook , pytestcov -, pytest-isort +, pythonOlder }: buildPythonPackage rec { pname = "nix-prefetch-github"; - version = "4.0.2"; + version = "4.0.3"; - src = fetchPypi { - inherit pname version; - sha256 = "ZdaWIkpJk8AvTZmA76VMTXeOUTrWLe+W3vh/e0zwWB4="; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "seppeljordan"; + repo = "nix-prefetch-github"; + rev = "v${version}"; + sha256 = "CLcmwobPrL6NiI/nw+/Dwho/r15owV16Jmt5OcfFqvo="; }; propagatedBuildInputs = [ attrs click effect - jinja2 ]; - checkInputs = [ pytestCheckHook pytestcov pytest-isort git ]; - checkPhase = '' - pytest -m 'not network' - ''; + checkInputs = [ pytestCheckHook pytestcov git ]; - # latest version of isort will cause tests to fail # ignore tests which are impure - disabledTests = [ "isort" "life" "outputs" "fetch_submodules" ]; + disabledTests = [ "network" "requires_nix_build" ]; meta = with lib; { description = "Prefetch sources from github"; From 6d369f81caa2f9555e7b91b3f25fdb053c0de283 Mon Sep 17 00:00:00 2001 From: Tim Steinbach Date: Tue, 8 Dec 2020 12:21:11 -0500 Subject: [PATCH 33/38] python3Packages.botocore: 1.19.25 -> 1.19.31 --- pkgs/development/python-modules/botocore/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/botocore/default.nix b/pkgs/development/python-modules/botocore/default.nix index 35d8113e831c..add0f54e29d8 100644 --- a/pkgs/development/python-modules/botocore/default.nix +++ b/pkgs/development/python-modules/botocore/default.nix @@ -12,11 +12,11 @@ buildPythonPackage rec { pname = "botocore"; - version = "1.19.25"; # N.B: if you change this, change boto3 and awscli to a matching version + version = "1.19.31"; # N.B: if you change this, change boto3 and awscli to a matching version src = fetchPypi { inherit pname version; - sha256 = "15hd5f2ars1hd3y2gh846fd0ydcgyjmkvncr6rdn4whbb5wkkbyc"; + sha256 = "0z8pmkr7j2w90qpd25wv0j1z4kqx90j6ch8c8irlyj84wx61skk2"; }; propagatedBuildInputs = [ From 27dd3291fef8c867359011fc46a7d8407020d33f Mon Sep 17 00:00:00 2001 From: Tim Steinbach Date: Tue, 8 Dec 2020 12:21:26 -0500 Subject: [PATCH 34/38] python3Packages.boto3: 1.16.25 -> 1.16.31 --- pkgs/development/python-modules/boto3/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/boto3/default.nix b/pkgs/development/python-modules/boto3/default.nix index 889d829bee99..1688882e57e1 100644 --- a/pkgs/development/python-modules/boto3/default.nix +++ b/pkgs/development/python-modules/boto3/default.nix @@ -13,11 +13,11 @@ buildPythonPackage rec { pname = "boto3"; - version = "1.16.25"; # N.B: if you change this, change botocore too + version = "1.16.31"; # N.B: if you change this, change botocore too src = fetchPypi { inherit pname version; - sha256 = "05qxcfis4rnkjxh8wyks3gcpg14cshpd2rrhb1adxd0hpq5aprhk"; + sha256 = "0c9q7njargrhxcl99mdc7xbb29imp8kpyg3d0vwq2crlzxln8y49"; }; propagatedBuildInputs = [ botocore jmespath s3transfer ] ++ lib.optionals (!isPy3k) [ futures ]; From 12beaac9337b64c1b76fb2a0a931d0bcf723014b Mon Sep 17 00:00:00 2001 From: Tim Steinbach Date: Tue, 8 Dec 2020 12:21:54 -0500 Subject: [PATCH 35/38] awscli: 1.18.185 -> 1.18.191 --- pkgs/tools/admin/awscli/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/admin/awscli/default.nix b/pkgs/tools/admin/awscli/default.nix index 8bf242561b1c..2a8d5ab5e72b 100644 --- a/pkgs/tools/admin/awscli/default.nix +++ b/pkgs/tools/admin/awscli/default.nix @@ -28,11 +28,11 @@ let in with py.pkgs; buildPythonApplication rec { pname = "awscli"; - version = "1.18.185"; # N.B: if you change this, change botocore to a matching version too + version = "1.18.191"; # N.B: if you change this, change botocore to a matching version too src = fetchPypi { inherit pname version; - sha256 = "0yf8dmjgiib5s4dimc1896zxrrj0sl5kzrp7x8spm6xkcvwb02l1"; + sha256 = "1zsb9w0bpbwq093ydbh4b5r3287b5l9mrdx549vsv0rspmkr0d7c"; }; postPatch = '' From 5e66517178250b00161854ca9aee4713a4dc267f Mon Sep 17 00:00:00 2001 From: Ivan Kovnatsky Date: Fri, 4 Dec 2020 12:52:29 +0200 Subject: [PATCH 36/38] vimPlugins.lens-vim: init at 2020-04-24 --- pkgs/misc/vim-plugins/generated.nix | 12 ++++++++++++ pkgs/misc/vim-plugins/overrides.nix | 12 ++++++++++++ .../lens-vim/remove_duplicate_g_lens_animate.patch | 12 ++++++++++++ pkgs/misc/vim-plugins/vim-plugin-names | 1 + 4 files changed, 37 insertions(+) create mode 100644 pkgs/misc/vim-plugins/patches/lens-vim/remove_duplicate_g_lens_animate.patch diff --git a/pkgs/misc/vim-plugins/generated.nix b/pkgs/misc/vim-plugins/generated.nix index c0ceab508bef..86098cce5f12 100644 --- a/pkgs/misc/vim-plugins/generated.nix +++ b/pkgs/misc/vim-plugins/generated.nix @@ -1942,6 +1942,18 @@ let meta.homepage = "https://github.com/leanprover/lean.vim/"; }; + lens-vim = buildVimPluginFrom2Nix { + pname = "lens-vim"; + version = "2020-04-24"; + src = fetchFromGitHub { + owner = "camspiers"; + repo = "lens.vim"; + rev = "868b195be3cc3000d1d3f875ee0a52a11972e5b9"; + sha256 = "0qpx84k52pz29rx6q0zh3qq4g3a1gyvyfcipx3kaw4lxlld6agd5"; + }; + meta.homepage = "https://github.com/camspiers/lens.vim/"; + }; + lessspace-vim = buildVimPluginFrom2Nix { pname = "lessspace-vim"; version = "2019-09-12"; diff --git a/pkgs/misc/vim-plugins/overrides.nix b/pkgs/misc/vim-plugins/overrides.nix index 379b0babae8e..b1846276276b 100644 --- a/pkgs/misc/vim-plugins/overrides.nix +++ b/pkgs/misc/vim-plugins/overrides.nix @@ -461,6 +461,18 @@ self: super: { ]; }); + lens-vim = super.lens-vim.overrideAttrs(old: { + # remove duplicate g:lens#animate in doc/lens.txt + # https://github.com/NixOS/nixpkgs/pull/105810#issuecomment-740007985 + # https://github.com/camspiers/lens.vim/pull/40/files + patches = [ + (substituteAll { + src = ./patches/lens-vim/remove_duplicate_g_lens_animate.patch; + inherit languagetool; + }) + ]; + }); + vim-hier = super.vim-hier.overrideAttrs(old: { buildInputs = [ vim ]; }); diff --git a/pkgs/misc/vim-plugins/patches/lens-vim/remove_duplicate_g_lens_animate.patch b/pkgs/misc/vim-plugins/patches/lens-vim/remove_duplicate_g_lens_animate.patch new file mode 100644 index 000000000000..1cd232654c88 --- /dev/null +++ b/pkgs/misc/vim-plugins/patches/lens-vim/remove_duplicate_g_lens_animate.patch @@ -0,0 +1,12 @@ +diff --git a/doc/lens.txt b/doc/lens.txt +index 60943ce..2fe43dc 100644 +--- a/doc/lens.txt ++++ b/doc/lens.txt +@@ -76,7 +76,6 @@ g:lens#disabled_filenames + + Default value is []. + *g:lens#animate* +- *g:lens#animate* + g:lens#animate + If value is 1 and animate.vim is installed, the window resize + will be animated. diff --git a/pkgs/misc/vim-plugins/vim-plugin-names b/pkgs/misc/vim-plugins/vim-plugin-names index 2a5074f56197..94ffa17d1112 100644 --- a/pkgs/misc/vim-plugins/vim-plugin-names +++ b/pkgs/misc/vim-plugins/vim-plugin-names @@ -38,6 +38,7 @@ brennanfee/vim-gui-position bronson/vim-trailing-whitespace brooth/far.vim buoto/gotests-vim +camspiers/lens.vim carlitux/deoplete-ternjs ccarpita/rtorrent-syntax-file cespare/vim-toml From 50812a34c601d9345143b125a4d0261f0aa98ca3 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Tue, 8 Dec 2020 17:58:33 +0000 Subject: [PATCH 37/38] dnscontrol: 3.4.2 -> 3.5.0 --- pkgs/applications/networking/dnscontrol/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/dnscontrol/default.nix b/pkgs/applications/networking/dnscontrol/default.nix index 4d27ad5361ff..c120ac09642b 100644 --- a/pkgs/applications/networking/dnscontrol/default.nix +++ b/pkgs/applications/networking/dnscontrol/default.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "dnscontrol"; - version = "3.4.2"; + version = "3.5.0"; src = fetchFromGitHub { owner = "StackExchange"; repo = pname; rev = "v${version}"; - sha256 = "0bvvh68k2xjmmwafwdsijf3yb4ff9wbsl2ibad627l1y4js5615z"; + sha256 = "0bnsd1kx0ji2s3w1v7sskc3x82avaqjn2arnax55bmh1yjma6z8p"; }; - vendorSha256 = "05nwfxqgkpbv5i0365wpsnnaq528a7srycd1dsdlssz1cy7i0d31"; + vendorSha256 = "0ppcrp6jp23ycn70mcgi5bsa0hr20hk7044ldw304krawy2vjgz8"; subPackages = [ "." ]; From 7f50f98298643639f8844b5332693f8a2a667e85 Mon Sep 17 00:00:00 2001 From: Tim Steinbach Date: Tue, 8 Dec 2020 13:09:25 -0500 Subject: [PATCH 38/38] scala: Make overridable --- pkgs/development/compilers/scala/2.x.nix | 202 +++++++++++------------ pkgs/top-level/all-packages.nix | 9 +- 2 files changed, 105 insertions(+), 106 deletions(-) diff --git a/pkgs/development/compilers/scala/2.x.nix b/pkgs/development/compilers/scala/2.x.nix index 6b9ab7d483fe..15c73f814007 100644 --- a/pkgs/development/compilers/scala/2.x.nix +++ b/pkgs/development/compilers/scala/2.x.nix @@ -1,117 +1,117 @@ { stdenv, lib, fetchurl, makeWrapper, jre, gnugrep, coreutils, nixosTests -, writeScript, common-updater-scripts, git, gnused, nix, nixfmt }: +, writeScript, common-updater-scripts, git, gnused, nix, nixfmt, majorVersion }: with lib; let repo = "git@github.com:scala/scala.git"; - common = { version, sha256, tests, pname }: - stdenv.mkDerivation rec { - inherit version; - - name = "scala-${version}"; - - src = fetchurl { - inherit sha256; - url = "https://www.scala-lang.org/files/archive/scala-${version}.tgz"; - }; - - propagatedBuildInputs = [ jre ]; - buildInputs = [ makeWrapper ]; - - installPhase = '' - mkdir -p $out - rm bin/*.bat - mv * $out - - # put docs in correct subdirectory - mkdir -p $out/share/doc - mv $out/doc $out/share/doc/${name} - mv $out/man $out/share/man - - for p in $(ls $out/bin/) ; do - wrapProgram $out/bin/$p \ - --prefix PATH ":" ${coreutils}/bin \ - --prefix PATH ":" ${gnugrep}/bin \ - --prefix PATH ":" ${jre}/bin \ - --set JAVA_HOME ${jre} - done - ''; - - passthru = { - inherit tests; - - updateScript = writeScript "update.sh" '' - #!${stdenv.shell} - set -o errexit - PATH=${ - stdenv.lib.makeBinPath [ - common-updater-scripts - coreutils - git - gnused - nix - nixfmt - ] - } - versionSelect='v${versions.major version}.${versions.minor version}.*' - oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion ${pname}" | tr -d '"')" - latestTag="$(git -c 'versionsort.suffix=-' ls-remote --exit-code --refs --sort='version:refname' --tags ${repo} "$versionSelect" | tail --lines=1 | cut --delimiter='/' --fields=3 | sed 's|^v||g')" - if [ "$oldVersion" != "$latestTag" ]; then - nixpkgs="$(git rev-parse --show-toplevel)" - default_nix="$nixpkgs/pkgs/development/compilers/scala/2.x.nix" - update-source-version ${pname} "$latestTag" --version-key=version --print-changes - nixfmt "$default_nix" - else - echo "${pname} is already up-to-date" - fi - ''; - }; - - meta = { - description = "A general purpose programming language"; - longDescription = '' - Scala is a general purpose programming language designed to express - common programming patterns in a concise, elegant, and type-safe way. - It smoothly integrates features of object-oriented and functional - languages, enabling Java and other programmers to be more productive. - Code sizes are typically reduced by a factor of two to three when - compared to an equivalent Java application. - ''; - homepage = "https://www.scala-lang.org/"; - license = licenses.bsd3; - platforms = platforms.all; - branch = versions.majorMinor version; - maintainers = [ maintainers.nequissimus ]; - }; + versionMap = { + "2.10" = { + version = "2.10.7"; + sha256 = "koMRmRb2u3cU4HaihAzPItWIGbNVIo7RWRrm92kp8RE="; + tests = [ nixosTests.scala.scala_2_10 ]; + pname = "scala_2_10"; + }; + + "2.11" = { + version = "2.11.12"; + sha256 = "sR19M2mcpPYLw7K2hY/ZU+PeK4UiyUP0zaS2dDFhlqg="; + tests = [ nixosTests.scala.scala_2_11 ]; + pname = "scala_2_11"; + }; + + "2.12" = { + version = "2.12.12"; + sha256 = "NSDNHzye//YrrudfMuUtHl3BIL4szzQGSeRw5I9Sfis="; + tests = [ nixosTests.scala.scala_2_12 ]; + pname = "scala_2_12"; + }; + + "2.13" = { + version = "2.13.4"; + sha256 = "1alcnzmxga00nsvgy8yky91zw5b4q0xg2697vrrdgjlglpxiqwdw"; + tests = [ nixosTests.scala.scala_2_13 ]; + pname = "scala_2_13"; }; -in { - scala_2_10 = common { - version = "2.10.7"; - sha256 = "koMRmRb2u3cU4HaihAzPItWIGbNVIo7RWRrm92kp8RE="; - tests = [ nixosTests.scala.scala_2_10 ]; - pname = "scala_2_10"; }; - scala_2_11 = common { - version = "2.11.12"; - sha256 = "sR19M2mcpPYLw7K2hY/ZU+PeK4UiyUP0zaS2dDFhlqg="; - tests = [ nixosTests.scala.scala_2_11 ]; - pname = "scala_2_11"; +in with versionMap.${majorVersion}; + +stdenv.mkDerivation rec { + inherit version; + + name = "scala-${version}"; + + src = fetchurl { + inherit sha256; + url = "https://www.scala-lang.org/files/archive/scala-${version}.tgz"; }; - scala_2_12 = common { - version = "2.12.12"; - sha256 = "NSDNHzye//YrrudfMuUtHl3BIL4szzQGSeRw5I9Sfis="; - tests = [ nixosTests.scala.scala_2_12 ]; - pname = "scala_2_12"; + propagatedBuildInputs = [ jre ]; + + buildInputs = [ makeWrapper ]; + + installPhase = '' + mkdir -p $out + rm bin/*.bat + mv * $out + # put docs in correct subdirectory + mkdir -p $out/share/doc + mv $out/doc $out/share/doc/${name} + mv $out/man $out/share/man + for p in $(ls $out/bin/) ; do + wrapProgram $out/bin/$p \ + --prefix PATH ":" ${coreutils}/bin \ + --prefix PATH ":" ${gnugrep}/bin \ + --prefix PATH ":" ${jre}/bin \ + --set JAVA_HOME ${jre} + done + ''; + + passthru = { + inherit tests; + updateScript = writeScript "update.sh" '' + #!${stdenv.shell} + set -o errexit + PATH=${ + stdenv.lib.makeBinPath [ + common-updater-scripts + coreutils + git + gnused + nix + nixfmt + ] + } + versionSelect='v${versions.major version}.${versions.minor version}.*' + oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion ${pname}" | tr -d '"')" + latestTag="$(git -c 'versionsort.suffix=-' ls-remote --exit-code --refs --sort='version:refname' --tags ${repo} "$versionSelect" | tail --lines=1 | cut --delimiter='/' --fields=3 | sed 's|^v||g')" + if [ "$oldVersion" != "$latestTag" ]; then + nixpkgs="$(git rev-parse --show-toplevel)" + default_nix="$nixpkgs/pkgs/development/compilers/scala/2.x.nix" + update-source-version ${pname} "$latestTag" --version-key=version --print-changes + nixfmt "$default_nix" + else + echo "${pname} is already up-to-date" + fi + ''; }; - scala_2_13 = common { - version = "2.13.4"; - sha256 = "1alcnzmxga00nsvgy8yky91zw5b4q0xg2697vrrdgjlglpxiqwdw"; - tests = [ nixosTests.scala.scala_2_13 ]; - pname = "scala_2_13"; + meta = { + description = "A general purpose programming language"; + longDescription = '' + Scala is a general purpose programming language designed to express + common programming patterns in a concise, elegant, and type-safe way. + It smoothly integrates features of object-oriented and functional + languages, enabling Java and other programmers to be more productive. + Code sizes are typically reduced by a factor of two to three when + compared to an equivalent Java application. + ''; + homepage = "https://www.scala-lang.org/"; + license = licenses.bsd3; + platforms = platforms.all; + branch = versions.majorMinor version; + maintainers = [ maintainers.nequissimus ]; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8505664d1a80..e198d3ca5d16 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10143,11 +10143,10 @@ in sbcl_2_0_9 = callPackage ../development/compilers/sbcl/2.0.9.nix {}; sbcl = callPackage ../development/compilers/sbcl {}; - inherit (callPackage ../development/compilers/scala/2.x.nix { jre = jre8; }) - scala_2_10 - scala_2_11 - scala_2_12 - scala_2_13; + scala_2_10 = callPackage ../development/compilers/scala/2.x.nix { majorVersion = "2.10"; jre = jdk8; }; + scala_2_11 = callPackage ../development/compilers/scala/2.x.nix { majorVersion = "2.11"; jre = jdk8; }; + scala_2_12 = callPackage ../development/compilers/scala/2.x.nix { majorVersion = "2.12"; jre = jdk8; }; + scala_2_13 = callPackage ../development/compilers/scala/2.x.nix { majorVersion = "2.13"; jre = jdk8; }; scala = scala_2_13;