lol

Merge #131928: branch 'staging-next'

+846 -686
+2 -2
pkgs/applications/audio/faustPhysicalModeling/default.nix
··· 1 1 { stdenv, lib, fetchFromGitHub, faust2jaqt, faust2lv2 }: 2 2 stdenv.mkDerivation rec { 3 3 pname = "faustPhysicalModeling"; 4 - version = "2.20.2"; 4 + version = "2.30.5"; 5 5 6 6 src = fetchFromGitHub { 7 7 owner = "grame-cncm"; 8 8 repo = "faust"; 9 9 rev = version; 10 - sha256 = "1mm93ba26b7q69hvabzalg30dh8pl858nj4m2bb57pznnp09lq9a"; 10 + sha256 = "sha256-hfpMeUhv6FC9lnPCfdWnAFCaKiteplyrS/o3Lf7cQY4="; 11 11 }; 12 12 13 13 buildInputs = [ faust2jaqt faust2lv2 ];
+2 -2
pkgs/applications/blockchains/exodus/default.nix
··· 4 4 5 5 stdenv.mkDerivation rec { 6 6 pname = "exodus"; 7 - version = "21.1.29"; 7 + version = "21.5.25"; 8 8 9 9 src = fetchurl { 10 10 url = "https://downloads.exodus.io/releases/${pname}-linux-x64-${version}.zip"; 11 - sha256 = "sha256-Qdiyjutzt8r1tIfcW7/AtSuOpf1Un5TeHoeZx5uQthM="; 11 + sha256 = "sha256-2EIElhQGA0UprPF2pdIfYM9SWYIteD+kH+rupjxCiz4="; 12 12 }; 13 13 14 14 sourceRoot = ".";
+2 -2
pkgs/applications/misc/gpxsee/default.nix
··· 2 2 3 3 mkDerivation rec { 4 4 pname = "gpxsee"; 5 - version = "9.2"; 5 + version = "9.3"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "tumic0"; 9 9 repo = "GPXSee"; 10 10 rev = version; 11 - sha256 = "sha256-pU02Eaq6tB7X6EPOo8YAyryJRbSV3KebQv8VELxXaBw="; 11 + sha256 = "sha256-h/OWYzZkouhTC7j8HIOt94DHwNyhbkYGoy3wUYrh0O8="; 12 12 }; 13 13 14 14 patches = (substituteAll {
+3 -3
pkgs/applications/version-management/git-and-tools/git-chglog/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "git-chglog"; 5 - version = "0.14.2"; 5 + version = "0.15.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "git-chglog"; 9 9 repo = "git-chglog"; 10 10 rev = "v${version}"; 11 - sha256 = "124bqywkj37gv61fswgrg528bf3rjqms1664x22lkn0sqh22zyv1"; 11 + sha256 = "sha256-BiTnPCgymfpPxuy0i8u7JbpbEBeaSIJaikjwsPSA3qc="; 12 12 }; 13 13 14 - vendorSha256 = "09zjypmcc3ra7sw81q1pbbrlpxxp4k00p1cfkrrih8wvb25z89h5"; 14 + vendorSha256 = "sha256-jIq+oacyT71m78iMZwWOBsBVAY/WxgyH9zRr8GiMGTU="; 15 15 16 16 buildFlagsArray = [ "-ldflags= -s -w -X=main.Version=v${version}" ]; 17 17
+8 -1
pkgs/development/libraries/aspell/default.nix
··· 23 23 sha256 = "1wi60ankalmh8ds7nplz434jd7j94gdvbahdwsr539rlad8pxdzr"; 24 24 }; 25 25 26 - patches = lib.optional searchNixProfiles ./data-dirs-from-nix-profiles.patch; 26 + patches = [ 27 + (fetchpatch { 28 + # objstack: assert that the alloc size will fit within a chunk 29 + name = "CVE-2019-25051.patch"; 30 + url = "https://github.com/gnuaspell/aspell/commit/0718b375425aad8e54e1150313b862e4c6fd324a.patch"; 31 + sha256 = "03z259xrk41x3j190gaprf3mqysyfgh3a04rjmch3h625vj95x39"; 32 + }) 33 + ] ++ lib.optional searchNixProfiles ./data-dirs-from-nix-profiles.patch; 27 34 28 35 postPatch = '' 29 36 patch interfaces/cc/aspell.h < ${./clang.patch}
+2 -2
pkgs/development/libraries/at-spi2-core/default.nix
··· 21 21 22 22 stdenv.mkDerivation rec { 23 23 pname = "at-spi2-core"; 24 - version = "2.40.2"; 24 + version = "2.40.3"; 25 25 26 26 src = fetchurl { 27 27 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 28 - sha256 = "RNwXr5Q7D9GWxhweA7bBZpYDhcrpbMtelb3v/7aEn5g="; 28 + sha256 = "5Jg3wq0w1x4fKcqOCWilS5UDAnL3/0C4m0iWhlPzelw="; 29 29 }; 30 30 31 31 outputs = [ "out" "dev" ];
+2 -2
pkgs/development/libraries/bctoolbox/default.nix
··· 7 7 8 8 stdenv.mkDerivation rec { 9 9 pname = "bctoolbox"; 10 - version = "4.5.20"; 10 + version = "5.0.0"; 11 11 12 12 nativeBuildInputs = [ cmake bcunit ]; 13 13 buildInputs = [ mbedtls ]; ··· 18 18 group = "BC"; 19 19 repo = pname; 20 20 rev = version; 21 - sha256 = "sha256-n/S0G7dGaDWWsvOITceITmWUNpebcHMedkLTklxGjQg="; 21 + sha256 = "sha256-/jv59ZeELfP7PokzthvZNL4FS3tyzRmCHp4I/Lp8BJM="; 22 22 }; 23 23 24 24 # Do not build static libraries
+10
pkgs/development/libraries/cairo/default.nix
··· 42 42 url = "https://gitlab.freedesktop.org/cairo/cairo/commit/5e34c5a9640e49dcc29e6b954c4187cfc838dbd1.patch"; 43 43 sha256 = "yCwsDUY7efVvOZkA6a0bPS+RrVc8Yk9bfPwWHeOjq5o="; 44 44 }) 45 + 46 + # Fixes CVE-2020-35492; see https://github.com/NixOS/nixpkgs/issues/120364. 47 + # CVE information: https://nvd.nist.gov/vuln/detail/CVE-2020-35492 48 + # Upstream PR: https://gitlab.freedesktop.org/cairo/cairo/merge_requests/85 49 + (fetchpatch { 50 + name = "CVE-2020-35492.patch"; 51 + includes = [ "src/cairo-image-compositor.c" ]; 52 + url = "https://github.com/freedesktop/cairo/commit/78266cc8c0f7a595cfe8f3b694bfb9bcc3700b38.patch"; 53 + sha256 = "048nzfz7rkgqb9xs0dfs56qdw7ckkxr87nbj3p0qziqdq4nb6wki"; 54 + }) 45 55 ] ++ optionals stdenv.hostPlatform.isDarwin [ 46 56 # Workaround https://gitlab.freedesktop.org/cairo/cairo/-/issues/121 47 57 ./skip-configure-stderr-check.patch
+3 -8
pkgs/development/libraries/gtest/default.nix
··· 1 - { lib, stdenv, cmake, ninja, fetchFromGitHub, fetchpatch }: 1 + { lib, stdenv, cmake, ninja, fetchFromGitHub }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "gtest"; 5 - version = "1.10.0"; 5 + version = "1.11.0"; 6 6 7 7 outputs = [ "out" "dev" ]; 8 8 ··· 10 10 owner = "google"; 11 11 repo = "googletest"; 12 12 rev = "release-${version}"; 13 - sha256 = "1zbmab9295scgg4z2vclgfgjchfjailjnvzc6f5x9jvlsdi3dpwz"; 13 + hash = "sha256-SjlJxushfry13RGA7BCjYC9oZqV4z6x8dOiHfl/wpF0="; 14 14 }; 15 15 16 16 patches = [ 17 17 ./fix-cmake-config-includedir.patch 18 - (fetchpatch { 19 - name = "fix-pkgconfig-paths.patch"; 20 - url = "https://github.com/google/googletest/commit/5126ff48d9ac54828d1947d1423a5ef2a8efee3b.patch"; 21 - sha256 = "sha256-TBvECU/9nuvwjsCjWJP2b6DNy+FYnHIFZeuVW7g++JE="; 22 - }) 23 18 ]; 24 19 25 20 nativeBuildInputs = [ cmake ninja ];
+2 -2
pkgs/development/libraries/libedit/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "libedit"; 5 - version = "20210522-3.1"; 5 + version = "20210714-3.1"; 6 6 7 7 src = fetchurl { 8 8 url = "https://thrysoee.dk/editline/${pname}-${version}.tar.gz"; 9 - sha256 = "sha256-AiC8IEfpJ8DBmE7197TrKpRppbe/ErpXPKOyPKAru28="; 9 + sha256 = "sha256-MCO0mK1ZP9d0WuOyCrrVRt5Qa2e4+7VXljfKaauC28k="; 10 10 }; 11 11 12 12 outputs = [ "out" "dev" ];
+9 -3
pkgs/development/libraries/libffi/default.nix
··· 10 10 11 11 stdenv.mkDerivation rec { 12 12 pname = "libffi"; 13 - version = "3.3"; 13 + version = "3.4.2"; 14 14 15 15 src = fetchurl { 16 - url = "https://sourceware.org/pub/libffi/${pname}-${version}.tar.gz"; 17 - sha256 = "0mi0cpf8aa40ljjmzxb7im6dbj45bb0kllcd09xgmp834y9agyvj"; 16 + url = "https://github.com/libffi/libffi/releases/download/v${version}/${pname}-${version}.tar.gz"; 17 + sha256 = "081nx7wpzds168jbr59m34n6s3lyiq6r8zggvqxvlslsc4hvf3sl"; 18 18 }; 19 19 20 20 patches = []; ··· 24 24 configureFlags = [ 25 25 "--with-gcc-arch=generic" # no detection of -march= or -mtune= 26 26 "--enable-pax_emutramp" 27 + 28 + # Causes issues in downstream packages which misuse ffi_closure_alloc 29 + # Reenable once these issues are fixed and merged: 30 + # https://gitlab.haskell.org/ghc/ghc/-/merge_requests/6155 31 + # https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/283 32 + "--disable-exec-static-tramp" 27 33 ]; 28 34 29 35 preCheck = ''
+3 -9
pkgs/development/libraries/libgpg-error/default.nix
··· 1 1 { stdenv, lib, buildPackages, fetchurl, gettext 2 - , fetchpatch 3 2 , genPosixLockObjOnly ? false 4 3 }: let 5 4 genPosixLockObjOnlyAttrs = lib.optionalAttrs genPosixLockObjOnly { ··· 25 24 sha256 = "sha256-/AfnD2xhX4xPWQqON6m43S4soelAj45gRZxnRSuSXiM="; 26 25 }; 27 26 28 - patches = lib.optionals (with stdenv; buildPlatform != hostPlatform) [ 29 - # Fix cross-compilation, remove in next release 30 - # TODO apply unconditionally 31 - (fetchpatch { 32 - url = "https://github.com/gpg/libgpg-error/commit/33593864cd54143db594c4237bba41e14179061c.patch"; 33 - sha256 = "1jnd7flaj5nlc7spa6mwwygmh5fajw1n8js8f23jpw4pbgvgdv4r"; 34 - }) 35 - ]; 27 + # 1.42 breaks (some?) cross-compilation (e.g. x86_64 -> aarch64). 28 + # Backporting this fix (merged in upstream master but no release cut) by David Michael <fedora.dm0@gmail.com> https://dev.gnupg.org/rE33593864cd54143db594c4237bba41e14179061c 29 + patches = [ ./fix-1.42-cross-compilation.patch ]; 36 30 37 31 postPatch = '' 38 32 sed '/BUILD_TIMESTAMP=/s/=.*/=1970-01-01T00:01+0000/' -i ./configure
+142
pkgs/development/libraries/libgpg-error/fix-1.42-cross-compilation.patch
··· 1 + diff --git a/src/gen-lock-obj.sh b/src/gen-lock-obj.sh 2 + index a710f0c..258eec6 100755 3 + --- a/src/gen-lock-obj.sh 4 + +++ b/src/gen-lock-obj.sh 5 + @@ -1,136 +1,136 @@ 6 + #! /bin/sh 7 + # 8 + # gen-lock-obj.sh - Build tool to construct the lock object. 9 + # 10 + # Copyright (C) 2020, 2021 g10 Code GmbH 11 + # 12 + # This file is part of libgpg-error. 13 + # 14 + # libgpg-error is free software; you can redistribute it and/or 15 + # modify it under the terms of the GNU Lesser General Public License 16 + # as published by the Free Software Foundation; either version 2.1 of 17 + # the License, or (at your option) any later version. 18 + # 19 + # libgpg-error is distributed in the hope that it will be useful, but 20 + # WITHOUT ANY WARRANTY; without even the implied warranty of 21 + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 22 + # Lesser General Public License for more details. 23 + # 24 + # You should have received a copy of the GNU Lesser General Public 25 + # License along with this program; if not, see <https://www.gnu.org/licenses/>. 26 + # 27 + 28 + # 29 + # Following variables should be defined to invoke this script 30 + # 31 + # CC 32 + # OBJDUMP 33 + # AWK 34 + # ac_ext 35 + # ac_object 36 + # host 37 + # LOCK_ABI_VERSION 38 + # 39 + # An example: 40 + # 41 + # LOCK_ABI_VERSION=1 host=x86_64-pc-linux-gnu host_alias=x86_64-linux-gnu \ 42 + # CC=$host_alias-gcc OBJDUMP=$host_alias-objdump ac_ext=c ac_objext=o \ 43 + # AWK=gawk ./gen-lock-obj.sh 44 + # 45 + 46 + -if test -n `echo -n`; then 47 + +if test -n "`echo -n`"; then 48 + ECHO_C='\c' 49 + ECHO_N='' 50 + else 51 + ECHO_C='' 52 + ECHO_N='-n' 53 + fi 54 + 55 + if test "$1" = --disable-threads; then 56 + cat <<EOF 57 + ## lock-obj-pub.$host.h - NO LOCK SUPPORT 58 + ## File created by gen-lock-obj.sh - DO NOT EDIT 59 + ## To be included by mkheader into gpg-error.h 60 + 61 + /* Dummy object - no locking available. */ 62 + typedef struct 63 + { 64 + long _vers; 65 + } gpgrt_lock_t; 66 + 67 + #define GPGRT_LOCK_INITIALIZER {-1} 68 + EOF 69 + else 70 + AWK_VERSION_OUTPUT=$($AWK 'BEGIN { print PROCINFO["version"] }') 71 + if test -n "$AWK_VERSION_OUTPUT"; then 72 + # It's GNU awk, which supports PROCINFO. 73 + AWK_OPTION=--non-decimal-data 74 + fi 75 + 76 + cat <<'EOF' >conftest.$ac_ext 77 + #include <pthread.h> 78 + pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; 79 + EOF 80 + 81 + if $CC -c conftest.$ac_ext; then : 82 + ac_mtx_size=$($OBJDUMP -j .bss -t conftest.$ac_objext \ 83 + | $AWK $AWK_OPTION ' 84 + /mtx$/ { mtx_size = int("0x" $5) } 85 + END { print mtx_size }') 86 + else 87 + echo "Can't determine mutex size" 88 + exit 1 89 + fi 90 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 91 + 92 + cat <<EOF 93 + ## lock-obj-pub.$host.h 94 + ## File created by gen-lock-obj.sh - DO NOT EDIT 95 + ## To be included by mkheader into gpg-error.h 96 + 97 + typedef struct 98 + { 99 + long _vers; 100 + union { 101 + volatile char _priv[$ac_mtx_size]; 102 + long _x_align; 103 + long *_xp_align; 104 + } u; 105 + } gpgrt_lock_t; 106 + 107 + EOF 108 + 109 + # FIXME: Support different alignment conditions of: 110 + # 111 + # USE_16BYTE_ALIGNMENT 112 + # USE_DOUBLE_FOR_ALIGNMENT 113 + # USE_LONG_DOUBLE_FOR_ALIGNMENT 114 + # 115 + 116 + echo ${ECHO_N} "#define GPGRT_LOCK_INITIALIZER {$LOCK_ABI_VERSION,{{${ECHO_C}" 117 + 118 + i=0 119 + while test "$i" -lt $ac_mtx_size; do 120 + if test "$i" -ne 0 -a "$(( $i % 8 ))" -eq 0; then 121 + echo ' \' 122 + echo ${ECHO_N} " ${ECHO_C}" 123 + fi 124 + echo ${ECHO_N} "0${ECHO_C}" 125 + if test "$i" -lt $(($ac_mtx_size - 1)); then 126 + echo ${ECHO_N} ",${ECHO_C}" 127 + fi 128 + i=$(( i + 1 )) 129 + done 130 + fi 131 + 132 + cat <<'EOF' 133 + }}} 134 + ## 135 + ## Local Variables: 136 + ## mode: c 137 + ## buffer-read-only: t 138 + ## End: 139 + ## 140 + EOF 141 + 142 + exit 0
+2 -2
pkgs/development/libraries/libidn/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "libidn"; 5 - version = "1.37"; 5 + version = "1.38"; 6 6 7 7 src = fetchurl { 8 8 url = "mirror://gnu/libidn/${pname}-${version}.tar.gz"; 9 - sha256 = "1hljls9rkilh04dwiwg388wk8djkac8idijrdysqq2nqbh6rg3iw"; 9 + sha256 = "sha256-3gC4QPdXzTuxTdmiDVk2RzI13cugbUvC2oBGVLi78PY="; 10 10 }; 11 11 12 12 outputs = [ "bin" "dev" "out" "info" "devdoc" ];
+2 -2
pkgs/development/libraries/libidn2/default.nix
··· 9 9 10 10 stdenv.mkDerivation rec { 11 11 pname = "libidn2"; 12 - version = "2.3.1"; 12 + version = "2.3.2"; 13 13 14 14 src = fetchurl { 15 15 url = "mirror://gnu/gnu/libidn/${pname}-${version}.tar.gz"; 16 - sha256 = "sha256-ivaElDg2uLU5ZdX1tnFO8TwmyR6qNs59JC49IfXUDy0="; 16 + sha256 = "sha256-dpQM1Od46Ak1eanRlbJf/16Tbp3GJCBoUotDenZ2T5E="; 17 17 }; 18 18 19 19 outputs = [ "bin" "dev" "out" "info" "devdoc" ];
+2 -2
pkgs/development/libraries/mesa/default.nix
··· 31 31 let 32 32 # Release calendar: https://www.mesa3d.org/release-calendar.html 33 33 # Release frequency: https://www.mesa3d.org/releasing.html#schedule 34 - version = "21.1.5"; 34 + version = "21.1.7"; 35 35 branch = versions.major version; 36 36 37 37 self = stdenv.mkDerivation { ··· 45 45 "ftp://ftp.freedesktop.org/pub/mesa/${version}/mesa-${version}.tar.xz" 46 46 "ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz" 47 47 ]; 48 - sha256 = "0vbn40azh7izrxvb15c51z3lfcb9zas2v1wc4z9cxvja0y9p4b02"; 48 + sha256 = "1fx7nfvh1drfa6vv34j7ma944qbs014b0jwlbgqlnbjgcl87rrp9"; 49 49 }; 50 50 51 51 prePatch = "patchShebangs .";
+3 -3
pkgs/development/libraries/p11-kit/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, which 1 + { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, which 2 2 , gettext, libffi, libiconv, libtasn1 3 3 }: 4 4 5 5 stdenv.mkDerivation rec { 6 6 pname = "p11-kit"; 7 - version = "0.23.22"; 7 + version = "0.24.0"; 8 8 9 9 src = fetchFromGitHub { 10 10 owner = "p11-glue"; 11 11 repo = pname; 12 12 rev = version; 13 - sha256 = "sha256-erWqElJr0iESNUk9EZiJRmSMYhns8GxuFLNw7mIIIWs="; 13 + sha256 = "sha256-jvUzOhMvbq05SxQ+kjKQHDDMzNwo4U6nFHu3JjygJHw="; 14 14 }; 15 15 16 16 outputs = [ "out" "dev"];
+50 -42
pkgs/development/libraries/qt-5/5.12/default.nix
··· 14 14 15 15 */ 16 16 17 - { 18 - newScope, 19 - lib, stdenv, fetchurl, fetchpatch, fetchFromGitHub, makeSetupHook, makeWrapper, 20 - bison, cups ? null, harfbuzz, libGL, perl, 21 - gstreamer, gst-plugins-base, gtk3, dconf, 22 - llvmPackages_5, 17 + { newScope 18 + , lib, stdenv, fetchurl, fetchpatch, fetchFromGitHub, makeSetupHook, makeWrapper 19 + , bison, cups ? null, harfbuzz, libGL, perl 20 + , gstreamer, gst-plugins-base, gtk3, dconf 21 + , llvmPackages_5, darwin 23 22 24 23 # options 25 - developerBuild ? false, 26 - decryptSslTraffic ? false, 27 - debug ? false, 24 + , developerBuild ? false 25 + , decryptSslTraffic ? false 26 + , debug ? false 28 27 }: 29 - 30 - with lib; 31 28 32 29 let 33 30 ··· 50 47 }; 51 48 52 49 patches = { 53 - qtbase = 54 - [ 55 - ./qtbase.patch.d/0001-qtbase-mkspecs-mac.patch 56 - ./qtbase.patch.d/0002-qtbase-mac.patch 57 - ./qtbase.patch.d/0013-define-kiosurfacesuccess.patch 50 + qtbase = [ 51 + ./qtbase.patch.d/0001-qtbase-mkspecs-mac.patch 52 + ./qtbase.patch.d/0002-qtbase-mac.patch 53 + ./qtbase.patch.d/0013-define-kiosurfacesuccess.patch 58 54 59 - # Patch framework detection to support X.framework/X.tbd, 60 - # extending the current support for X.framework/X. 61 - ./qtbase.patch.d/0015-qtbase-tbd-frameworks.patch 55 + # Patch framework detection to support X.framework/X.tbd, 56 + # extending the current support for X.framework/X. 57 + ./qtbase.patch.d/0015-qtbase-tbd-frameworks.patch 62 58 63 - ./qtbase.patch.d/0003-qtbase-mkspecs.patch 64 - ./qtbase.patch.d/0004-qtbase-replace-libdir.patch 65 - ./qtbase.patch.d/0005-qtbase-cmake.patch 66 - ./qtbase.patch.d/0006-qtbase-gtk3.patch 67 - ./qtbase.patch.d/0007-qtbase-xcursor.patch 68 - ./qtbase.patch.d/0008-qtbase-xcompose.patch 69 - ./qtbase.patch.d/0009-qtbase-tzdir.patch 70 - ./qtbase.patch.d/0010-qtbase-qtpluginpath.patch 71 - ./qtbase.patch.d/0011-qtbase-assert.patch 72 - ./qtbase.patch.d/0012-fix-header_module.patch 59 + ./qtbase.patch.d/0003-qtbase-mkspecs.patch 60 + ./qtbase.patch.d/0004-qtbase-replace-libdir.patch 61 + ./qtbase.patch.d/0005-qtbase-cmake.patch 62 + ./qtbase.patch.d/0006-qtbase-gtk3.patch 63 + ./qtbase.patch.d/0007-qtbase-xcursor.patch 64 + ./qtbase.patch.d/0008-qtbase-xcompose.patch 65 + ./qtbase.patch.d/0009-qtbase-tzdir.patch 66 + ./qtbase.patch.d/0010-qtbase-qtpluginpath.patch 67 + ./qtbase.patch.d/0011-qtbase-assert.patch 68 + ./qtbase.patch.d/0012-fix-header_module.patch 73 69 74 - # Ensure -I${includedir} is added to Cflags in pkg-config files. 75 - # See https://github.com/NixOS/nixpkgs/issues/52457 76 - ./qtbase.patch.d/0014-qtbase-pkg-config.patch 77 - ]; 70 + # Ensure -I${includedir} is added to Cflags in pkg-config files. 71 + # See https://github.com/NixOS/nixpkgs/issues/52457 72 + ./qtbase.patch.d/0014-qtbase-pkg-config.patch 73 + ]; 78 74 qtdeclarative = [ ./qtdeclarative.patch ]; 79 75 qtlocation = [ ./qtlocation-gcc-9.patch ]; 80 76 qtscript = [ ./qtscript.patch ]; ··· 143 139 inherit bison cups harfbuzz libGL; 144 140 withGtk3 = true; inherit dconf gtk3; 145 141 inherit debug developerBuild decryptSslTraffic; 142 + inherit (darwin.apple_sdk.frameworks) AGL AppKit ApplicationServices Carbon Cocoa CoreAudio CoreBluetooth 143 + CoreLocation CoreServices DiskArbitration Foundation OpenGL MetalKit IOKit; 144 + inherit (darwin) libobjc; 146 145 }; 147 146 148 147 qtcharts = callPackage ../modules/qtcharts.nix {}; ··· 173 172 qtvirtualkeyboard = callPackage ../modules/qtvirtualkeyboard.nix {}; 174 173 qtwayland = callPackage ../modules/qtwayland.nix {}; 175 174 qtwebchannel = callPackage ../modules/qtwebchannel.nix {}; 176 - qtwebengine = callPackage ../modules/qtwebengine.nix {}; 175 + qtwebengine = callPackage ../modules/qtwebengine.nix { 176 + inherit (darwin) cctools libobjc libunwind xnu; 177 + inherit (darwin.apple_sdk.libs) sandbox; 178 + inherit (darwin.apple_sdk.frameworks) ApplicationServices AVFoundation Foundation ForceFeedback GameController AppKit 179 + ImageCaptureCore CoreBluetooth IOBluetooth CoreWLAN Quartz Cocoa LocalAuthentication; 180 + }; 177 181 qtwebglplugin = callPackage ../modules/qtwebglplugin.nix {}; 178 - qtwebkit = callPackage ../modules/qtwebkit.nix {}; 182 + qtwebkit = callPackage ../modules/qtwebkit.nix { 183 + inherit (darwin) ICU; 184 + inherit (darwin.apple_sdk.frameworks) OpenGL; 185 + }; 179 186 qtwebsockets = callPackage ../modules/qtwebsockets.nix {}; 180 - qtwebview = callPackage ../modules/qtwebview.nix {}; 187 + qtwebview = callPackage ../modules/qtwebview.nix { 188 + inherit (darwin.apple_sdk.frameworks) CoreFoundation WebKit; 189 + }; 181 190 qtx11extras = callPackage ../modules/qtx11extras.nix {}; 182 191 qtxmlpatterns = callPackage ../modules/qtxmlpatterns.nix {}; 183 192 ··· 188 197 qtscript qtsensors qtserialport qtsvg qttools qttranslations 189 198 qtvirtualkeyboard qtwebchannel qtwebengine qtwebkit qtwebsockets 190 199 qtwebview qtx11extras qtxmlpatterns 191 - ] ++ optional (!stdenv.isDarwin) qtwayland 192 - ++ optional (stdenv.isDarwin) qtmacextras); 200 + ] ++ lib.optional (!stdenv.isDarwin) qtwayland 201 + ++ lib.optional (stdenv.isDarwin) qtmacextras); 193 202 194 203 qmake = makeSetupHook { 195 204 deps = [ self.qtbase.dev ]; ··· 200 209 } ../hooks/qmake-hook.sh; 201 210 202 211 wrapQtAppsHook = makeSetupHook { 203 - deps = 204 - [ self.qtbase.dev makeWrapper ] 205 - ++ optional stdenv.isLinux self.qtwayland.dev; 212 + deps = [ self.qtbase.dev makeWrapper ] 213 + ++ lib.optional stdenv.isLinux self.qtwayland.dev; 206 214 } ../hooks/wrap-qt-apps-hook.sh; 207 215 }; 208 216 209 - self = makeScope newScope addPackages; 217 + self = lib.makeScope newScope addPackages; 210 218 211 219 in self
+50 -44
pkgs/development/libraries/qt-5/5.14/default.nix
··· 14 14 15 15 */ 16 16 17 - { 18 - newScope, 19 - lib, stdenv, fetchurl, fetchpatch, fetchFromGitHub, makeSetupHook, makeWrapper, 20 - bison, cups ? null, harfbuzz, libGL, perl, 21 - gstreamer, gst-plugins-base, gtk3, dconf, 22 - llvmPackages_5, 17 + { newScope 18 + , lib, stdenv, fetchurl, fetchpatch, fetchFromGitHub, makeSetupHook, makeWrapper 19 + , bison, cups ? null, harfbuzz, libGL, perl 20 + , gstreamer, gst-plugins-base, gtk3, dconf 21 + , llvmPackages_5, darwin 23 22 24 23 # options 25 - developerBuild ? false, 26 - decryptSslTraffic ? false, 27 - debug ? false, 24 + , developerBuild ? false 25 + , decryptSslTraffic ? false 26 + , debug ? false 28 27 }: 29 - 30 - with lib; 31 28 32 29 let 33 30 ··· 51 48 }; 52 49 53 50 patches = { 54 - qtbase = 55 - optionals stdenv.isDarwin [ 56 - ./qtbase.patch.d/0001-qtbase-mkspecs-mac.patch 51 + qtbase = lib.optionals stdenv.isDarwin [ 52 + ./qtbase.patch.d/0001-qtbase-mkspecs-mac.patch 57 53 58 - # Downgrade minimal required SDK to 10.12 59 - ./qtbase.patch.d/0013-define-kiosurfacesuccess.patch 60 - ./qtbase.patch.d/qtbase-sdk-10.12-mac.patch 54 + # Downgrade minimal required SDK to 10.12 55 + ./qtbase.patch.d/0013-define-kiosurfacesuccess.patch 56 + ./qtbase.patch.d/qtbase-sdk-10.12-mac.patch 61 57 62 - # Patch framework detection to support X.framework/X.tbd, 63 - # extending the current support for X.framework/X. 64 - ./qtbase.patch.d/0012-qtbase-tbd-frameworks.patch 65 - ] 66 - ++ [ 67 - ./qtbase.patch.d/0003-qtbase-mkspecs.patch 68 - ./qtbase.patch.d/0004-qtbase-replace-libdir.patch 69 - ./qtbase.patch.d/0005-qtbase-cmake.patch 70 - ./qtbase.patch.d/0006-qtbase-gtk3.patch 71 - ./qtbase.patch.d/0007-qtbase-xcursor.patch 72 - ./qtbase.patch.d/0008-qtbase-tzdir.patch 73 - ./qtbase.patch.d/0009-qtbase-qtpluginpath.patch 74 - ./qtbase.patch.d/0010-qtbase-assert.patch 75 - ./qtbase.patch.d/0011-fix-header_module.patch 76 - ]; 58 + # Patch framework detection to support X.framework/X.tbd, 59 + # extending the current support for X.framework/X. 60 + ./qtbase.patch.d/0012-qtbase-tbd-frameworks.patch 61 + ] ++ [ 62 + ./qtbase.patch.d/0003-qtbase-mkspecs.patch 63 + ./qtbase.patch.d/0004-qtbase-replace-libdir.patch 64 + ./qtbase.patch.d/0005-qtbase-cmake.patch 65 + ./qtbase.patch.d/0006-qtbase-gtk3.patch 66 + ./qtbase.patch.d/0007-qtbase-xcursor.patch 67 + ./qtbase.patch.d/0008-qtbase-tzdir.patch 68 + ./qtbase.patch.d/0009-qtbase-qtpluginpath.patch 69 + ./qtbase.patch.d/0010-qtbase-assert.patch 70 + ./qtbase.patch.d/0011-fix-header_module.patch 71 + ]; 77 72 qtdeclarative = [ ./qtdeclarative.patch ]; 78 73 qtlocation = [ ./qtlocation-gcc-9.patch ]; 79 74 qtscript = [ ./qtscript.patch ]; ··· 103 98 stripLen = 1; 104 99 extraPrefix = "src/3rdparty/"; 105 100 }) 106 - ] 107 - ++ optional stdenv.isDarwin ./qtwebengine-darwin-no-platform-check.patch; 101 + ] ++ lib.optional stdenv.isDarwin ./qtwebengine-darwin-no-platform-check.patch; 108 102 qtwebkit = [ 109 103 (fetchpatch { 110 104 name = "qtwebkit-bison-3.7-build.patch"; ··· 118 112 }) 119 113 ./qtwebkit.patch 120 114 ./qtwebkit-icu68.patch 121 - ] ++ optionals stdenv.isDarwin [ 115 + ] ++ lib.optionals stdenv.isDarwin [ 122 116 ./qtwebkit-darwin-no-readline.patch 123 117 ./qtwebkit-darwin-no-qos-classes.patch 124 118 ]; ··· 157 151 inherit bison cups harfbuzz libGL; 158 152 withGtk3 = true; inherit dconf gtk3; 159 153 inherit debug developerBuild decryptSslTraffic; 154 + inherit (darwin.apple_sdk.frameworks) AGL AppKit ApplicationServices Carbon Cocoa CoreAudio CoreBluetooth 155 + CoreLocation CoreServices DiskArbitration Foundation OpenGL MetalKit IOKit; 156 + inherit (darwin) libobjc; 160 157 }; 161 158 162 159 qtcharts = callPackage ../modules/qtcharts.nix {}; ··· 185 182 qtvirtualkeyboard = callPackage ../modules/qtvirtualkeyboard.nix {}; 186 183 qtwayland = callPackage ../modules/qtwayland.nix {}; 187 184 qtwebchannel = callPackage ../modules/qtwebchannel.nix {}; 188 - qtwebengine = callPackage ../modules/qtwebengine.nix {}; 185 + qtwebengine = callPackage ../modules/qtwebengine.nix { 186 + inherit (darwin) cctools libobjc libunwind xnu; 187 + inherit (darwin.apple_sdk.libs) sandbox; 188 + inherit (darwin.apple_sdk.frameworks) ApplicationServices AVFoundation Foundation ForceFeedback GameController AppKit 189 + ImageCaptureCore CoreBluetooth IOBluetooth CoreWLAN Quartz Cocoa LocalAuthentication; 190 + }; 189 191 qtwebglplugin = callPackage ../modules/qtwebglplugin.nix {}; 190 - qtwebkit = callPackage ../modules/qtwebkit.nix {}; 192 + qtwebkit = callPackage ../modules/qtwebkit.nix { 193 + inherit (darwin) ICU; 194 + inherit (darwin.apple_sdk.frameworks) OpenGL; 195 + }; 191 196 qtwebsockets = callPackage ../modules/qtwebsockets.nix {}; 192 - qtwebview = callPackage ../modules/qtwebview.nix {}; 197 + qtwebview = callPackage ../modules/qtwebview.nix { 198 + inherit (darwin.apple_sdk.frameworks) CoreFoundation WebKit; 199 + }; 193 200 qtx11extras = callPackage ../modules/qtx11extras.nix {}; 194 201 qtxmlpatterns = callPackage ../modules/qtxmlpatterns.nix {}; 195 202 ··· 200 207 qtscript qtsensors qtserialport qtsvg qttools qttranslations 201 208 qtvirtualkeyboard qtwebchannel qtwebengine qtwebkit qtwebsockets 202 209 qtwebview qtx11extras qtxmlpatterns 203 - ] ++ optional (!stdenv.isDarwin) qtwayland 204 - ++ optional (stdenv.isDarwin) qtmacextras); 210 + ] ++ lib.optional (!stdenv.isDarwin) qtwayland 211 + ++ lib.optional (stdenv.isDarwin) qtmacextras); 205 212 206 213 qmake = makeSetupHook { 207 214 deps = [ self.qtbase.dev ]; ··· 212 219 } ../hooks/qmake-hook.sh; 213 220 214 221 wrapQtAppsHook = makeSetupHook { 215 - deps = 216 - [ self.qtbase.dev makeWrapper ] 217 - ++ optional stdenv.isLinux self.qtwayland.dev; 222 + deps = [ self.qtbase.dev makeWrapper ] 223 + ++ lib.optional stdenv.isLinux self.qtwayland.dev; 218 224 } ../hooks/wrap-qt-apps-hook.sh; 219 225 }; 220 226 221 - self = makeScope newScope addPackages; 227 + self = lib.makeScope newScope addPackages; 222 228 223 229 in self
+60 -54
pkgs/development/libraries/qt-5/5.15/default.nix
··· 14 14 15 15 */ 16 16 17 - { 18 - newScope, 19 - lib, stdenv, fetchurl, fetchpatch, fetchgit, fetchFromGitHub, makeSetupHook, makeWrapper, 20 - bison, cups ? null, harfbuzz, libGL, perl, 21 - gstreamer, gst-plugins-base, gtk3, dconf, 22 - llvmPackages_5, 17 + { newScope 18 + , lib, stdenv, fetchurl, fetchgit, fetchpatch, fetchFromGitHub, makeSetupHook, makeWrapper 19 + , bison, cups ? null, harfbuzz, libGL, perl 20 + , gstreamer, gst-plugins-base, gtk3, dconf 21 + , llvmPackages_5, darwin 23 22 24 23 # options 25 - developerBuild ? false, 26 - decryptSslTraffic ? false, 27 - debug ? false, 24 + , developerBuild ? false 25 + , decryptSslTraffic ? false 26 + , debug ? false 28 27 }: 29 - 30 - with lib; 31 28 32 29 let 33 30 ··· 63 60 inherit rev branchName; 64 61 fetchSubmodules = true; 65 62 leaveDotGit = true; 66 - name = "qtwebengine-${substring 0 7 rev}.tar.gz"; 63 + name = "qtwebengine-${lib.substring 0 7 rev}.tar.gz"; 67 64 postFetch = '' 68 65 # remove submodule .git directory 69 66 rm -rf $out/src/3rdparty/.git ··· 83 80 }; 84 81 85 82 patches = { 86 - qtbase = 87 - optionals stdenv.isDarwin [ 88 - ./qtbase.patch.d/0001-qtbase-mkspecs-mac.patch 83 + qtbase = lib.optionals stdenv.isDarwin [ 84 + ./qtbase.patch.d/0001-qtbase-mkspecs-mac.patch 89 85 90 - # Downgrade minimal required SDK to 10.12 91 - ./qtbase.patch.d/0013-define-kiosurfacesuccess.patch 92 - ./qtbase.patch.d/macos-sdk-10.12/0001-Revert-QCocoaDrag-set-image-only-on-the-first-drag-i.patch 93 - ./qtbase.patch.d/macos-sdk-10.12/0002-Revert-QCocoaDrag-drag-make-sure-clipboard-is-ours-a.patch 94 - ./qtbase.patch.d/macos-sdk-10.12/0003-Revert-QCocoaDrag-maybeDragMultipleItems-fix-erroneo.patch 95 - ./qtbase.patch.d/macos-sdk-10.12/0004-Revert-QCocoaDrag-avoid-using-the-deprecated-API-if-.patch 96 - ./qtbase.patch.d/macos-sdk-10.12/0005-Revert-macOS-Fix-use-of-deprecated-NSOffState.patch 97 - ./qtbase.patch.d/macos-sdk-10.12/0006-git-checkout-v5.15.0-src-plugins-platforms-cocoa-qco.patch 98 - ./qtbase.patch.d/qtbase-sdk-10.12-mac.patch 86 + # Downgrade minimal required SDK to 10.12 87 + ./qtbase.patch.d/0013-define-kiosurfacesuccess.patch 88 + ./qtbase.patch.d/macos-sdk-10.12/0001-Revert-QCocoaDrag-set-image-only-on-the-first-drag-i.patch 89 + ./qtbase.patch.d/macos-sdk-10.12/0002-Revert-QCocoaDrag-drag-make-sure-clipboard-is-ours-a.patch 90 + ./qtbase.patch.d/macos-sdk-10.12/0003-Revert-QCocoaDrag-maybeDragMultipleItems-fix-erroneo.patch 91 + ./qtbase.patch.d/macos-sdk-10.12/0004-Revert-QCocoaDrag-avoid-using-the-deprecated-API-if-.patch 92 + ./qtbase.patch.d/macos-sdk-10.12/0005-Revert-macOS-Fix-use-of-deprecated-NSOffState.patch 93 + ./qtbase.patch.d/macos-sdk-10.12/0006-git-checkout-v5.15.0-src-plugins-platforms-cocoa-qco.patch 94 + ./qtbase.patch.d/qtbase-sdk-10.12-mac.patch 99 95 100 - # Patch framework detection to support X.framework/X.tbd, 101 - # extending the current support for X.framework/X. 102 - ./qtbase.patch.d/0012-qtbase-tbd-frameworks.patch 103 - ] 104 - ++ [ 105 - ./qtbase.patch.d/0003-qtbase-mkspecs.patch 106 - ./qtbase.patch.d/0004-qtbase-replace-libdir.patch 107 - ./qtbase.patch.d/0005-qtbase-cmake.patch 108 - ./qtbase.patch.d/0006-qtbase-gtk3.patch 109 - ./qtbase.patch.d/0007-qtbase-xcursor.patch 110 - ./qtbase.patch.d/0008-qtbase-tzdir.patch 111 - ./qtbase.patch.d/0009-qtbase-qtpluginpath.patch 112 - ./qtbase.patch.d/0010-qtbase-assert.patch 113 - ./qtbase.patch.d/0011-fix-header_module.patch 114 - (fetchpatch { # This can be removed when https://codereview.qt-project.org/c/qt/qtbase/+/339323 is included in an release. 115 - name = "0014-gcc11-compat.patch"; 116 - url = "https://codereview.qt-project.org/gitweb?p=qt/qtbase.git;a=patch;h=049e14870c13235cd066758f29c42dc96c1ccdf8"; 117 - sha256 = "1cb2hwi859hds0fa2cbap014qaa7mah9p0rcxcm2cvj2ybl33qfc"; 118 - }) 119 - ]; 96 + # Patch framework detection to support X.framework/X.tbd, 97 + # extending the current support for X.framework/X. 98 + ./qtbase.patch.d/0012-qtbase-tbd-frameworks.patch 99 + ] ++ [ 100 + ./qtbase.patch.d/0003-qtbase-mkspecs.patch 101 + ./qtbase.patch.d/0004-qtbase-replace-libdir.patch 102 + ./qtbase.patch.d/0005-qtbase-cmake.patch 103 + ./qtbase.patch.d/0006-qtbase-gtk3.patch 104 + ./qtbase.patch.d/0007-qtbase-xcursor.patch 105 + ./qtbase.patch.d/0008-qtbase-tzdir.patch 106 + ./qtbase.patch.d/0009-qtbase-qtpluginpath.patch 107 + ./qtbase.patch.d/0010-qtbase-assert.patch 108 + ./qtbase.patch.d/0011-fix-header_module.patch 109 + (fetchpatch { # This can be removed when https://codereview.qt-project.org/c/qt/qtbase/+/339323 is included in an release. 110 + name = "0014-gcc11-compat.patch"; 111 + url = "https://codereview.qt-project.org/gitweb?p=qt/qtbase.git;a=patch;h=049e14870c13235cd066758f29c42dc96c1ccdf8"; 112 + sha256 = "1cb2hwi859hds0fa2cbap014qaa7mah9p0rcxcm2cvj2ybl33qfc"; 113 + }) 114 + ]; 120 115 qtdeclarative = [ ./qtdeclarative.patch ]; 121 116 qtscript = [ ./qtscript.patch ]; 122 117 qtserialport = [ ./qtserialport.patch ]; ··· 127 122 name = "qtwebengine-everywhere-src-5.15.5-_1904652.patch"; 128 123 sha256 = "01q7hagq0ysii1jnrh5adm97vdm9cis592xr6im7accyw6hgcn7b"; 129 124 }) 130 - ] ++ optionals stdenv.isDarwin [ 125 + ] ++ lib.optionals stdenv.isDarwin [ 131 126 ./qtwebengine-darwin-no-platform-check.patch 132 127 ./qtwebengine-mac-dont-set-dsymutil-path.patch 133 128 ]; ··· 144 139 }) 145 140 ./qtwebkit.patch 146 141 ./qtwebkit-icu68.patch 147 - ] ++ optionals stdenv.isDarwin [ 142 + ] ++ lib.optionals stdenv.isDarwin [ 148 143 ./qtwebkit-darwin-no-readline.patch 149 144 ./qtwebkit-darwin-no-qos-classes.patch 150 145 ]; ··· 182 177 inherit bison cups harfbuzz libGL; 183 178 withGtk3 = true; inherit dconf gtk3; 184 179 inherit developerBuild decryptSslTraffic; 180 + inherit (darwin.apple_sdk.frameworks) AGL AppKit ApplicationServices Carbon Cocoa CoreAudio CoreBluetooth 181 + CoreLocation CoreServices DiskArbitration Foundation OpenGL MetalKit IOKit; 182 + inherit (darwin) libobjc; 185 183 }; 186 184 187 185 qtcharts = callPackage ../modules/qtcharts.nix {}; ··· 213 211 qtwebchannel = callPackage ../modules/qtwebchannel.nix {}; 214 212 qtwebengine = callPackage ../modules/qtwebengine.nix { 215 213 inherit (srcs.qtwebengine) version; 214 + inherit (darwin) cctools libobjc libunwind xnu; 215 + inherit (darwin.apple_sdk.libs) sandbox; 216 + inherit (darwin.apple_sdk.frameworks) ApplicationServices AVFoundation Foundation ForceFeedback GameController AppKit 217 + ImageCaptureCore CoreBluetooth IOBluetooth CoreWLAN Quartz Cocoa LocalAuthentication; 216 218 }; 217 219 qtwebglplugin = callPackage ../modules/qtwebglplugin.nix {}; 218 - qtwebkit = callPackage ../modules/qtwebkit.nix {}; 220 + qtwebkit = callPackage ../modules/qtwebkit.nix { 221 + inherit (darwin) ICU; 222 + inherit (darwin.apple_sdk.frameworks) OpenGL; 223 + }; 219 224 qtwebsockets = callPackage ../modules/qtwebsockets.nix {}; 220 - qtwebview = callPackage ../modules/qtwebview.nix {}; 225 + qtwebview = callPackage ../modules/qtwebview.nix { 226 + inherit (darwin.apple_sdk.frameworks) CoreFoundation WebKit; 227 + }; 221 228 qtx11extras = callPackage ../modules/qtx11extras.nix {}; 222 229 qtxmlpatterns = callPackage ../modules/qtxmlpatterns.nix {}; 223 230 ··· 228 235 qtscript qtsensors qtserialport qtsvg qttools qttranslations 229 236 qtvirtualkeyboard qtwebchannel qtwebengine qtwebkit qtwebsockets 230 237 qtwebview qtx11extras qtxmlpatterns 231 - ] ++ optional (!stdenv.isDarwin) qtwayland 232 - ++ optional (stdenv.isDarwin) qtmacextras); 238 + ] ++ lib.optional (!stdenv.isDarwin) qtwayland 239 + ++ lib.optional (stdenv.isDarwin) qtmacextras); 233 240 234 241 qmake = makeSetupHook { 235 242 deps = [ self.qtbase.dev ]; ··· 240 247 } ../hooks/qmake-hook.sh; 241 248 242 249 wrapQtAppsHook = makeSetupHook { 243 - deps = 244 - [ self.qtbase.dev makeWrapper ] 245 - ++ optional stdenv.isLinux self.qtwayland.dev; 250 + deps = [ self.qtbase.dev makeWrapper ] 251 + ++ lib.optional stdenv.isLinux self.qtwayland.dev; 246 252 } ../hooks/wrap-qt-apps-hook.sh; 247 253 }; 248 254 249 - self = makeScope newScope addPackages; 255 + self = lib.makeScope newScope addPackages; 250 256 251 257 in self
+203 -263
pkgs/development/libraries/qt-5/modules/qtbase.nix
··· 1 - { 2 - stdenv, lib, 3 - src, patches, version, qtCompatVersion, 1 + { stdenv, lib 2 + , src, patches, version, qtCompatVersion 4 3 5 - coreutils, bison, flex, gdb, gperf, lndir, perl, pkg-config, python3, 6 - which, 4 + , coreutils, bison, flex, gdb, gperf, lndir, perl, pkg-config, python3 5 + , which 7 6 # darwin support 8 - darwin, libiconv, 7 + , libiconv, libobjc, xcbuild, AGL, AppKit, ApplicationServices, Carbon, Cocoa, CoreAudio, CoreBluetooth 8 + , CoreLocation, CoreServices, DiskArbitration, Foundation, OpenGL, MetalKit, IOKit 9 9 10 - dbus, fontconfig, freetype, glib, harfbuzz, icu, libX11, libXcomposite, 11 - libXcursor, libXext, libXi, libXrender, libinput, libjpeg, libpng, 12 - libxcb, libxkbcommon, libxml2, libxslt, openssl, pcre16, pcre2, sqlite, udev, 13 - xcbutil, xcbutilimage, xcbutilkeysyms, xcbutilrenderutil, xcbutilwm, 14 - zlib, 10 + , dbus, fontconfig, freetype, glib, harfbuzz, icu, libX11, libXcomposite 11 + , libXcursor, libXext, libXi, libXrender, libinput, libjpeg, libpng 12 + , libxcb, libxkbcommon, libxml2, libxslt, openssl, pcre16, pcre2, sqlite, udev 13 + , xcbutil, xcbutilimage, xcbutilkeysyms, xcbutilrenderutil, xcbutilwm 14 + , zlib 15 15 16 16 # optional dependencies 17 - cups ? null, libmysqlclient ? null, postgresql ? null, 18 - withGtk3 ? false, dconf ? null, gtk3 ? null, 17 + , cups ? null, libmysqlclient ? null, postgresql ? null 18 + , withGtk3 ? false, dconf ? null, gtk3 ? null 19 19 20 20 # options 21 - libGLSupported ? !stdenv.isDarwin, 22 - libGL, 23 - buildExamples ? false, 24 - buildTests ? false, 25 - debug ? false, 26 - developerBuild ? false, 27 - decryptSslTraffic ? false 21 + , libGLSupported ? !stdenv.isDarwin 22 + , libGL 23 + , buildExamples ? false 24 + , buildTests ? false 25 + , debug ? false 26 + , developerBuild ? false 27 + , decryptSslTraffic ? false 28 28 }: 29 29 30 30 assert withGtk3 -> dconf != null; ··· 32 32 33 33 let 34 34 compareVersion = v: builtins.compareVersions version v; 35 - qmakeCacheName = 36 - if compareVersion "5.12.4" < 0 then ".qmake.cache" else ".qmake.stash"; 35 + qmakeCacheName = if compareVersion "5.12.4" < 0 then ".qmake.cache" else ".qmake.stash"; 37 36 debugSymbols = debug || developerBuild; 38 37 in 39 38 40 39 stdenv.mkDerivation { 41 - 42 - name = "qtbase-${version}"; 40 + pname = "qtbase"; 43 41 inherit qtCompatVersion src version; 44 42 debug = debugSymbols; 45 43 46 - propagatedBuildInputs = 47 - [ 48 - libxml2 libxslt openssl sqlite zlib 44 + propagatedBuildInputs = [ 45 + libxml2 libxslt openssl sqlite zlib 49 46 50 - # Text rendering 51 - harfbuzz icu 47 + # Text rendering 48 + harfbuzz icu 52 49 53 - # Image formats 54 - libjpeg libpng 55 - (if compareVersion "5.9.0" < 0 then pcre16 else pcre2) 56 - ] 57 - ++ ( 58 - if stdenv.isDarwin 59 - then with darwin.apple_sdk.frameworks; 60 - [ 61 - # TODO: move to buildInputs, this should not be propagated. 62 - AGL AppKit ApplicationServices Carbon Cocoa CoreAudio CoreBluetooth 63 - CoreLocation CoreServices DiskArbitration Foundation OpenGL 64 - darwin.libobjc libiconv MetalKit IOKit 65 - ] 66 - else 67 - [ 68 - dbus glib udev 50 + # Image formats 51 + libjpeg libpng 52 + (if compareVersion "5.9.0" < 0 then pcre16 else pcre2) 53 + ] ++ ( 54 + if stdenv.isDarwin then [ 55 + # TODO: move to buildInputs, this should not be propagated. 56 + AGL AppKit ApplicationServices Carbon Cocoa CoreAudio CoreBluetooth 57 + CoreLocation CoreServices DiskArbitration Foundation OpenGL 58 + libobjc libiconv MetalKit IOKit 59 + ] else [ 60 + dbus glib udev 69 61 70 - # Text rendering 71 - fontconfig freetype 62 + # Text rendering 63 + fontconfig freetype 72 64 73 - # X11 libs 74 - libX11 libXcomposite libXext libXi libXrender libxcb libxkbcommon xcbutil 75 - xcbutilimage xcbutilkeysyms xcbutilrenderutil xcbutilwm 76 - ] 77 - ++ lib.optional libGLSupported libGL 78 - ); 65 + # X11 libs 66 + libX11 libXcomposite libXext libXi libXrender libxcb libxkbcommon xcbutil 67 + xcbutilimage xcbutilkeysyms xcbutilrenderutil xcbutilwm 68 + ] ++ lib.optional libGLSupported libGL 69 + ); 79 70 80 - buildInputs = 81 - [ python3 ] 71 + buildInputs = [ python3 ] 82 72 ++ lib.optionals (!stdenv.isDarwin) 83 73 ( 84 74 [ libinput ] ··· 89 79 ++ lib.optional (libmysqlclient != null) libmysqlclient 90 80 ++ lib.optional (postgresql != null) postgresql; 91 81 92 - nativeBuildInputs = 93 - [ bison flex gperf lndir perl pkg-config which ]; 82 + nativeBuildInputs = [ bison flex gperf lndir perl pkg-config which ] 83 + ++ lib.optionals stdenv.isDarwin [ xcbuild ]; 94 84 95 85 propagatedNativeBuildInputs = [ lndir ]; 96 86 ··· 107 97 . ${../hooks/fix-qmake-libtool.sh} 108 98 ''; 109 99 110 - postPatch = 111 - '' 112 - for prf in qml_plugin.prf qt_plugin.prf qt_docs.prf qml_module.prf create_cmake.prf; do 113 - substituteInPlace "mkspecs/features/$prf" \ 114 - --subst-var qtPluginPrefix \ 115 - --subst-var qtQmlPrefix \ 116 - --subst-var qtDocPrefix 117 - done 100 + postPatch = '' 101 + for prf in qml_plugin.prf qt_plugin.prf qt_docs.prf qml_module.prf create_cmake.prf; do 102 + substituteInPlace "mkspecs/features/$prf" \ 103 + --subst-var qtPluginPrefix \ 104 + --subst-var qtQmlPrefix \ 105 + --subst-var qtDocPrefix 106 + done 118 107 119 - substituteInPlace configure --replace /bin/pwd pwd 120 - substituteInPlace src/corelib/global/global.pri --replace /bin/ls ${coreutils}/bin/ls 121 - sed -e 's@/\(usr\|opt\)/@/var/empty/@g' -i mkspecs/*/*.conf 108 + substituteInPlace configure --replace /bin/pwd pwd 109 + substituteInPlace src/corelib/global/global.pri --replace /bin/ls ${coreutils}/bin/ls 110 + sed -e 's@/\(usr\|opt\)/@/var/empty/@g' -i mkspecs/*/*.conf 122 111 123 - sed -i '/PATHS.*NO_DEFAULT_PATH/ d' src/corelib/Qt5Config.cmake.in 124 - sed -i '/PATHS.*NO_DEFAULT_PATH/ d' src/corelib/Qt5CoreMacros.cmake 125 - sed -i 's/NO_DEFAULT_PATH//' src/gui/Qt5GuiConfigExtras.cmake.in 126 - sed -i '/PATHS.*NO_DEFAULT_PATH/ d' mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in 112 + sed -i '/PATHS.*NO_DEFAULT_PATH/ d' src/corelib/Qt5Config.cmake.in 113 + sed -i '/PATHS.*NO_DEFAULT_PATH/ d' src/corelib/Qt5CoreMacros.cmake 114 + sed -i 's/NO_DEFAULT_PATH//' src/gui/Qt5GuiConfigExtras.cmake.in 115 + sed -i '/PATHS.*NO_DEFAULT_PATH/ d' mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in 116 + '' + ( 117 + if stdenv.isDarwin then '' 118 + sed -i \ 119 + -e 's|/usr/bin/xcode-select|xcode-select|' \ 120 + -e 's|/usr/bin/xcrun|xcrun|' \ 121 + -e 's|/usr/bin/xcodebuild|xcodebuild|' \ 122 + -e 's|QMAKE_CONF_COMPILER=`getXQMakeConf QMAKE_CXX`|QMAKE_CXX="clang++"\nQMAKE_CONF_COMPILER="clang++"|' \ 123 + ./configure 124 + substituteInPlace ./mkspecs/common/mac.conf \ 125 + --replace "/System/Library/Frameworks/OpenGL.framework/" "${OpenGL}/Library/Frameworks/OpenGL.framework/" \ 126 + --replace "/System/Library/Frameworks/AGL.framework/" "${AGL}/Library/Frameworks/AGL.framework/" 127 + '' else lib.optionalString libGLSupported '' 128 + sed -i mkspecs/common/linux.conf \ 129 + -e "/^QMAKE_INCDIR_OPENGL/ s|$|${libGL.dev or libGL}/include|" \ 130 + -e "/^QMAKE_LIBDIR_OPENGL/ s|$|${libGL.out}/lib|" 131 + '' + lib.optionalString (stdenv.hostPlatform.isx86_32 && stdenv.cc.isGNU) '' 132 + sed -i mkspecs/common/gcc-base-unix.conf \ 133 + -e "/^QMAKE_LFLAGS_SHLIB/ s/-shared/-shared -static-libgcc/" 127 134 '' 128 - 129 - + ( 130 - if stdenv.isDarwin 131 - then 132 - '' 133 - sed -i \ 134 - -e 's|! /usr/bin/xcode-select --print-path >/dev/null 2>&1;|false;|' \ 135 - -e 's|! /usr/bin/xcrun -find xcodebuild >/dev/null 2>&1;|false;|' \ 136 - -e 's|sysroot=$(/usr/bin/xcodebuild -sdk $sdk -version Path 2>/dev/null)|sysroot=/nonsense|' \ 137 - -e 's|sysroot=$(/usr/bin/xcrun --sdk $sdk --show-sdk-path 2>/dev/null)|sysroot=/nonsense|' \ 138 - -e 's|QMAKE_CONF_COMPILER=`getXQMakeConf QMAKE_CXX`|QMAKE_CXX="clang++"\nQMAKE_CONF_COMPILER="clang++"|' \ 139 - -e 's|XCRUN=`/usr/bin/xcrun -sdk macosx clang -v 2>&1`|XCRUN="clang -v 2>&1"|' \ 140 - -e 's#sdk_val=$(/usr/bin/xcrun -sdk $sdk -find $(echo $val | cut -d \x27 \x27 -f 1))##' \ 141 - -e 's#val=$(echo $sdk_val $(echo $val | cut -s -d \x27 \x27 -f 2-))##' \ 142 - ./configure 143 - substituteInPlace ./mkspecs/common/mac.conf \ 144 - --replace "/System/Library/Frameworks/OpenGL.framework/" "${darwin.apple_sdk.frameworks.OpenGL}/Library/Frameworks/OpenGL.framework/" 145 - substituteInPlace ./mkspecs/common/mac.conf \ 146 - --replace "/System/Library/Frameworks/AGL.framework/" "${darwin.apple_sdk.frameworks.AGL}/Library/Frameworks/AGL.framework/" 147 - '' 148 - # Note on the above: \x27 is a way if including a single-quote 149 - # character in the sed string arguments. 150 - else 151 - lib.optionalString libGLSupported 152 - '' 153 - sed -i mkspecs/common/linux.conf \ 154 - -e "/^QMAKE_INCDIR_OPENGL/ s|$|${libGL.dev or libGL}/include|" \ 155 - -e "/^QMAKE_LIBDIR_OPENGL/ s|$|${libGL.out}/lib|" 156 - '' + 157 - lib.optionalString (stdenv.hostPlatform.isx86_32 && stdenv.cc.isGNU) 158 - '' 159 - sed -i mkspecs/common/gcc-base-unix.conf \ 160 - -e "/^QMAKE_LFLAGS_SHLIB/ s/-shared/-shared -static-libgcc/" 161 - '' 162 - ); 135 + ); 163 136 164 137 qtPluginPrefix = "lib/qt-${qtCompatVersion}/plugins"; 165 138 qtQmlPrefix = "lib/qt-${qtCompatVersion}/qml"; ··· 218 191 PSQL_LIBS = lib.optionalString (postgresql != null) "-L${postgresql.lib}/lib -lpq"; 219 192 220 193 # TODO Remove obsolete and useless flags once the build will be totally mastered 221 - configureFlags = 222 - [ 223 - "-plugindir $(out)/$(qtPluginPrefix)" 224 - "-qmldir $(out)/$(qtQmlPrefix)" 225 - "-docdir $(out)/$(qtDocPrefix)" 194 + configureFlags = [ 195 + "-plugindir $(out)/$(qtPluginPrefix)" 196 + "-qmldir $(out)/$(qtQmlPrefix)" 197 + "-docdir $(out)/$(qtDocPrefix)" 226 198 227 - "-verbose" 228 - "-confirm-license" 229 - "-opensource" 230 - 231 - "-release" 232 - "-shared" 233 - "-accessibility" 234 - "-optimized-qmake" 235 - "-strip" 236 - "-system-proxies" 237 - "-pkg-config" 238 - 239 - "-gui" 240 - "-widgets" 241 - "-opengl desktop" 242 - "-icu" 243 - "-L" "${icu.out}/lib" 244 - "-I" "${icu.dev}/include" 245 - "-pch" 246 - ] 247 - ++ lib.optional debugSymbols "-debug" 248 - ++ lib.optionals (compareVersion "5.11.0" < 0) 249 - [ 250 - "-qml-debug" 251 - ] 252 - ++ lib.optionals (compareVersion "5.9.0" < 0) 253 - [ 254 - "-c++11" 255 - "-no-reduce-relocations" 256 - ] 257 - ++ lib.optionals developerBuild [ 258 - "-developer-build" 259 - "-no-warnings-are-errors" 260 - ] 261 - ++ ( 262 - if (!stdenv.hostPlatform.isx86_64) then [ 263 - "-no-sse2" 264 - ] else if (compareVersion "5.9.0" >= 0) then [ 265 - "-sse2" 266 - "${if stdenv.hostPlatform.sse3Support then "" else "-no"}-sse3" 267 - "${if stdenv.hostPlatform.ssse3Support then "" else "-no"}-ssse3" 268 - "${if stdenv.hostPlatform.sse4_1Support then "" else "-no"}-sse4.1" 269 - "${if stdenv.hostPlatform.sse4_2Support then "" else "-no"}-sse4.2" 270 - "${if stdenv.hostPlatform.avxSupport then "" else "-no"}-avx" 271 - "${if stdenv.hostPlatform.avx2Support then "" else "-no"}-avx2" 272 - ] else [ 273 - ] 274 - ) 275 - ++ [ 276 - "-no-mips_dsp" 277 - "-no-mips_dspr2" 278 - ] 199 + "-verbose" 200 + "-confirm-license" 201 + "-opensource" 279 202 280 - ++ [ 281 - "-system-zlib" 282 - "-L" "${zlib.out}/lib" 283 - "-I" "${zlib.dev}/include" 284 - "-system-libjpeg" 285 - "-L" "${libjpeg.out}/lib" 286 - "-I" "${libjpeg.dev}/include" 287 - "-system-harfbuzz" 288 - "-L" "${harfbuzz.out}/lib" 289 - "-I" "${harfbuzz.dev}/include" 290 - "-system-pcre" 291 - "-openssl-linked" 292 - "-L" "${openssl.out}/lib" 293 - "-I" "${openssl.dev}/include" 294 - "-system-sqlite" 295 - ''-${if libmysqlclient != null then "plugin" else "no"}-sql-mysql'' 296 - ''-${if postgresql != null then "plugin" else "no"}-sql-psql'' 203 + "-release" 204 + "-shared" 205 + "-accessibility" 206 + "-optimized-qmake" 207 + "-strip" 208 + "-system-proxies" 209 + "-pkg-config" 297 210 298 - "-make libs" 299 - "-make tools" 300 - ''-${lib.optionalString (!buildExamples) "no"}make examples'' 301 - ''-${lib.optionalString (!buildTests) "no"}make tests'' 211 + "-gui" 212 + "-widgets" 213 + "-opengl desktop" 214 + "-icu" 215 + "-L" "${icu.out}/lib" 216 + "-I" "${icu.dev}/include" 217 + "-pch" 218 + ] ++ lib.optional debugSymbols "-debug" 219 + ++ lib.optionals (compareVersion "5.11.0" < 0) [ 220 + "-qml-debug" 221 + ] ++ lib.optionals (compareVersion "5.9.0" < 0) [ 222 + "-c++11" 223 + "-no-reduce-relocations" 224 + ] ++ lib.optionals developerBuild [ 225 + "-developer-build" 226 + "-no-warnings-are-errors" 227 + ] ++ (if (!stdenv.hostPlatform.isx86_64) then [ 228 + "-no-sse2" 229 + ] else lib.optionals (compareVersion "5.9.0" >= 0) [ 230 + "-sse2" 231 + "${lib.optionalString (!stdenv.hostPlatform.sse3Support) "-no"}-sse3" 232 + "${lib.optionalString (!stdenv.hostPlatform.ssse3Support) "-no"}-ssse3" 233 + "${lib.optionalString (!stdenv.hostPlatform.sse4_1Support) "-no"}-sse4.1" 234 + "${lib.optionalString (!stdenv.hostPlatform.sse4_2Support) "-no"}-sse4.2" 235 + "${lib.optionalString (!stdenv.hostPlatform.avxSupport) "-no"}-avx" 236 + "${lib.optionalString (!stdenv.hostPlatform.avx2Support) "-no"}-avx2" 302 237 ] 303 - ++ lib.optional (compareVersion "5.15.0" < 0) "-v" 238 + ) ++ [ 239 + "-no-mips_dsp" 240 + "-no-mips_dspr2" 241 + ] ++ [ 242 + "-system-zlib" 243 + "-L" "${zlib.out}/lib" 244 + "-I" "${zlib.dev}/include" 245 + "-system-libjpeg" 246 + "-L" "${libjpeg.out}/lib" 247 + "-I" "${libjpeg.dev}/include" 248 + "-system-harfbuzz" 249 + "-L" "${harfbuzz.out}/lib" 250 + "-I" "${harfbuzz.dev}/include" 251 + "-system-pcre" 252 + "-openssl-linked" 253 + "-L" "${openssl.out}/lib" 254 + "-I" "${openssl.dev}/include" 255 + "-system-sqlite" 256 + ''-${if libmysqlclient != null then "plugin" else "no"}-sql-mysql'' 257 + ''-${if postgresql != null then "plugin" else "no"}-sql-psql'' 304 258 259 + "-make libs" 260 + "-make tools" 261 + ''-${lib.optionalString (!buildExamples) "no"}make examples'' 262 + ''-${lib.optionalString (!buildTests) "no"}make tests'' 263 + ] ++ lib.optional (compareVersion "5.15.0" < 0) "-v" 305 264 ++ ( 306 - if stdenv.isDarwin 307 - then 308 - [ 309 - "-platform macx-clang" 310 - "-no-fontconfig" 311 - "-qt-freetype" 312 - "-qt-libpng" 313 - "-no-framework" 314 - ] 315 - else 316 - [ 317 - "-${lib.optionalString (compareVersion "5.9.0" < 0) "no-"}rpath" 318 - ] 319 - ++ lib.optional (compareVersion "5.15.0" < 0) "-system-xcb" 320 - ++ [ 321 - "-xcb" 322 - "-qpa xcb" 323 - "-L" "${libX11.out}/lib" 324 - "-I" "${libX11.out}/include" 325 - "-L" "${libXext.out}/lib" 326 - "-I" "${libXext.out}/include" 327 - "-L" "${libXrender.out}/lib" 328 - "-I" "${libXrender.out}/include" 265 + if stdenv.isDarwin then [ 266 + "-platform macx-clang" 267 + "-no-fontconfig" 268 + "-qt-freetype" 269 + "-qt-libpng" 270 + "-no-framework" 271 + ] else [ 272 + "-${lib.optionalString (compareVersion "5.9.0" < 0) "no-"}rpath" 273 + ] ++ lib.optional (compareVersion "5.15.0" < 0) "-system-xcb" 274 + ++ [ 275 + "-xcb" 276 + "-qpa xcb" 277 + "-L" "${libX11.out}/lib" 278 + "-I" "${libX11.out}/include" 279 + "-L" "${libXext.out}/lib" 280 + "-I" "${libXext.out}/include" 281 + "-L" "${libXrender.out}/lib" 282 + "-I" "${libXrender.out}/include" 329 283 330 - "-libinput" 284 + "-libinput" 331 285 332 - ''-${lib.optionalString (cups == null) "no-"}cups'' 333 - "-dbus-linked" 334 - "-glib" 335 - ] 336 - ++ lib.optional (compareVersion "5.15.0" < 0) "-system-libjpeg" 337 - ++ [ 338 - "-system-libpng" 339 - ] 340 - ++ lib.optional withGtk3 "-gtk" 341 - ++ lib.optional (compareVersion "5.9.0" >= 0) "-inotify" 342 - ++ lib.optionals (compareVersion "5.10.0" >= 0) [ 343 - # Without these, Qt stops working on kernels < 3.17. See: 344 - # https://github.com/NixOS/nixpkgs/issues/38832 345 - "-no-feature-renameat2" 346 - "-no-feature-getentropy" 347 - ] 348 - ++ lib.optionals (compareVersion "5.12.1" < 0) [ 349 - # use -xkbcommon and -xkbcommon-evdev for versions before 5.12.1 350 - "-system-xkbcommon" 351 - "-xkbcommon-evdev" 352 - ] 353 - ++ lib.optionals (cups != null) [ 354 - "-L" "${cups.lib}/lib" 355 - "-I" "${cups.dev}/include" 356 - ] 357 - ++ lib.optionals (libmysqlclient != null) [ 358 - "-L" "${libmysqlclient}/lib" 359 - "-I" "${libmysqlclient}/include" 360 - ] 361 - ); 286 + ''-${lib.optionalString (cups == null) "no-"}cups'' 287 + "-dbus-linked" 288 + "-glib" 289 + ] ++ lib.optional (compareVersion "5.15.0" < 0) "-system-libjpeg" 290 + ++ [ 291 + "-system-libpng" 292 + ] ++ lib.optional withGtk3 "-gtk" 293 + ++ lib.optional (compareVersion "5.9.0" >= 0) "-inotify" 294 + ++ lib.optionals (compareVersion "5.10.0" >= 0) [ 295 + # Without these, Qt stops working on kernels < 3.17. See: 296 + # https://github.com/NixOS/nixpkgs/issues/38832 297 + "-no-feature-renameat2" 298 + "-no-feature-getentropy" 299 + ] ++ lib.optionals (compareVersion "5.12.1" < 0) [ 300 + # use -xkbcommon and -xkbcommon-evdev for versions before 5.12.1 301 + "-system-xkbcommon" 302 + "-xkbcommon-evdev" 303 + ] ++ lib.optionals (cups != null) [ 304 + "-L" "${cups.lib}/lib" 305 + "-I" "${cups.dev}/include" 306 + ] ++ lib.optionals (libmysqlclient != null) [ 307 + "-L" "${libmysqlclient}/lib" 308 + "-I" "${libmysqlclient}/include" 309 + ] 310 + ); 362 311 363 - postInstall = 364 - # Move selected outputs. 365 - '' 366 - moveToOutput "mkspecs" "$dev" 367 - ''; 312 + # Move selected outputs. 313 + postInstall = '' 314 + moveToOutput "mkspecs" "$dev" 315 + ''; 368 316 369 317 devTools = [ 370 318 "bin/fixqt4headers.pl" ··· 378 326 "bin/uic" 379 327 ]; 380 328 381 - postFixup = 329 + postFixup = '' 382 330 # Don't retain build-time dependencies like gdb. 383 - '' 384 - sed '/QMAKE_DEFAULT_.*DIRS/ d' -i $dev/mkspecs/qconfig.pri 385 - '' 386 - 387 - + '' 388 - fixQtModulePaths "''${!outputDev}/mkspecs/modules" 389 - fixQtBuiltinPaths "''${!outputDev}" '*.pr?' 390 - '' 331 + sed '/QMAKE_DEFAULT_.*DIRS/ d' -i $dev/mkspecs/qconfig.pri 332 + fixQtModulePaths "''${!outputDev}/mkspecs/modules" 333 + fixQtBuiltinPaths "''${!outputDev}" '*.pr?' 391 334 392 335 # Move development tools to $dev 393 - + '' 394 - moveQtDevTools 395 - moveToOutput bin "$dev" 396 - '' 336 + moveQtDevTools 337 + moveToOutput bin "$dev" 397 338 398 339 # fixup .pc file (where to find 'moc' etc.) 399 - + '' 400 - sed -i "$dev/lib/pkgconfig/Qt5Core.pc" \ 401 - -e "/^host_bins=/ c host_bins=$dev/bin" 402 - ''; 340 + sed -i "$dev/lib/pkgconfig/Qt5Core.pc" \ 341 + -e "/^host_bins=/ c host_bins=$dev/bin" 342 + ''; 403 343 404 344 dontStrip = debugSymbols; 405 345 406 346 setupHook = ../hooks/qtbase-setup-hook.sh; 407 347 408 348 meta = with lib; { 409 - homepage = "http://www.qt.io"; 349 + homepage = "https://www.qt.io/"; 410 350 description = "A cross-platform application framework for C++"; 411 351 license = with licenses; [ fdl13 gpl2 lgpl21 lgpl3 ]; 412 352 maintainers = with maintainers; [ qknight ttuegel periklis bkchr ];
-2
pkgs/development/libraries/qt-5/modules/qtdeclarative.nix
··· 1 1 { qtModule, lib, python3, qtbase, qtsvg }: 2 2 3 - with lib; 4 - 5 3 qtModule { 6 4 pname = "qtdeclarative"; 7 5 qtInputs = [ qtbase qtsvg ];
+14 -7
pkgs/development/libraries/qt-5/modules/qtmultimedia.nix
··· 1 - { qtModule, lib, stdenv, qtbase, qtdeclarative, pkg-config 2 - , alsa-lib, gstreamer, gst-plugins-base, libpulseaudio, wayland 1 + { qtModule 2 + , lib 3 + , stdenv 4 + , qtbase 5 + , qtdeclarative 6 + , pkg-config 7 + , alsa-lib 8 + , gstreamer 9 + , gst-plugins-base 10 + , libpulseaudio 11 + , wayland 3 12 }: 4 - 5 - with lib; 6 13 7 14 qtModule { 8 15 pname = "qtmultimedia"; 9 16 qtInputs = [ qtbase qtdeclarative ]; 10 17 nativeBuildInputs = [ pkg-config ]; 11 18 buildInputs = [ gstreamer gst-plugins-base libpulseaudio ] 12 - ++ optional (stdenv.isLinux) alsa-lib 13 - ++ optional (versionAtLeast qtbase.version "5.14.0" && stdenv.isLinux) wayland; 19 + ++ lib.optional (stdenv.isLinux) alsa-lib 20 + ++ lib.optional (lib.versionAtLeast qtbase.version "5.14.0" && stdenv.isLinux) wayland; 14 21 outputs = [ "bin" "dev" "out" ]; 15 22 qmakeFlags = [ "GST_VERSION=1.0" ]; 16 - NIX_LDFLAGS = optionalString (stdenv.isDarwin) "-lobjc"; 23 + NIX_LDFLAGS = lib.optionalString (stdenv.isDarwin) "-lobjc"; 17 24 }
+1 -5
pkgs/development/libraries/qt-5/modules/qtserialport.nix
··· 1 1 { qtModule, stdenv, lib, qtbase, systemd }: 2 2 3 - let inherit (lib) getLib optional; in 4 - 5 3 qtModule { 6 4 pname = "qtserialport"; 7 5 qtInputs = [ qtbase ]; 8 - NIX_CFLAGS_COMPILE = 9 - optional stdenv.isLinux 10 - ''-DNIXPKGS_LIBUDEV="${getLib systemd}/lib/libudev"''; 6 + NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isLinux "-DNIXPKGS_LIBUDEV=\"${lib.getLib systemd}/lib/libudev\""; 11 7 }
+4 -7
pkgs/development/libraries/qt-5/modules/qttools.nix
··· 1 1 { qtModule, stdenv, lib, qtbase, qtdeclarative }: 2 2 3 - with lib; 4 - 5 3 qtModule { 6 4 pname = "qttools"; 7 5 qtInputs = [ qtbase qtdeclarative ]; ··· 10 8 # fixQtBuiltinPaths overwrites a builtin path we should keep 11 9 postPatch = '' 12 10 sed -i "src/linguist/linguist.pro" \ 13 - -e '/^cmake_linguist_config_version_file.input =/ s|$$\[QT_HOST_DATA.*\]|${getDev qtbase}|' 11 + -e '/^cmake_linguist_config_version_file.input =/ s|$$\[QT_HOST_DATA.*\]|${lib.getDev qtbase}|' 14 12 sed -i "src/qtattributionsscanner/qtattributionsscanner.pro" \ 15 - -e '/^cmake_qattributionsscanner_config_version_file.input =/ s|$$\[QT_HOST_DATA.*\]|${getDev qtbase}|' 13 + -e '/^cmake_qattributionsscanner_config_version_file.input =/ s|$$\[QT_HOST_DATA.*\]|${lib.getDev qtbase}|' 16 14 ''; 17 15 18 16 devTools = [ ··· 34 32 "bin/qthelpconverter" 35 33 "bin/lprodump" 36 34 "bin/qdistancefieldgenerator" 37 - ] ++ optionals stdenv.isDarwin [ 35 + ] ++ lib.optionals stdenv.isDarwin [ 38 36 "bin/macdeployqt" 39 37 ]; 40 38 41 - NIX_CFLAGS_COMPILE = 42 - lib.optional stdenv.isDarwin ''-DNIXPKGS_QMLIMPORTSCANNER="${qtdeclarative.dev}/bin/qmlimportscanner"''; 39 + NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin ''-DNIXPKGS_QMLIMPORTSCANNER="${qtdeclarative.dev}/bin/qmlimportscanner"''; 43 40 44 41 setupHook = ../hooks/qttools-setup-hook.sh; 45 42 }
+70 -72
pkgs/development/libraries/qt-5/modules/qtwebengine.nix
··· 15 15 , pipewire_0_2 16 16 , enableProprietaryCodecs ? true 17 17 , gn 18 - , cups, darwin, openbsm, runCommand, xcbuild, writeScriptBin 18 + , cctools, libobjc, libunwind, sandbox, xnu 19 + , ApplicationServices, AVFoundation, Foundation, ForceFeedback, GameController, AppKit 20 + , ImageCaptureCore, CoreBluetooth, IOBluetooth, CoreWLAN, Quartz, Cocoa, LocalAuthentication 21 + , cups, openbsm, runCommand, xcbuild, writeScriptBin 19 22 , ffmpeg ? null 20 23 , lib, stdenv, fetchpatch 21 24 , version ? null 22 25 , qtCompatVersion 23 26 }: 24 27 25 - with lib; 26 - 27 28 qtModule { 28 29 pname = "qtwebengine"; 29 30 qtInputs = [ qtdeclarative qtquickcontrols qtlocation qtwebchannel ]; 30 31 nativeBuildInputs = [ 31 32 bison coreutils flex git gperf ninja pkg-config python2 which gn nodejs 32 - ] ++ optional stdenv.isDarwin xcbuild; 33 + ] ++ lib.optional stdenv.isDarwin xcbuild; 33 34 doCheck = true; 34 35 outputs = [ "bin" "dev" "out" ]; 35 36 ··· 42 43 # which cannot be set at the same time as -Wformat-security 43 44 hardeningDisable = [ "format" ]; 44 45 45 - postPatch = 46 - '' 47 - # Patch Chromium build tools 48 - ( 49 - cd src/3rdparty/chromium; 46 + postPatch = '' 47 + # Patch Chromium build tools 48 + ( 49 + cd src/3rdparty/chromium; 50 50 51 - # Manually fix unsupported shebangs 52 - substituteInPlace third_party/harfbuzz-ng/src/src/update-unicode-tables.make \ 53 - --replace "/usr/bin/env -S make -f" "/usr/bin/make -f" || true 51 + # Manually fix unsupported shebangs 52 + substituteInPlace third_party/harfbuzz-ng/src/src/update-unicode-tables.make \ 53 + --replace "/usr/bin/env -S make -f" "/usr/bin/make -f" || true 54 54 55 - patchShebangs . 56 - ) 57 - '' 58 - # Prevent Chromium build script from making the path to `clang` relative to 59 - # the build directory. `clang_base_path` is the value of `QMAKE_CLANG_DIR` 60 - # from `src/core/config/mac_osx.pri`. 61 - + optionalString stdenv.isDarwin '' 62 - substituteInPlace ./src/3rdparty/chromium/build/toolchain/mac/BUILD.gn \ 63 - --replace 'prefix = rebase_path("$clang_base_path/bin/", root_build_dir)' 'prefix = "$clang_base_path/bin/"' 64 - '' 65 - # Patch library paths in Qt sources 66 - + '' 67 - sed -i \ 68 - -e "s,QLibraryInfo::location(QLibraryInfo::DataPath),QLatin1String(\"$out\"),g" \ 69 - -e "s,QLibraryInfo::location(QLibraryInfo::TranslationsPath),QLatin1String(\"$out/translations\"),g" \ 70 - -e "s,QLibraryInfo::location(QLibraryInfo::LibraryExecutablesPath),QLatin1String(\"$out/libexec\"),g" \ 71 - src/core/web_engine_library_info.cpp 72 - '' 73 - # Patch library paths in Chromium sources 74 - + optionalString (!stdenv.isDarwin) '' 75 - sed -i -e '/lib_loader.*Load/s!"\(libudev\.so\)!"${lib.getLib systemd}/lib/\1!' \ 76 - src/3rdparty/chromium/device/udev_linux/udev?_loader.cc 55 + # TODO: be more precise 56 + patchShebangs . 57 + ) 58 + '' 59 + # Prevent Chromium build script from making the path to `clang` relative to 60 + # the build directory. `clang_base_path` is the value of `QMAKE_CLANG_DIR` 61 + # from `src/core/config/mac_osx.pri`. 62 + + lib.optionalString stdenv.isDarwin '' 63 + substituteInPlace ./src/3rdparty/chromium/build/toolchain/mac/BUILD.gn \ 64 + --replace 'prefix = rebase_path("$clang_base_path/bin/", root_build_dir)' 'prefix = "$clang_base_path/bin/"' 65 + '' 66 + # Patch library paths in Qt sources 67 + + '' 68 + sed -i \ 69 + -e "s,QLibraryInfo::location(QLibraryInfo::DataPath),QLatin1String(\"$out\"),g" \ 70 + -e "s,QLibraryInfo::location(QLibraryInfo::TranslationsPath),QLatin1String(\"$out/translations\"),g" \ 71 + -e "s,QLibraryInfo::location(QLibraryInfo::LibraryExecutablesPath),QLatin1String(\"$out/libexec\"),g" \ 72 + src/core/web_engine_library_info.cpp 73 + '' 74 + # Patch library paths in Chromium sources 75 + + lib.optionalString (!stdenv.isDarwin) '' 76 + sed -i -e '/lib_loader.*Load/s!"\(libudev\.so\)!"${lib.getLib systemd}/lib/\1!' \ 77 + src/3rdparty/chromium/device/udev_linux/udev?_loader.cc 77 78 78 - sed -i -e '/libpci_loader.*Load/s!"\(libpci\.so\)!"${pciutils}/lib/\1!' \ 79 - src/3rdparty/chromium/gpu/config/gpu_info_collector_linux.cc 80 - '' 81 - + optionalString stdenv.isDarwin ( 82 - (if (lib.versionAtLeast qtCompatVersion "5.14") then '' 83 - substituteInPlace src/buildtools/config/mac_osx.pri \ 84 - --replace 'QMAKE_CLANG_DIR = "/usr"' 'QMAKE_CLANG_DIR = "${stdenv.cc}"' 85 - '' else '' 86 - substituteInPlace src/core/config/mac_osx.pri \ 87 - --replace 'QMAKE_CLANG_DIR = "/usr"' 'QMAKE_CLANG_DIR = "${stdenv.cc}"' 88 - '') 89 - # Following is required to prevent a build error: 90 - # ninja: error: '/nix/store/z8z04p0ph48w22rqzx7ql67gy8cyvidi-SDKs/MacOSX10.12.sdk/usr/include/mach/exc.defs', needed by 'gen/third_party/crashpad/crashpad/util/mach/excUser.c', missing and no known rule to make it 91 - + '' 92 - substituteInPlace src/3rdparty/chromium/third_party/crashpad/crashpad/util/BUILD.gn \ 93 - --replace '$sysroot/usr' "${darwin.xnu}" 94 - '' 95 - # Apple has some secret stuff they don't share with OpenBSM 96 - + (if (lib.versionAtLeast qtCompatVersion "5.14") then '' 97 - substituteInPlace src/3rdparty/chromium/base/mac/mach_port_rendezvous.cc \ 98 - --replace "audit_token_to_pid(request.trailer.msgh_audit)" "request.trailer.msgh_audit.val[5]" 99 - substituteInPlace src/3rdparty/chromium/third_party/crashpad/crashpad/util/mach/mach_message.cc \ 100 - --replace "audit_token_to_pid(audit_trailer->msgh_audit)" "audit_trailer->msgh_audit.val[5]" 101 - '' else '' 102 - substituteInPlace src/3rdparty/chromium/base/mac/mach_port_broker.mm \ 103 - --replace "audit_token_to_pid(msg.trailer.msgh_audit)" "msg.trailer.msgh_audit.val[5]" 104 - '')); 79 + sed -i -e '/libpci_loader.*Load/s!"\(libpci\.so\)!"${pciutils}/lib/\1!' \ 80 + src/3rdparty/chromium/gpu/config/gpu_info_collector_linux.cc 81 + '' + lib.optionalString stdenv.isDarwin ( 82 + (if (lib.versionAtLeast qtCompatVersion "5.14") then '' 83 + substituteInPlace src/buildtools/config/mac_osx.pri \ 84 + --replace 'QMAKE_CLANG_DIR = "/usr"' 'QMAKE_CLANG_DIR = "${stdenv.cc}"' 85 + '' else '' 86 + substituteInPlace src/core/config/mac_osx.pri \ 87 + --replace 'QMAKE_CLANG_DIR = "/usr"' 'QMAKE_CLANG_DIR = "${stdenv.cc}"' 88 + '') 89 + # Following is required to prevent a build error: 90 + # ninja: error: '/nix/store/z8z04p0ph48w22rqzx7ql67gy8cyvidi-SDKs/MacOSX10.12.sdk/usr/include/mach/exc.defs', needed by 'gen/third_party/crashpad/crashpad/util/mach/excUser.c', missing and no known rule to make it 91 + + '' 92 + substituteInPlace src/3rdparty/chromium/third_party/crashpad/crashpad/util/BUILD.gn \ 93 + --replace '$sysroot/usr' "${xnu}" 94 + '' 95 + # Apple has some secret stuff they don't share with OpenBSM 96 + + (if (lib.versionAtLeast qtCompatVersion "5.14") then '' 97 + substituteInPlace src/3rdparty/chromium/base/mac/mach_port_rendezvous.cc \ 98 + --replace "audit_token_to_pid(request.trailer.msgh_audit)" "request.trailer.msgh_audit.val[5]" 99 + substituteInPlace src/3rdparty/chromium/third_party/crashpad/crashpad/util/mach/mach_message.cc \ 100 + --replace "audit_token_to_pid(audit_trailer->msgh_audit)" "audit_trailer->msgh_audit.val[5]" 101 + '' else '' 102 + substituteInPlace src/3rdparty/chromium/base/mac/mach_port_broker.mm \ 103 + --replace "audit_token_to_pid(msg.trailer.msgh_audit)" "msg.trailer.msgh_audit.val[5]" 104 + '')); 105 105 106 106 NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [ 107 107 # with gcc8, -Wclass-memaccess became part of -Wall and this exceeds the logging limit ··· 134 134 ''; 135 135 136 136 qmakeFlags = [ "--" "-system-ffmpeg" ] 137 - ++ optional (stdenv.isLinux && (lib.versionAtLeast qtCompatVersion "5.15")) "-webengine-webrtc-pipewire" 138 - ++ optional enableProprietaryCodecs "-proprietary-codecs"; 137 + ++ lib.optional (stdenv.isLinux && (lib.versionAtLeast qtCompatVersion "5.15")) "-webengine-webrtc-pipewire" 138 + ++ lib.optional enableProprietaryCodecs "-proprietary-codecs"; 139 139 140 140 propagatedBuildInputs = [ 141 141 # Image formats ··· 152 152 153 153 libevent 154 154 ffmpeg 155 - ] ++ optionals (!stdenv.isDarwin) [ 155 + ] ++ lib.optionals (!stdenv.isDarwin) [ 156 156 dbus zlib minizip snappy nss protobuf jsoncpp 157 157 158 158 # Audio formats ··· 168 168 xorg.xrandr libXScrnSaver libXcursor libXrandr xorg.libpciaccess libXtst 169 169 xorg.libXcomposite xorg.libXdamage libdrm xorg.libxkbfile 170 170 171 - ] ++ optionals (stdenv.isLinux && (lib.versionAtLeast qtCompatVersion "5.15")) [ 171 + ] ++ lib.optionals (stdenv.isLinux && (lib.versionAtLeast qtCompatVersion "5.15")) [ 172 172 # Pipewire 173 173 pipewire_0_2 174 174 ] 175 175 176 176 # FIXME These dependencies shouldn't be needed but can't find a way 177 177 # around it. Chromium pulls this in while bootstrapping GN. 178 - ++ lib.optionals stdenv.isDarwin (with darwin; with apple_sdk.frameworks; [ 178 + ++ lib.optionals stdenv.isDarwin [ 179 179 libobjc 180 180 cctools 181 181 ··· 196 196 197 197 openbsm 198 198 libunwind 199 - ]); 199 + ]; 200 200 201 - buildInputs = optionals stdenv.isDarwin (with darwin; [ 201 + buildInputs = lib.optionals stdenv.isDarwin [ 202 202 cups 203 - apple_sdk.libs.sandbox 203 + sandbox 204 204 205 205 # `sw_vers` is used by `src/3rdparty/chromium/build/config/mac/sdk_info.py` 206 206 # to get some information about the host platform. ··· 216 216 shift 217 217 done 218 218 '') 219 - ]); 219 + ]; 220 220 221 221 dontUseNinjaBuild = true; 222 222 dontUseNinjaInstall = true; 223 - dontUseXcbuild = true; 224 223 225 224 postInstall = lib.optionalString stdenv.isLinux '' 226 225 cat > $out/libexec/qt.conf <<EOF ··· 241 240 # This build takes a long time; particularly on slow architectures 242 241 timeout = 24 * 3600; 243 242 }; 244 - 245 243 }
+25 -22
pkgs/development/libraries/qt-5/modules/qtwebkit.nix
··· 3 3 , fontconfig, libwebp, libxml2, libxslt 4 4 , sqlite, systemd, glib, gst_all_1, cmake 5 5 , bison, flex, gdb, gperf, perl, pkg-config, python2, ruby 6 - , darwin 6 + , ICU, OpenGL 7 7 }: 8 8 9 9 let 10 - inherit (lib) optional optionals getDev getLib; 11 10 hyphen = stdenv.mkDerivation rec { 12 - name = "hyphen-2.8.8"; 11 + pname = "hyphen"; 12 + version = "2.8.8"; 13 13 src = fetchurl { 14 - url = "http://dev-www.libreoffice.org/src/5ade6ae2a99bc1e9e57031ca88d36dad-${name}.tar.gz"; 14 + url = "http://dev-www.libreoffice.org/src/5ade6ae2a99bc1e9e57031ca88d36dad-hyphen-${version}.tar.gz"; 15 15 sha256 = "304636d4eccd81a14b6914d07b84c79ebb815288c76fe027b9ebff6ff24d5705"; 16 16 }; 17 17 postPatch = '' ··· 24 24 qtModule { 25 25 pname = "qtwebkit"; 26 26 qtInputs = [ qtbase qtdeclarative qtlocation qtsensors ] 27 - ++ optional (stdenv.isDarwin && lib.versionAtLeast qtbase.version "5.9.0") qtmultimedia 28 - ++ optional usingAnnulenWebkitFork qtwebchannel; 27 + ++ lib.optional (stdenv.isDarwin && lib.versionAtLeast qtbase.version "5.9.0") qtmultimedia 28 + ++ lib.optional usingAnnulenWebkitFork qtwebchannel; 29 29 buildInputs = [ fontconfig libwebp libxml2 libxslt sqlite glib gst_all_1.gstreamer gst_all_1.gst-plugins-base ] 30 - ++ optionals (stdenv.isDarwin) (with darwin; with apple_sdk.frameworks; [ ICU OpenGL ]) 31 - ++ optional usingAnnulenWebkitFork hyphen; 30 + ++ lib.optionals stdenv.isDarwin [ ICU OpenGL ] 31 + ++ lib.optional usingAnnulenWebkitFork hyphen; 32 32 nativeBuildInputs = [ 33 33 bison flex gdb gperf perl pkg-config python2 ruby 34 - ] ++ optional usingAnnulenWebkitFork cmake; 34 + ] ++ lib.optional usingAnnulenWebkitFork cmake; 35 35 36 - cmakeFlags = optionals usingAnnulenWebkitFork ([ "-DPORT=Qt" ] 37 - ++ optionals stdenv.isDarwin [ 38 - "-DQt5Multimedia_DIR=${getDev qtmultimedia}/lib/cmake/Qt5Multimedia" 39 - "-DQt5MultimediaWidgets_DIR=${getDev qtmultimedia}/lib/cmake/Qt5MultimediaWidgets" 36 + cmakeFlags = lib.optionals usingAnnulenWebkitFork ([ "-DPORT=Qt" ] 37 + ++ lib.optionals stdenv.isDarwin [ 38 + "-DQt5Multimedia_DIR=${lib.getDev qtmultimedia}/lib/cmake/Qt5Multimedia" 39 + "-DQt5MultimediaWidgets_DIR=${lib.getDev qtmultimedia}/lib/cmake/Qt5MultimediaWidgets" 40 40 "-DMACOS_FORCE_SYSTEM_XML_LIBRARIES=OFF" 41 41 ]); 42 42 ··· 50 50 ''; 51 51 52 52 NIX_CFLAGS_COMPILE = [ 53 - # with gcc7 this warning blows the log over Hydra's limit 54 - "-Wno-expansion-to-defined" 55 - ] 56 - # with gcc8, -Wclass-memaccess became part of -Wall and this too exceeds the logging limit 57 - ++ optional stdenv.cc.isGNU "-Wno-class-memaccess" 58 - # with clang this warning blows the log over Hydra's limit 59 - ++ optional stdenv.isDarwin "-Wno-inconsistent-missing-override" 60 - ++ optional (!stdenv.isDarwin) ''-DNIXPKGS_LIBUDEV="${getLib systemd}/lib/libudev"''; 53 + # with gcc7 this warning blows the log over Hydra's limit 54 + "-Wno-expansion-to-defined" 55 + ] 56 + # with gcc8, -Wclass-memaccess became part of -Wall and this too exceeds the logging limit 57 + ++ lib.optional stdenv.cc.isGNU "-Wno-class-memaccess" 58 + # with clang this warning blows the log over Hydra's limit 59 + ++ lib.optional stdenv.isDarwin "-Wno-inconsistent-missing-override" 60 + ++ lib.optional (!stdenv.isDarwin) ''-DNIXPKGS_LIBUDEV="${lib.getLib systemd}/lib/libudev"''; 61 61 62 62 doCheck = false; # fails 13 out of 13 tests (ctest) 63 63 64 64 # Hack to avoid TMPDIR in RPATHs. 65 - preFixup = ''rm -rf "$(pwd)" && mkdir "$(pwd)" ''; 65 + preFixup = '' 66 + rm -rf "$(pwd)" 67 + mkdir "$(pwd)" 68 + ''; 66 69 67 70 meta = { 68 71 maintainers = with lib.maintainers; [ abbradar periklis ];
+5 -7
pkgs/development/libraries/qt-5/modules/qtwebview.nix
··· 1 - { darwin, lib, stdenv, qtModule, qtdeclarative, qtwebengine }: 2 - 3 - with lib; 1 + { lib, stdenv, qtModule, qtdeclarative, qtwebengine, CoreFoundation, WebKit }: 4 2 5 3 qtModule { 6 4 pname = "qtwebview"; 7 5 qtInputs = [ qtdeclarative qtwebengine ]; 8 - buildInputs = optional (stdenv.isDarwin) [ 9 - darwin.apple_sdk.frameworks.CoreFoundation 10 - darwin.apple_sdk.frameworks.WebKit 6 + buildInputs = lib.optional stdenv.isDarwin [ 7 + CoreFoundation 8 + WebKit 11 9 ]; 12 10 outputs = [ "out" "dev" "bin" ]; 13 - NIX_LDFLAGS = optionalString stdenv.isDarwin "-framework CoreFoundation -framework WebKit"; 11 + NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework CoreFoundation -framework WebKit"; 14 12 }
+2 -2
pkgs/development/python-modules/dateutil/default.nix
··· 7 7 8 8 buildPythonPackage rec { 9 9 pname = "python-dateutil"; 10 - version = "2.8.1"; 10 + version = "2.8.2"; 11 11 12 12 src = fetchPypi { 13 13 inherit pname version; 14 - sha256 = "73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c"; 14 + sha256 = "sha256-ASPKzBYnrhnd88J6XeW9Z+5FhvvdZEDZdI+Ku0g9PoY="; 15 15 }; 16 16 17 17 nativeBuildInputs = [ setuptools-scm ];
+23 -1
pkgs/development/python-modules/scipy/default.nix
··· 1 - {lib, fetchPypi, python, buildPythonPackage, gfortran, nose, pytest, pytest-xdist, numpy, pybind11 }: 1 + { lib 2 + , stdenv 3 + , fetchPypi 4 + , python 5 + , buildPythonPackage 6 + , gfortran 7 + , nose 8 + , pytest 9 + , pytest-xdist 10 + , numpy 11 + , pybind11 12 + }: 2 13 3 14 buildPythonPackage rec { 4 15 pname = "scipy"; ··· 29 40 preBuild = '' 30 41 ln -s ${numpy.cfg} site.cfg 31 42 ''; 43 + 44 + 45 + # disable stackprotector on aarch64-darwin for now 46 + # 47 + # build error: 48 + # 49 + # /private/tmp/nix-build-python3.9-scipy-1.6.3.drv-0/ccDEsw5U.s:109:15: error: index must be an integer in range [-256, 255]. 50 + # 51 + # ldr x0, [x0, ___stack_chk_guard];momd 52 + # 53 + hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "stackprotector" ]; 32 54 33 55 checkPhase = '' 34 56 runHook preCheck
+1
pkgs/development/tools/misc/automake/automake-1.16.x.nix
··· 1 1 { lib, stdenv, fetchurl, perl, autoconf }: 2 2 3 3 stdenv.mkDerivation rec { 4 + # When updating, beware of https://github.com/NixOS/nixpkgs/pull/131928#issuecomment-896614165 4 5 name = "automake-1.16.3"; 5 6 6 7 src = fetchurl {
+1
pkgs/os-specific/linux/kernel/common-config.nix
··· 790 790 MODVERSIONS = whenOlder "4.9" yes; 791 791 MOUSE_ELAN_I2C_SMBUS = yes; 792 792 MOUSE_PS2_ELANTECH = yes; # Elantech PS/2 protocol extension 793 + MOUSE_PS2_VMMOUSE = yes; 793 794 MTRR_SANITIZER = yes; 794 795 NET_FC = yes; # Fibre Channel driver support 795 796 # GPIO on Intel Bay Trail, for some Chromebook internal eMMC disks
+2 -2
pkgs/os-specific/linux/lvm2/default.nix
··· 4 4 , pkg-config 5 5 , util-linux 6 6 , libuuid 7 - , thin-provisioning-tools, libaio 7 + , libaio 8 8 , enableCmdlib ? false 9 9 , enableDmeventd ? false 10 10 , udev ? null ··· 24 24 }; 25 25 26 26 nativeBuildInputs = [ pkg-config ]; 27 - buildInputs = [ udev libuuid thin-provisioning-tools libaio ]; 27 + buildInputs = [ udev libuuid libaio ]; 28 28 29 29 configureFlags = [ 30 30 "--disable-readline"
+1
pkgs/stdenv/generic/setup.sh
··· 975 975 fi 976 976 977 977 if [ -z "${dontFixLibtool:-}" ]; then 978 + export lt_cv_deplibs_check_method="${lt_cv_deplibs_check_method-pass_all}" 978 979 local i 979 980 find . -iname "ltmain.sh" -print0 | while IFS='' read -r -d '' i; do 980 981 echo "fixing libtool script $i"
+2 -2
pkgs/tools/networking/networkmanager/default.nix
··· 54 54 in 55 55 stdenv.mkDerivation rec { 56 56 pname = "networkmanager"; 57 - version = "1.32.4"; 57 + version = "1.32.6"; 58 58 59 59 src = fetchurl { 60 60 url = "mirror://gnome/sources/NetworkManager/${lib.versions.majorMinor version}/NetworkManager-${version}.tar.xz"; 61 - sha256 = "sha256-Kay9QceLfvh/+I/sU2DR6vi1tvy5BVXXORq8XjaSMVg="; 61 + sha256 = "sha256-PSdGBR87MylArCk1TgFpEVnUZ4PXL9IyvTbpgijOWgk="; 62 62 }; 63 63 64 64 outputs = [ "out" "dev" "devdoc" "man" "doc" ];
+7
pkgs/tools/networking/unbound/default.nix
··· 59 59 "--with-libnghttp2=${libnghttp2.dev}" 60 60 ]; 61 61 62 + # Remove references to compile-time dependencies that are included in the configure flags 63 + postConfigure = let 64 + inherit (builtins) storeDir; 65 + in '' 66 + sed -E '/CONFCMDLINE/ s;${storeDir}/[a-z0-9]{32}-;${storeDir}/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-;g' -i config.h 67 + ''; 68 + 62 69 installFlags = [ "configfile=\${out}/etc/unbound/unbound.conf" ]; 63 70 64 71 postInstall = ''
+4 -2
pkgs/tools/security/apg/default.nix
··· 1 1 { lib, stdenv, fetchurl, openssl }: 2 2 stdenv.mkDerivation rec { 3 - name = "apg-2.3.0b"; 3 + pname = "apg"; 4 + version = "2.3.0b"; 5 + 4 6 src = fetchurl { 5 - url = "http://www.adel.nursat.kz/apg/download/${name}.tar.gz"; 7 + url = "http://www.adel.nursat.kz/apg/download/apg-${version}.tar.gz"; 6 8 sha256 = "14lbq81xrcsmpk1b9qmqyz7n6ypf08zcxvcvp6f7ybcyf0lj1rfi"; 7 9 }; 8 10 configurePhase = ''
+4 -3
pkgs/tools/security/ccrypt/default.nix
··· 1 1 {lib, stdenv, fetchurl, perl}: 2 2 3 - stdenv.mkDerivation { 4 - name = "ccrypt-1.11"; 3 + stdenv.mkDerivation rec { 4 + pname = "ccrypt"; 5 + version = "1.11"; 5 6 6 7 src = fetchurl { 7 - url = "mirror://sourceforge/ccrypt/ccrypt-1.11.tar.gz"; 8 + url = "mirror://sourceforge/ccrypt/ccrypt-${version}.tar.gz"; 8 9 sha256 = "0kx4a5mhmp73ljknl2lcccmw9z3f5y8lqw0ghaymzvln1984g75i"; 9 10 }; 10 11
+9 -9
pkgs/tools/security/chaps/default.nix
··· 23 23 in 24 24 25 25 stdenv.mkDerivation rec { 26 - name = "chaps-0.42-6812"; 26 + pname = "chaps"; 27 27 version = "0.42-6812"; 28 28 29 29 src = fetchFromGitHub { ··· 59 59 60 60 installPhase = '' 61 61 mkdir -p $out/bin 62 - cp ${name}/out/chapsd $out/bin/. 63 - cp ${name}/out/chaps_client $out/bin/. 62 + cp ${pname}-${version}/out/chapsd $out/bin/. 63 + cp ${pname}-${version}/out/chaps_client $out/bin/. 64 64 65 65 mkdir -p $out/lib 66 - cp ${name}/out/libchaps.so.* $out/lib/. 66 + cp ${pname}-${version}/out/libchaps.so.* $out/lib/. 67 67 mkdir -p $out/lib/security 68 - cp ${name}/out/pam_chaps.so $out/lib/security/. 68 + cp ${pname}-${version}/out/pam_chaps.so $out/lib/security/. 69 69 70 70 mkdir -p $out/include 71 - cp -r ${name}/out/chaps $out/include/. 71 + cp -r ${pname}-${version}/out/chaps $out/include/. 72 72 73 73 mkdir -p $out/etc/dbus-1/system.d 74 - cp ${name}/out/org.chromium.Chaps.conf $out/etc/dbus-1/system.d/. 74 + cp ${pname}-${version}/out/org.chromium.Chaps.conf $out/etc/dbus-1/system.d/. 75 75 mkdir -p $out/etc/dbus-1/system-services 76 - cp ${name}/platform2/chaps/org.chromium.Chaps.service $out/etc/dbus-1/system-services/. 76 + cp ${pname}-${version}/platform2/chaps/org.chromium.Chaps.service $out/etc/dbus-1/system-services/. 77 77 78 78 mkdir -p $out/usr/share/pam-configs/chaps 79 79 mkdir -p $out/usr/share/man/man8 80 - cp ${name}/man/* $out/usr/share/man/man8/. 80 + cp ${pname}-${version}/man/* $out/usr/share/man/man8/. 81 81 ''; 82 82 83 83 meta = with lib; {
+3 -2
pkgs/tools/security/dirmngr/default.nix
··· 2 2 , libiconv}: 3 3 4 4 stdenv.mkDerivation rec { 5 - name = "dirmngr-1.1.1"; 5 + pname = "dirmngr"; 6 + version = "1.1.1"; 6 7 src = fetchurl { 7 - url = "mirror://gnupg/dirmngr/${name}.tar.bz2"; 8 + url = "mirror://gnupg/dirmngr/dirmngr-${version}.tar.bz2"; 8 9 sha256 = "1zz6m87ca55nq5f59hzm6qs48d37h93il881y7d0rf2d6660na6j"; 9 10 }; 10 11 buildInputs = [ libgpgerror libgcrypt libassuan libksba
+2 -1
pkgs/tools/security/hologram/default.nix
··· 1 1 { lib, buildGoPackage, fetchFromGitHub }: 2 2 3 3 buildGoPackage rec { 4 - name = "hologram-2018-03-19"; 4 + pname = "hologram"; 5 + version = "2018-03-19"; 5 6 rev = "a7bab58642b530edb75b9cf6c1d834c85822ceac"; 6 7 7 8 src = fetchFromGitHub {
+2 -1
pkgs/tools/security/mbox/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, openssl, which }: 2 2 3 3 stdenv.mkDerivation { 4 - name = "mbox-20140526"; 4 + pname = "mbox"; 5 + version = "20140526"; 5 6 6 7 src = fetchFromGitHub { 7 8 owner = "tsgates";
+2 -1
pkgs/tools/security/meo/default.nix
··· 1 1 { lib, stdenv, fetchhg, openssl, pcre-cpp, qt4, boost, pkcs11helper }: 2 2 3 3 stdenv.mkDerivation { 4 - name = "meo-20121113"; 4 + pname = "meo"; 5 + version = "20121113"; 5 6 6 7 src = fetchhg { 7 8 url = "http://oss.stamfest.net/hg/meo";
+4 -3
pkgs/tools/security/mkrand/default.nix
··· 1 1 { lib, stdenv, fetchurl }: 2 2 3 - stdenv.mkDerivation { 4 - name = "mkrand-0.1.0"; 3 + stdenv.mkDerivation rec { 4 + pname = "mkrand"; 5 + version = "0.1.0"; 5 6 6 7 src = fetchurl { 7 - url = "https://github.com/mknight-tag/MKRAND/releases/download/v0.1.0/mkrand-0.1.0.tar.gz"; 8 + url = "https://github.com/mknight-tag/MKRAND/releases/download/v${version}/mkrand-${version}.tar.gz"; 8 9 sha256 = "1irwyv2j5c3606k3qbq77yrd65y27rcq3jdlp295rz875q8iq9fs"; 9 10 }; 10 11
+4 -3
pkgs/tools/security/mktemp/default.nix
··· 1 1 { lib, stdenv, fetchurl, groff }: 2 2 3 - stdenv.mkDerivation { 4 - name = "mktemp-1.7"; 3 + stdenv.mkDerivation rec { 4 + pname = "mktemp"; 5 + version = "1.7"; 5 6 6 7 # Have `configure' avoid `/usr/bin/nroff' in non-chroot builds. 7 8 NROFF = "${groff}/bin/nroff"; ··· 12 13 ''; 13 14 14 15 src = fetchurl { 15 - url = "ftp://ftp.mktemp.org/pub/mktemp/mktemp-1.7.tar.gz"; 16 + url = "ftp://ftp.mktemp.org/pub/mktemp/mktemp-${version}.tar.gz"; 16 17 sha256 = "0x969152znxxjbj7387xb38waslr4yv6bnj5jmhb4rpqxphvk54f"; 17 18 }; 18 19
+3 -2
pkgs/tools/security/munge/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, autoreconfHook, gawk, gnused, libgcrypt, zlib, bzip2 }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "munge-0.5.14"; 4 + pname = "munge"; 5 + version = "0.5.14"; 5 6 6 7 src = fetchFromGitHub { 7 8 owner = "dun"; 8 9 repo = "munge"; 9 - rev = name; 10 + rev = "${pname}-${version}"; 10 11 sha256 = "15h805rwcb9f89dyrkxfclzs41n3ff8x7cc1dbvs8mb0ds682c4j"; 11 12 }; 12 13
+3 -2
pkgs/tools/security/pamtester/default.nix
··· 1 1 { lib, stdenv, fetchurl, pam }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "pamtester-0.1.2"; 4 + pname = "pamtester"; 5 + version = "0.1.2"; 5 6 6 7 src = fetchurl { 7 - url = "mirror://sourceforge/pamtester/${name}.tar.gz"; 8 + url = "mirror://sourceforge/pamtester/pamtester-${version}.tar.gz"; 8 9 sha256 = "1mdj1wj0adcnx354fs17928yn2xfr1hj5mfraq282dagi873sqw3"; 9 10 }; 10 11
+4 -3
pkgs/tools/security/pwgen/default.nix
··· 1 1 {lib, stdenv, fetchurl, autoreconfHook}: 2 - stdenv.mkDerivation { 3 - name = "pwgen-2.08"; 2 + stdenv.mkDerivation rec { 3 + pname = "pwgen"; 4 + version = "2.08"; 4 5 5 6 src = fetchurl { 6 - url = "https://github.com/tytso/pwgen/archive/v2.08.tar.gz"; 7 + url = "https://github.com/tytso/pwgen/archive/v${version}.tar.gz"; 7 8 sha256 = "8d6e94f28655e61d6126290e3eafad4d17d7fba0d0d354239522a740a270bb2f"; 8 9 }; 9 10
+4 -3
pkgs/tools/security/super/default.nix
··· 1 1 { lib, stdenv, fetchurl, fetchpatch }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "super-3.30.0"; 4 + pname = "super"; 5 + version = "3.30.0"; 5 6 6 7 src = fetchurl { 7 - name = "${name}.tar.gz"; 8 - url = "https://www.ucolick.org/~will/RUE/super/${name}-tar.gz"; 8 + name = "super-${version}.tar.gz"; 9 + url = "https://www.ucolick.org/~will/RUE/super/super-${version}-tar.gz"; 9 10 sha256 = "0k476f83w7f45y9jpyxwr00ikv1vhjiq0c26fgjch9hnv18icvwy"; 10 11 }; 11 12
+3 -2
pkgs/tools/system/acct/default.nix
··· 1 1 { fetchurl, lib, stdenv }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "acct-6.6.4"; 4 + pname = "acct"; 5 + version = "6.6.4"; 5 6 6 7 src = fetchurl { 7 - url = "mirror://gnu/acct/${name}.tar.gz"; 8 + url = "mirror://gnu/acct/acct-${version}.tar.gz"; 8 9 sha256 = "0gv6m8giazshvgpvwbng98chpas09myyfw1zr2y7hqxib0mvy5ac"; 9 10 }; 10 11
+3 -2
pkgs/tools/system/actkbd/default.nix
··· 1 1 { fetchurl, lib, stdenv }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "actkbd-0.2.8"; 4 + pname = "actkbd"; 5 + version = "0.2.8"; 5 6 6 7 src = fetchurl { 7 - url = "http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/files/${name}.tar.bz2"; 8 + url = "http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/files/actkbd-${version}.tar.bz2"; 8 9 sha256 = "1ipb7k5q7k7p54is96ij2n74jfa6xc0llb9lpjwxhsqviqxn9slm"; 9 10 }; 10 11
+4 -3
pkgs/tools/system/bar/default.nix
··· 1 1 { lib, stdenv, fetchurl }: 2 2 3 - stdenv.mkDerivation { 4 - name = "bar-1.11.1"; 3 + stdenv.mkDerivation rec { 4 + pname = "bar"; 5 + version = "1.11.1"; 5 6 6 7 src = fetchurl { 7 - url = "mirror://sourceforge/project/clpbar/clpbar/bar-1.11.1/bar_1.11.1.tar.gz"; 8 + url = "mirror://sourceforge/project/clpbar/clpbar/bar-${version}/bar_${version}.tar.gz"; 8 9 sha256 = "00v5cb6vzizyyhflgr62d3k8dqc0rg6wdgfyyk11c0s0r32mw3zs"; 9 10 }; 10 11
+5 -3
pkgs/tools/system/cron/default.nix
··· 1 1 {lib, stdenv, fetchurl, vim, sendmailPath ? "/usr/sbin/sendmail"}: 2 2 3 - stdenv.mkDerivation { 4 - name = "cron-4.1"; 3 + stdenv.mkDerivation rec { 4 + pname = "cron"; 5 + version = "4.1"; 6 + 5 7 src = fetchurl { 6 - url = "ftp://ftp.isc.org/isc/cron/cron_4.1.shar"; 8 + url = "ftp://ftp.isc.org/isc/cron/cron_${version}.shar"; 7 9 sha256 = "16n3dras4b1jh7g958nz1k54pl9pg5fwb3fvjln8z67varvq6if4"; 8 10 }; 9 11
+3 -2
pkgs/tools/system/dcfldd/default.nix
··· 1 1 { lib, stdenv, fetchurl }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "dcfldd-1.3.4-1"; 4 + pname = "dcfldd"; 5 + version = "1.3.4-1"; 5 6 6 7 src = fetchurl { 7 - url = "mirror://sourceforge/dcfldd/${name}.tar.gz"; 8 + url = "mirror://sourceforge/dcfldd/dcfldd-${version}.tar.gz"; 8 9 sha256 = "1y6mwsvm75f5jzxsjjk0yhf8xnpmz6y8qvcxfandavx59lc3l57m"; 9 10 }; 10 11
+3 -2
pkgs/tools/system/ddrescue/default.nix
··· 3 3 }: 4 4 5 5 stdenv.mkDerivation rec { 6 - name = "ddrescue-1.25"; 6 + pname = "ddrescue"; 7 + version = "1.25"; 7 8 8 9 src = fetchurl { 9 - url = "mirror://gnu/ddrescue/${name}.tar.lz"; 10 + url = "mirror://gnu/ddrescue/ddrescue-${version}.tar.lz"; 10 11 sha256 = "0qqh38izl5ppap9a5izf3hijh94k65s3zbfkczd4b7x04syqwlyf"; 11 12 }; 12 13
-1
pkgs/tools/system/ddrescueview/default.nix
··· 6 6 in stdenv.mkDerivation rec { 7 7 pname = "ddrescueview"; 8 8 version = "${versionBase}${versionSuffix}"; 9 - name = "ddrescueview-0.4alpha4"; 10 9 11 10 src = fetchurl { 12 11 name = "ddrescueview-${versionBase}${versionSuffix}.tar.xz";
+4 -3
pkgs/tools/system/dog/default.nix
··· 1 1 {lib, stdenv, fetchurl}: 2 2 3 - stdenv.mkDerivation { 4 - name = "dog-1.7"; 3 + stdenv.mkDerivation rec { 4 + pname = "dog"; 5 + version = "1.7"; 5 6 6 7 src = fetchurl { 7 - url = "http://archive.debian.org/debian/pool/main/d/dog/dog_1.7.orig.tar.gz"; 8 + url = "http://archive.debian.org/debian/pool/main/d/dog/dog_${version}.orig.tar.gz"; 8 9 sha256 = "3ef25907ec5d1dfb0df94c9388c020b593fbe162d7aaa9bd08f35d2a125af056"; 9 10 }; 10 11
+3 -2
pkgs/tools/system/fdisk/default.nix
··· 1 1 { fetchurl, lib, stdenv, parted, libuuid, gettext, guile }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "gnufdisk-2.0.0a"; # .0a1 seems broken, see https://lists.gnu.org/archive/html/bug-fdisk/2012-09/msg00000.html 4 + pname = "gnufdisk"; 5 + version = "2.0.0a"; # .0a1 seems broken, see https://lists.gnu.org/archive/html/bug-fdisk/2012-09/msg00000.html 5 6 6 7 src = fetchurl { 7 - url = "mirror://gnu/fdisk/${name}.tar.gz"; 8 + url = "mirror://gnu/fdisk/gnufdisk-${version}.tar.gz"; 8 9 sha256 = "04nd7civ561x2lwcmxhsqbprml3178jfc58fy1v7hzqg5k4nbhy3"; 9 10 }; 10 11
+3 -2
pkgs/tools/system/gdmap/default.nix
··· 1 1 { lib, stdenv, fetchurl, gtk2, pkg-config, libxml2, intltool, gettext }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "gdmap-0.8.1"; 4 + pname = "gdmap"; 5 + version = "0.8.1"; 5 6 6 7 src = fetchurl { 7 - url = "mirror://sourceforge/gdmap/${name}.tar.gz"; 8 + url = "mirror://sourceforge/gdmap/gdmap-${version}.tar.gz"; 8 9 sha256 = "0nr8l88cg19zj585hczj8v73yh21k7j13xivhlzl8jdk0j0cj052"; 9 10 }; 10 11
+3 -2
pkgs/tools/system/gt5/default.nix
··· 1 1 {lib, stdenv, fetchurl}: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "gt5-1.4.0"; 4 + pname = "gt5"; 5 + version = "1.4.0"; 5 6 6 7 src = fetchurl { 7 - url = "mirror://sourceforge/gt5/${name}.tar.gz"; 8 + url = "mirror://sourceforge/gt5/gt5-${version}.tar.gz"; 8 9 sha256 = "0gm0gzyp4d9rxqddbaskbz5zvmlhyr4nyb5x9g7x4abyyxqjlnkq"; 9 10 }; 10 11
+4 -3
pkgs/tools/system/idle3tools/default.nix
··· 1 1 {lib, stdenv, fetchurl}: 2 2 3 - stdenv.mkDerivation { 4 - name = "idle3-tools-0.9.1"; 3 + stdenv.mkDerivation rec { 4 + pname = "idle3-tools"; 5 + version = "0.9.1"; 5 6 6 7 src = fetchurl { 7 - url = "mirror://sourceforge/idle3-tools/idle3-tools-0.9.1.tgz"; 8 + url = "mirror://sourceforge/idle3-tools/idle3-tools-${version}.tgz"; 8 9 sha256 = "00ia7xq9yldxyl9gz0mr4xa568nav14p0fnv82f2rbbkg060cy4p"; 9 10 }; 10 11
+3 -2
pkgs/tools/system/incron/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, bash }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "incron-0.5.12"; 4 + pname = "incron"; 5 + version = "0.5.12"; 5 6 src = fetchFromGitHub { 6 7 owner = "ar-"; 7 8 repo = "incron"; 8 - rev = name; 9 + rev = "${pname}-${version}"; 9 10 sha256 = "11d5f98cjafiv9h9zzzrw2s06s2fvdg8gp64km7mdprd2xmy6dih"; 10 11 }; 11 12
+3 -3
pkgs/tools/system/ipmitool/default.nix
··· 1 1 { stdenv, lib, fetchurl, openssl, fetchpatch, static ? stdenv.hostPlatform.isStatic }: 2 2 3 3 let 4 - pkgname = "ipmitool"; 4 + pname = "ipmitool"; 5 5 version = "1.8.18"; 6 6 in 7 7 stdenv.mkDerivation { 8 - name = "${pkgname}-${version}"; 8 + inherit pname version; 9 9 10 10 src = fetchurl { 11 - url = "mirror://sourceforge/${pkgname}/${pkgname}-${version}.tar.gz"; 11 + url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz"; 12 12 sha256 = "0kfh8ny35rvwxwah4yv91a05qwpx74b5slq2lhrh71wz572va93m"; 13 13 }; 14 14
+2 -1
pkgs/tools/system/loadwatch/default.nix
··· 1 1 { lib, stdenv, fetchgit, ... }: 2 2 3 3 stdenv.mkDerivation { 4 - name = "loadwatch-1.1-1-g6d2544c"; 4 + pname = "loadwatch"; 5 + version = "1.1-1-g6d2544c"; 5 6 src = fetchgit { 6 7 url = "git://woffs.de/git/fd/loadwatch.git"; 7 8 sha256 = "1bhw5ywvhyb6snidsnllfpdi1migy73wg2gchhsfbcpm8aaz9c9b";
+2 -1
pkgs/tools/system/localtime/default.nix
··· 1 1 { lib, fetchFromGitHub, buildGoPackage, m4 }: 2 2 3 3 buildGoPackage rec { 4 - name = "localtime-2017-11-07"; 4 + pname = "localtime"; 5 + version = "2017-11-07"; 5 6 6 7 src = fetchFromGitHub { 7 8 owner = "Stebalien";
+3 -2
pkgs/tools/system/mcron/default.nix
··· 1 1 { fetchurl, lib, stdenv, guile, which, ed, libtool }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "mcron-1.0.6"; 4 + pname = "mcron"; 5 + version = "1.0.6"; 5 6 6 7 src = fetchurl { 7 - url = "mirror://gnu/mcron/${name}.tar.gz"; 8 + url = "mirror://gnu/mcron/mcron-${version}.tar.gz"; 8 9 sha256 = "0yvrfzzdy2m7fbqkr61fw01wd9r2jpnbyabxhcsfivgxywknl0fy"; 9 10 }; 10 11
+3 -2
pkgs/tools/system/monit/default.nix
··· 6 6 }: 7 7 8 8 stdenv.mkDerivation rec { 9 - name = "monit-5.27.2"; 9 + pname = "monit"; 10 + version = "5.27.2"; 10 11 11 12 src = fetchurl { 12 - url = "${meta.homepage}dist/${name}.tar.gz"; 13 + url = "${meta.homepage}dist/monit-${version}.tar.gz"; 13 14 sha256 = "sha256-2ICceNXcHtenujKlpVxRFIVRMsxNpIBfjTqvjPRuqkw="; 14 15 }; 15 16
+2 -1
pkgs/tools/system/opencl-info/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, opencl-clhpp, ocl-icd }: 2 2 3 3 stdenv.mkDerivation { 4 - name = "opencl-info-2014-02-21"; 4 + pname = "opencl-info"; 5 + version = "2014-02-21"; 5 6 6 7 src = fetchFromGitHub { 7 8 owner = "marchv";
+3 -2
pkgs/tools/system/pciutils/default.nix
··· 5 5 }: 6 6 7 7 stdenv.mkDerivation rec { 8 - name = "pciutils-3.7.0"; # with release-date database 8 + pname = "pciutils"; 9 + version = "3.7.0"; # with release-date database 9 10 10 11 src = fetchurl { 11 - url = "mirror://kernel/software/utils/pciutils/${name}.tar.xz"; 12 + url = "mirror://kernel/software/utils/pciutils/pciutils-${version}.tar.xz"; 12 13 sha256 = "1ss0rnfsx8gvqjxaji4mvbhf9xyih4cadmgadbwwv8mnx1xvjh4x"; 13 14 }; 14 15
+2 -1
pkgs/tools/system/rowhammer-test/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub }: 2 2 3 3 stdenv.mkDerivation { 4 - name = "rowhammer-test-20150811"; 4 + pname = "rowhammer-test"; 5 + version = "20150811"; 5 6 6 7 src = fetchFromGitHub { 7 8 owner = "google";
+3 -2
pkgs/tools/system/safecopy/default.nix
··· 1 1 { lib, stdenv, fetchurl }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "safecopy-1.7"; 4 + pname = "safecopy"; 5 + version = "1.7"; 5 6 6 7 src = fetchurl { 7 - url = "mirror://sourceforge/project/safecopy/safecopy/${name}/${name}.tar.gz"; 8 + url = "mirror://sourceforge/project/safecopy/safecopy/safecopy-${version}/safecopy-${version}.tar.gz"; 8 9 sha256 = "1zf4kk9r8za9pn4hzy1y3j02vrhl1rxfk5adyfq0w0k48xfyvys2"; 9 10 }; 10 11
+2 -2
pkgs/tools/system/sg3_utils/default.nix
··· 5 5 version = "1.46r862"; 6 6 7 7 src = fetchurl { 8 - url = "http://sg.danny.cz/sg/p/sg3_utils-${version}.tgz"; 9 - sha256 = "sha256-s2UmU+p3s7Hoe+GFri2q+/3XLBICc+h04cxM86yaAs8="; 8 + url = "https://sg.danny.cz/sg/p/sg3_utils-${version}.tgz"; 9 + sha256 = "s2UmU+p3s7Hoe+GFri2q+/3XLBICc+h04cxM86yaAs8="; 10 10 }; 11 11 12 12 meta = with lib; {
+3 -2
pkgs/tools/text/gawk/default.nix
··· 19 19 inherit (lib) optional; 20 20 in 21 21 stdenv.mkDerivation rec { 22 - name = "gawk-5.1.0"; 22 + pname = "gawk"; 23 + version = "5.1.0"; 23 24 24 25 src = fetchurl { 25 - url = "mirror://gnu/gawk/${name}.tar.xz"; 26 + url = "mirror://gnu/gawk/gawk-${version}.tar.xz"; 26 27 sha256 = "1gc2cccqy1x1bf6rhwlmd8q7dz7gnam6nwgl38bxapv6qm5flpyg"; 27 28 }; 28 29
+3 -2
pkgs/tools/text/gnupatch/default.nix
··· 3 3 }: 4 4 5 5 stdenv.mkDerivation rec { 6 - name = "patch-2.7.6"; 6 + pname = "patch"; 7 + version = "2.7.6"; 7 8 8 9 src = fetchurl { 9 - url = "mirror://gnu/patch/${name}.tar.xz"; 10 + url = "mirror://gnu/patch/patch-${version}.tar.xz"; 10 11 sha256 = "1zfqy4rdcy279vwn2z1kbv19dcfw25d2aqy9nzvdkq5bjzd0nqdc"; 11 12 }; 12 13
+6 -24
pkgs/top-level/all-packages.nix
··· 18288 18288 (import ../development/libraries/qt-5/5.12) { 18289 18289 inherit newScope; 18290 18290 inherit lib stdenv fetchurl fetchpatch fetchFromGitHub makeSetupHook makeWrapper; 18291 - inherit bison; 18292 - inherit cups; 18293 - inherit dconf; 18294 - inherit harfbuzz; 18295 - inherit libGL; 18296 - inherit perl; 18297 - inherit gtk3; 18291 + inherit bison cups dconf harfbuzz libGL perl gtk3; 18298 18292 inherit (gst_all_1) gstreamer gst-plugins-base; 18299 - inherit llvmPackages_5; 18293 + inherit llvmPackages_5 darwin; 18300 18294 }); 18301 18295 18302 18296 qt514 = recurseIntoAttrs (makeOverridable 18303 18297 (import ../development/libraries/qt-5/5.14) { 18304 18298 inherit newScope; 18305 18299 inherit lib stdenv fetchurl fetchpatch fetchFromGitHub makeSetupHook makeWrapper; 18306 - inherit bison; 18307 - inherit cups; 18308 - inherit dconf; 18309 - inherit harfbuzz; 18310 - inherit libGL; 18311 - inherit perl; 18312 - inherit gtk3; 18300 + inherit bison cups dconf harfbuzz libGL perl gtk3; 18313 18301 inherit (gst_all_1) gstreamer gst-plugins-base; 18314 - inherit llvmPackages_5; 18302 + inherit llvmPackages_5 darwin; 18315 18303 }); 18316 18304 18317 18305 qt515 = recurseIntoAttrs (makeOverridable 18318 18306 (import ../development/libraries/qt-5/5.15) { 18319 18307 inherit newScope; 18320 18308 inherit lib stdenv fetchurl fetchpatch fetchgit fetchFromGitHub makeSetupHook makeWrapper; 18321 - inherit bison; 18322 - inherit cups; 18323 - inherit dconf; 18324 - inherit harfbuzz; 18325 - inherit libGL; 18326 - inherit perl; 18327 - inherit gtk3; 18309 + inherit bison cups dconf harfbuzz libGL perl gtk3; 18328 18310 inherit (gst_all_1) gstreamer gst-plugins-base; 18329 - inherit llvmPackages_5; 18311 + inherit llvmPackages_5 darwin; 18330 18312 }); 18331 18313 18332 18314 libsForQt512 = recurseIntoAttrs (import ./qt5-packages.nix {