Merge staging-next into staging

authored by github-actions[bot] and committed by GitHub b33d17df 52cf9e3e

+258 -147
+2 -2
pkgs/applications/networking/browsers/qutebrowser/default.nix
··· 38 38 buildPythonApplication = if isQt6 then python3Packages.buildPythonApplication else mkDerivationWith python3Packages.buildPythonApplication; 39 39 40 40 pname = "qutebrowser"; 41 - version = if isQt6 then "unstable-2023-04-18" else "2.5.3"; 41 + version = if isQt6 then "unstable-2023-04-18" else "2.5.4"; 42 42 in 43 43 44 44 assert withMediaPlayback -> gst_all_1 != null; ··· 60 60 # the release tarballs are different from the git checkout! 61 61 else fetchurl { 62 62 url = "https://github.com/qutebrowser/qutebrowser/releases/download/v${version}/${pname}-${version}.tar.gz"; 63 - hash = "sha256-hF7yJDTQIztUcZJae20HVhfGlLprvz6GWrgpSwLJ14E="; 63 + hash = "sha256-pGCyICUn5CpnDCbSJdn6ZBfQkswfFvOpXnvJXdicGrE="; 64 64 }; 65 65 66 66 # Needs tox
+4 -4
pkgs/applications/terminal-emulators/rxvt-unicode/default.nix
··· 1 1 { lib, stdenv, fetchurl, fetchpatch, makeDesktopItem 2 - , libX11, libXt, libXft, libXrender 2 + , libX11, libXt, libXft, libXrender, libXext 3 3 , ncurses, fontconfig, freetype 4 4 , pkg-config, gdk-pixbuf, perl 5 5 , libptytty ··· 12 12 13 13 let 14 14 pname = "rxvt-unicode"; 15 - version = "9.30"; 15 + version = "9.31"; 16 16 description = "A clone of the well-known terminal emulator rxvt"; 17 17 18 18 desktopItem = makeDesktopItem { ··· 41 41 42 42 src = fetchurl { 43 43 url = "http://dist.schmorp.de/rxvt-unicode/Attic/rxvt-unicode-${version}.tar.bz2"; 44 - sha256 = "0badnkjsn3zps24r5iggj8k5v4f00npc77wqg92pcn1q5z8r677y"; 44 + sha256 = "qqE/y8FJ/g8/OR+TMnlYD3Spb9MS1u0GuP8DwtRmcug="; 45 45 }; 46 46 47 47 nativeBuildInputs = [ pkg-config ]; ··· 49 49 [ libX11 libXt libXft ncurses # required to build the terminfo file 50 50 fontconfig freetype libXrender 51 51 libptytty 52 - ] ++ optional perlSupport perl 52 + ] ++ optionals perlSupport [ perl libXext ] 53 53 ++ optional gdkPixbufSupport gdk-pixbuf; 54 54 55 55 outputs = [ "out" "terminfo" ];
+2 -2
pkgs/applications/virtualization/qemu/default.nix
··· 48 48 + lib.optionalString xenSupport "-xen" 49 49 + lib.optionalString hostCpuOnly "-host-cpu-only" 50 50 + lib.optionalString nixosTestRunner "-for-vm-tests"; 51 - version = "8.0.0"; 51 + version = "8.0.2"; 52 52 53 53 src = fetchurl { 54 54 url = "https://download.qemu.org/qemu-${version}.tar.xz"; 55 - sha256 = "u2DwNBUxGB1sw5ad0ZoBPQQnqH+RgZOXDZrbkRMeVtA="; 55 + sha256 = "8GCr1DX75nlBJeLDmFaP/Dz6VABCWWkHqLGO3KNM9qU="; 56 56 }; 57 57 58 58 depsBuildBuild = [ buildPackages.stdenv.cc ]
+15 -15
pkgs/development/compilers/ghc/common-hadrian.nix
··· 143 143 return $ verbosity >= Verbose 144 144 '' 145 145 146 + , ghcSrc ? (if rev != null then fetchgit else fetchurl) ({ 147 + inherit url sha256; 148 + } // lib.optionalAttrs (rev != null) { 149 + inherit rev; 150 + }) 151 + 152 + # GHC's build system hadrian built from the GHC-to-build's source tree 153 + # using our bootstrap GHC. 154 + , hadrian ? bootPkgs.callPackage ../../tools/haskell/hadrian { 155 + ghcSrc = ghcSrc; 156 + ghcVersion = version; 157 + userSettings = hadrianUserSettings; 158 + } 159 + 146 160 , # Whether to build sphinx documentation. 147 161 enableDocs ? ( 148 162 # Docs disabled for musl and cross because it's a large task to keep ··· 161 175 assert !enableNativeBignum -> gmp != null; 162 176 163 177 let 164 - src = (if rev != null then fetchgit else fetchurl) ({ 165 - inherit url sha256; 166 - } // lib.optionalAttrs (rev != null) { 167 - inherit rev; 168 - }); 169 - 170 178 inherit (stdenv) buildPlatform hostPlatform targetPlatform; 171 179 172 180 inherit (bootPkgs) ghc; ··· 187 195 ++ lib.optionals targetPlatform.useAndroidPrebuilt [ 188 196 "*.*.ghc.c.opts += -optc-std=gnu99" 189 197 ]; 190 - 191 - # GHC's build system hadrian built from the GHC-to-build's source tree 192 - # using our bootstrap GHC. 193 - hadrian = bootPkgs.callPackage ../../tools/haskell/hadrian { 194 - ghcSrc = src; 195 - ghcVersion = version; 196 - userSettings = hadrianUserSettings; 197 - }; 198 198 199 199 # Splicer will pull out correct variations 200 200 libDeps = platform: lib.optional enableTerminfo ncurses ··· 258 258 pname = "${targetPrefix}ghc${variantSuffix}"; 259 259 inherit version; 260 260 261 - inherit src; 261 + src = ghcSrc; 262 262 263 263 enableParallelBuilding = true; 264 264
+3 -3
pkgs/development/libraries/glfw/3.x.nix
··· 1 1 { stdenv, lib, fetchFromGitHub, cmake 2 2 , libGL, libXrandr, libXinerama, libXcursor, libX11, libXi, libXext 3 - , Cocoa, Kernel, fixDarwinDylibNames 3 + , Carbon, Cocoa, Kernel, OpenGL, fixDarwinDylibNames 4 4 , waylandSupport ? false, extra-cmake-modules, wayland 5 5 , wayland-protocols, libxkbcommon 6 6 }: ··· 19 19 # Fix linkage issues on X11 (https://github.com/NixOS/nixpkgs/issues/142583) 20 20 patches = lib.optional (!waylandSupport) ./x11.patch; 21 21 22 - propagatedBuildInputs = [ libGL ]; 22 + propagatedBuildInputs = [ (if stdenv.isDarwin then OpenGL else libGL) ]; 23 23 24 24 nativeBuildInputs = [ cmake ] 25 25 ++ lib.optional stdenv.isDarwin fixDarwinDylibNames ··· 29 29 if waylandSupport 30 30 then [ wayland wayland-protocols libxkbcommon ] 31 31 else [ libX11 libXrandr libXinerama libXcursor libXi libXext ] 32 - ++ lib.optionals stdenv.isDarwin [ Cocoa Kernel ]; 32 + ++ lib.optionals stdenv.isDarwin [ Carbon Cocoa Kernel ]; 33 33 34 34 cmakeFlags = [ 35 35 "-DBUILD_SHARED_LIBS=ON"
+2 -1
pkgs/development/python-modules/ansible/core.nix
··· 1 1 { lib 2 - , callPackage 3 2 , buildPythonPackage 4 3 , fetchPypi 5 4 , installShellFiles ··· 11 10 , ncclient 12 11 , packaging 13 12 , paramiko 13 + , passlib 14 14 , pexpect 15 15 , psutil 16 16 , pycrypto ··· 50 50 cryptography 51 51 jinja2 52 52 packaging 53 + passlib 53 54 pyyaml 54 55 resolvelib # This library is a PITA, since ansible requires a very old version of it 55 56 # optional dependencies
+10 -6
pkgs/development/python-modules/token-bucket/default.nix
··· 2 2 , stdenv 3 3 , buildPythonPackage 4 4 , fetchFromGitHub 5 - , pytest-runner 6 5 , pytestCheckHook 6 + , pythonOlder 7 7 }: 8 8 9 9 buildPythonPackage rec { 10 10 pname = "token-bucket"; 11 11 version = "0.3.0"; 12 12 format = "setuptools"; 13 + 14 + disabled = pythonOlder "3.7"; 13 15 14 16 src = fetchFromGitHub { 15 17 owner = "falconry"; 16 18 repo = pname; 17 - rev = version; 18 - sha256 = "0a703y2d09kvv2l9vq7vc97l4pi2wwq1f2hq783mbw2238jymb3m"; 19 + rev = "refs/tags/${version}"; 20 + hash = "sha256-dazqJRpC8FUHOhgKFzDnIl5CT2L74J2o2Hsm0IQf4Cg="; 19 21 }; 20 22 21 - nativeBuildInputs = [ 22 - pytest-runner 23 - ]; 23 + postPatch = '' 24 + substituteInPlace setup.py \ 25 + --replace "'pytest-runner'" "" 26 + ''; 24 27 25 28 nativeCheckInputs = [ 26 29 pytestCheckHook ··· 31 34 meta = with lib; { 32 35 description = "Token Bucket Implementation for Python Web Apps"; 33 36 homepage = "https://github.com/falconry/token-bucket"; 37 + changelog = "https://github.com/falconry/token-bucket/releases/tag/${version}"; 34 38 license = licenses.asl20; 35 39 maintainers = with maintainers; [ hexa ]; 36 40 };
+1 -1
pkgs/development/r-modules/default.nix
··· 327 327 chebpol = [ pkgs.fftw.dev ]; 328 328 ChemmineOB = with pkgs; [ openbabel pkg-config ]; 329 329 curl = [ pkgs.curl.dev ]; 330 - data_table = [ pkgs.zlib.dev ] ++ lib.optional stdenv.isDarwin pkgs.llvmPackages.openmp; 330 + data_table = with pkgs; [ pkg-config zlib.dev ] ++ lib.optional stdenv.isDarwin pkgs.llvmPackages.openmp; 331 331 devEMF = with pkgs; [ xorg.libXft.dev ]; 332 332 diversitree = with pkgs; [ gsl fftw ]; 333 333 exactextractr = [ pkgs.geos ];
+2 -2
pkgs/development/tools/analysis/checkov/default.nix
··· 22 22 23 23 buildPythonApplication rec { 24 24 pname = "checkov"; 25 - version = "2.3.283"; 25 + version = "2.3.285"; 26 26 format = "setuptools"; 27 27 28 28 src = fetchFromGitHub { 29 29 owner = "bridgecrewio"; 30 30 repo = pname; 31 31 rev = "refs/tags/${version}"; 32 - hash = "sha256-2NiDCzbZR82wQeRRTeKLx6FZe25k4wmzACCWNUJG+yI="; 32 + hash = "sha256-e451r8md6HOOhEIsjFitQ0IGacQ6bhA/jBFmaz/zVv8="; 33 33 }; 34 34 35 35 patches = [
+16 -10
pkgs/games/minecraft-servers/versions.json
··· 1 1 { 2 + "1.20": { 3 + "url": "https://piston-data.mojang.com/v1/objects/15c777e2cfe0556eef19aab534b186c0c6f277e1/server.jar", 4 + "sha1": "15c777e2cfe0556eef19aab534b186c0c6f277e1", 5 + "version": "1.20", 6 + "javaVersion": 17 7 + }, 2 8 "1.19": { 3 9 "url": "https://piston-data.mojang.com/v1/objects/8f3112a1049751cc472ec13e397eade5336ca7ae/server.jar", 4 10 "sha1": "8f3112a1049751cc472ec13e397eade5336ca7ae", ··· 6 12 "javaVersion": 17 7 13 }, 8 14 "1.18": { 9 - "url": "https://launcher.mojang.com/v1/objects/c8f83c5655308435b3dcf03c06d9fe8740a77469/server.jar", 15 + "url": "https://piston-data.mojang.com/v1/objects/c8f83c5655308435b3dcf03c06d9fe8740a77469/server.jar", 10 16 "sha1": "c8f83c5655308435b3dcf03c06d9fe8740a77469", 11 17 "version": "1.18.2", 12 18 "javaVersion": 17 13 19 }, 14 20 "1.17": { 15 - "url": "https://launcher.mojang.com/v1/objects/a16d67e5807f57fc4e550299cf20226194497dc2/server.jar", 21 + "url": "https://piston-data.mojang.com/v1/objects/a16d67e5807f57fc4e550299cf20226194497dc2/server.jar", 16 22 "sha1": "a16d67e5807f57fc4e550299cf20226194497dc2", 17 23 "version": "1.17.1", 18 24 "javaVersion": 16 19 25 }, 20 26 "1.16": { 21 - "url": "https://launcher.mojang.com/v1/objects/1b557e7b033b583cd9f66746b7a9ab1ec1673ced/server.jar", 27 + "url": "https://piston-data.mojang.com/v1/objects/1b557e7b033b583cd9f66746b7a9ab1ec1673ced/server.jar", 22 28 "sha1": "1b557e7b033b583cd9f66746b7a9ab1ec1673ced", 23 29 "version": "1.16.5", 24 30 "javaVersion": 8 25 31 }, 26 32 "1.15": { 27 - "url": "https://launcher.mojang.com/v1/objects/bb2b6b1aefcd70dfd1892149ac3a215f6c636b07/server.jar", 33 + "url": "https://piston-data.mojang.com/v1/objects/bb2b6b1aefcd70dfd1892149ac3a215f6c636b07/server.jar", 28 34 "sha1": "bb2b6b1aefcd70dfd1892149ac3a215f6c636b07", 29 35 "version": "1.15.2", 30 36 "javaVersion": 8 31 37 }, 32 38 "1.14": { 33 - "url": "https://launcher.mojang.com/v1/objects/3dc3d84a581f14691199cf6831b71ed1296a9fdf/server.jar", 39 + "url": "https://piston-data.mojang.com/v1/objects/3dc3d84a581f14691199cf6831b71ed1296a9fdf/server.jar", 34 40 "sha1": "3dc3d84a581f14691199cf6831b71ed1296a9fdf", 35 41 "version": "1.14.4", 36 42 "javaVersion": 8 37 43 }, 38 44 "1.13": { 39 - "url": "https://launcher.mojang.com/v1/objects/3737db93722a9e39eeada7c27e7aca28b144ffa7/server.jar", 45 + "url": "https://piston-data.mojang.com/v1/objects/3737db93722a9e39eeada7c27e7aca28b144ffa7/server.jar", 40 46 "sha1": "3737db93722a9e39eeada7c27e7aca28b144ffa7", 41 47 "version": "1.13.2", 42 48 "javaVersion": 8 43 49 }, 44 50 "1.12": { 45 - "url": "https://launcher.mojang.com/v1/objects/886945bfb2b978778c3a0288fd7fab09d315b25f/server.jar", 51 + "url": "https://piston-data.mojang.com/v1/objects/886945bfb2b978778c3a0288fd7fab09d315b25f/server.jar", 46 52 "sha1": "886945bfb2b978778c3a0288fd7fab09d315b25f", 47 53 "version": "1.12.2", 48 54 "javaVersion": 8 49 55 }, 50 56 "1.11": { 51 - "url": "https://launcher.mojang.com/v1/objects/f00c294a1576e03fddcac777c3cf4c7d404c4ba4/server.jar", 57 + "url": "https://piston-data.mojang.com/v1/objects/f00c294a1576e03fddcac777c3cf4c7d404c4ba4/server.jar", 52 58 "sha1": "f00c294a1576e03fddcac777c3cf4c7d404c4ba4", 53 59 "version": "1.11.2", 54 60 "javaVersion": 8 55 61 }, 56 62 "1.10": { 57 - "url": "https://launcher.mojang.com/v1/objects/3d501b23df53c548254f5e3f66492d178a48db63/server.jar", 63 + "url": "https://piston-data.mojang.com/v1/objects/3d501b23df53c548254f5e3f66492d178a48db63/server.jar", 58 64 "sha1": "3d501b23df53c548254f5e3f66492d178a48db63", 59 65 "version": "1.10.2", 60 66 "javaVersion": 8 61 67 }, 62 68 "1.9": { 63 - "url": "https://launcher.mojang.com/v1/objects/edbb7b1758af33d365bf835eb9d13de005b1e274/server.jar", 69 + "url": "https://piston-data.mojang.com/v1/objects/edbb7b1758af33d365bf835eb9d13de005b1e274/server.jar", 64 70 "sha1": "edbb7b1758af33d365bf835eb9d13de005b1e274", 65 71 "version": "1.9.4", 66 72 "javaVersion": 8
+2 -2
pkgs/servers/mail/postfix/default.nix
··· 25 25 26 26 in stdenv.mkDerivation rec { 27 27 pname = "postfix"; 28 - version = "3.8.0"; 28 + version = "3.8.1"; 29 29 30 30 src = fetchurl { 31 31 url = "http://cdn.postfix.johnriley.me/mirrors/postfix-release/official/${pname}-${version}.tar.gz"; 32 - hash = "sha256-o62AKb0sawxXZHeg93v50sC3YcuqDvv+9Hlp7+purek="; 32 + hash = "sha256-VOG//e0wMoKKcN4iwqGpTRwJf8RRPg/b/P2/O/9rcJI="; 33 33 }; 34 34 35 35 nativeBuildInputs = [ makeWrapper m4 ];
+3 -3
pkgs/servers/monitoring/grafana/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "grafana"; 5 - version = "9.5.2"; 5 + version = "9.5.3"; 6 6 7 7 excludedPackages = [ "alert_webhook_listener" "clean-swagger" "release_publisher" "slow_proxy" "slow_proxy_mac" "macaron" "devenv" ]; 8 8 ··· 10 10 rev = "v${version}"; 11 11 owner = "grafana"; 12 12 repo = "grafana"; 13 - hash = "sha256-4Gt5VwKD6YkxNSKxvfGjakXF4jF9aoaFZ+dXy/GsDaU="; 13 + hash = "sha256-b9FkyDEidM7n+eY9IlZT9vysphe4CW5vGXYn9M5BIJM="; 14 14 }; 15 15 16 16 srcStatic = fetchurl { 17 17 url = "https://dl.grafana.com/oss/release/grafana-${version}.linux-amd64.tar.gz"; 18 - hash = "sha256-xY600pasxP/+XbbbX4U3zp8R837/46+uJ9zQWva5Or8="; 18 + hash = "sha256-PfdRPMQrEaTwg9wWeyJo6I9HuQX6sxl1JbT9CTixnyc="; 19 19 }; 20 20 21 21 vendorHash = "sha256-E9Qdsk691+laPrQQnYBIwxAIbXh7wxB0G2e/Vp+4x98=";
+2 -2
pkgs/tools/misc/rrdtool/default.nix
··· 1 1 { fetchurl, lib, stdenv, gettext, perl, pkg-config, libxml2, pango, cairo, groff 2 - , tcl-8_5, darwin }: 2 + , tcl, darwin }: 3 3 4 4 perl.pkgs.toPerlModule (stdenv.mkDerivation rec { 5 5 pname = "rrdtool"; ··· 13 13 nativeBuildInputs = [ pkg-config ]; 14 14 15 15 buildInputs = [ gettext perl libxml2 pango cairo groff ] 16 - ++ lib.optionals stdenv.isDarwin [ tcl-8_5 darwin.apple_sdk.frameworks.ApplicationServices ]; 16 + ++ lib.optionals stdenv.isDarwin [ tcl darwin.apple_sdk.frameworks.ApplicationServices ]; 17 17 18 18 postInstall = '' 19 19 # for munin and rrdtool support
+61 -29
pkgs/tools/security/aflplusplus/default.nix
··· 1 1 { lib, stdenv, stdenvNoCC, fetchFromGitHub, callPackage, makeWrapper 2 - , clang, llvm, gcc, which, libcgroup, python, perl, gmp 2 + , clang, llvm, gcc, which, libcgroup, python3, perl, gmp 3 3 , file, wine ? null, fetchpatch 4 + , cmocka 5 + , llvmPackages 4 6 }: 5 7 6 8 # wine fuzzing is only known to work for win32 binaries, and using a mixture of ··· 17 19 libtokencap = callPackage ./libtokencap.nix { inherit aflplusplus; }; 18 20 aflplusplus = stdenvNoCC.mkDerivation rec { 19 21 pname = "aflplusplus"; 20 - version = "2.65c"; 22 + version = "4.06c"; 21 23 22 24 src = fetchFromGitHub { 23 25 owner = "AFLplusplus"; 24 26 repo = "AFLplusplus"; 25 27 rev = version; 26 - sha256 = "1np2a3kypb2m8nyv6qnij18yzn41pl8619jzydci40br4vxial9l"; 28 + sha256 = "sha256-Gb1nYDBnwLS+m8e1UD0WLIrnp8KRgliGQVvQD22JXrQ="; 27 29 }; 28 30 enableParallelBuilding = true; 29 31 30 32 # Note: libcgroup isn't needed for building, just for the afl-cgroup 31 33 # script. 32 34 nativeBuildInputs = [ makeWrapper which clang gcc ]; 33 - buildInputs = [ llvm python gmp ] 34 - ++ lib.optional (wine != null) python.pkgs.wrapPython; 35 + buildInputs = [ llvm python3 gmp llvmPackages.bintools ] 36 + ++ lib.optional (wine != null) python3.pkgs.wrapPython; 35 37 38 + # Flag is already set by package and causes some compiler warnings. 39 + # warning: "_FORTIFY_SOURCE" redefined 40 + hardeningDisable = [ "fortify" ]; 36 41 37 42 postPatch = '' 38 - # Replace the CLANG_BIN variables with the correct path 39 - substituteInPlace llvm_mode/afl-clang-fast.c \ 43 + # Don't care about this. 44 + rm Android.bp 45 + 46 + # Replace the CLANG_BIN variables with the correct path. 47 + # Replace "gcc" and friends with full paths in afl-gcc. 48 + # Prevents afl-gcc picking up any (possibly incorrect) gcc from the path. 49 + # Replace LLVM_BINDIR with a non-existing path to give a hard error when it's used. 50 + substituteInPlace src/afl-cc.c \ 40 51 --replace "CLANGPP_BIN" '"${clang}/bin/clang++"' \ 41 52 --replace "CLANG_BIN" '"${clang}/bin/clang"' \ 42 - --replace 'getenv("AFL_PATH")' "(getenv(\"AFL_PATH\") ? getenv(\"AFL_PATH\") : \"$out/lib/afl\")" 43 - 44 - # Replace "gcc" and friends with full paths in afl-gcc 45 - # Prevents afl-gcc picking up any (possibly incorrect) gcc from the path 46 - substituteInPlace src/afl-gcc.c \ 47 53 --replace '"gcc"' '"${gcc}/bin/gcc"' \ 48 54 --replace '"g++"' '"${gcc}/bin/g++"' \ 49 - --replace '"gcj"' '"gcj-UNSUPPORTED"' \ 50 - --replace '"clang"' '"clang-UNSUPPORTED"' \ 51 - --replace '"clang++"' '"clang++-UNSUPPORTED"' 55 + --replace 'getenv("AFL_PATH")' "(getenv(\"AFL_PATH\") ? getenv(\"AFL_PATH\") : \"$out/lib/afl\")" 56 + 57 + substituteInPlace src/afl-ld-lto.c \ 58 + --replace 'LLVM_BINDIR' '"/nixpkgs-patched-does-not-exist"' 59 + 60 + # Remove the rest of the line 61 + sed -i 's|LLVM_BINDIR = .*|LLVM_BINDIR = |' utils/aflpp_driver/GNUmakefile 62 + substituteInPlace utils/aflpp_driver/GNUmakefile \ 63 + --replace 'LLVM_BINDIR = ' 'LLVM_BINDIR = ${clang}/bin/' 64 + 65 + substituteInPlace GNUmakefile.llvm \ 66 + --replace "\$(LLVM_BINDIR)/clang" "${clang}/bin/clang" 52 67 ''; 53 68 54 69 env.NIX_CFLAGS_COMPILE = toString [ ··· 56 71 "-Wno-error=use-after-free" 57 72 ]; 58 73 59 - makeFlags = [ "PREFIX=$(out)" ]; 74 + makeFlags = [ 75 + "PREFIX=$(out)" 76 + "USE_BINDIR=0" 77 + ]; 60 78 buildPhase = '' 79 + runHook preBuild 80 + 61 81 common="$makeFlags -j$NIX_BUILD_CORES" 62 - make all $common 63 - make radamsa $common 64 - make -C gcc_plugin CC=${gcc}/bin/gcc CXX=${gcc}/bin/g++ $common 65 - make -C llvm_mode $common 82 + make distrib $common 66 83 make -C qemu_mode/libcompcov $common 67 84 make -C qemu_mode/unsigaction $common 85 + 86 + runHook postBuild 68 87 ''; 69 88 70 89 postInstall = '' ··· 75 94 cp qemu_mode/unsigaction/unsigaction*.so $out/lib/afl/ 76 95 77 96 # Install the custom QEMU emulator for binary blob fuzzing. 78 - cp ${aflplusplus-qemu}/bin/${qemu-exe-name} $out/bin/afl-qemu-trace 97 + ln -s ${aflplusplus-qemu}/bin/${qemu-exe-name} $out/bin/afl-qemu-trace 79 98 80 99 # give user a convenient way of accessing libcompconv.so, libdislocator.so, libtokencap.so 81 100 cat > $out/bin/get-afl-qemu-libcompcov-so <<END ··· 83 102 echo $out/lib/afl/libcompcov.so 84 103 END 85 104 chmod +x $out/bin/get-afl-qemu-libcompcov-so 86 - cp ${libdislocator}/bin/get-libdislocator-so $out/bin/ 87 - cp ${libtokencap}/bin/get-libtokencap-so $out/bin/ 105 + ln -s ${libdislocator}/bin/get-libdislocator-so $out/bin/ 106 + ln -s ${libtokencap}/bin/get-libtokencap-so $out/bin/ 88 107 89 108 # Install the cgroups wrapper for asan-based fuzzing. 90 - cp examples/asan_cgroups/limit_memory.sh $out/bin/afl-cgroup 109 + cp utils/asan_cgroups/limit_memory.sh $out/bin/afl-cgroup 91 110 chmod +x $out/bin/afl-cgroup 92 111 substituteInPlace $out/bin/afl-cgroup \ 93 112 --replace "cgcreate" "${libcgroup}/bin/cgcreate" \ ··· 107 126 if [ -x $winePath ]; then break; fi 108 127 done 109 128 makeWrapperArgs="--set-default 'AFL_WINE_PATH' '$winePath'" \ 110 - wrapPythonProgramsIn $out/bin ${python.pkgs.pefile} 129 + wrapPythonProgramsIn $out/bin ${python3.pkgs.pefile} 111 130 ''; 112 131 113 - nativeInstallCheckInputs = [ perl file ]; 132 + nativeInstallCheckInputs = [ perl file cmocka ]; 114 133 doInstallCheck = true; 115 134 installCheckPhase = '' 135 + runHook preInstallCheck 136 + 116 137 # replace references to tools in build directory with references to installed locations 117 - substituteInPlace test/test.sh \ 138 + substituteInPlace test/test-qemu-mode.sh \ 118 139 --replace '../libcompcov.so' '`$out/bin/get-afl-qemu-libcompcov-so`' \ 140 + --replace '../afl-qemu-trace' '$out/bin/afl-qemu-trace' \ 141 + --replace '../afl-fuzz' '$out/bin/afl-fuzz' \ 142 + --replace '../qemu_mode/unsigaction/unsigaction32.so' '$out/lib/afl/unsigaction32.so' \ 143 + --replace '../qemu_mode/unsigaction/unsigaction64.so' '$out/lib/afl/unsigaction64.so' 144 + 145 + substituteInPlace test/test-libextensions.sh \ 119 146 --replace '../libdislocator.so' '`$out/bin/get-libdislocator-so`' \ 120 147 --replace '../libtokencap.so' '`$out/bin/get-libtokencap-so`' 121 - perl -pi -e 's|(?<!\.)(?<!-I)(\.\./)([^\s\/]+?)(?<!\.c)(?<!\.s?o)(?=\s)|\$out/bin/\2|g' test/test.sh 122 - cd test && ./test.sh 148 + substituteInPlace test/test-llvm.sh \ 149 + --replace '../afl-cmin.bash' '`$out/bin/afl-cmin.bash`' 150 + # perl -pi -e 's|(?<!\.)(?<!-I)(\.\./)([^\s\/]+?)(?<!\.c)(?<!\.s?o)(?=\s)|\$out/bin/\2|g' test/test.sh 151 + patchShebangs . 152 + cd test && ./test-all.sh 153 + 154 + runHook postInstallCheck 123 155 ''; 124 156 125 157 passthru = {
+2 -3
pkgs/tools/security/aflplusplus/libdislocator.nix
··· 6 6 7 7 src = aflplusplus.src; 8 8 postUnpack = "chmod -R +w ${aflplusplus.src.name}"; 9 - sourceRoot = "${aflplusplus.src.name}/libdislocator"; 9 + sourceRoot = "${aflplusplus.src.name}/utils/libdislocator"; 10 10 11 11 makeFlags = [ "PREFIX=$(out)" ]; 12 12 13 13 preInstall = '' 14 14 mkdir -p $out/lib/afl 15 - # issue is fixed upstream: https://github.com/AFLplusplus/AFLplusplus/commit/2a60ceb6944a7ca273057ddf64dcf837bf7f9521 16 - sed -i 's/README\.dislocator\.md/README\.md/g' Makefile 17 15 ''; 16 + 18 17 postInstall = '' 19 18 mkdir $out/bin 20 19 cat > $out/bin/get-libdislocator-so <<END
+2 -2
pkgs/tools/security/aflplusplus/libtokencap.nix
··· 6 6 7 7 src = aflplusplus.src; 8 8 postUnpack = "chmod -R +w ${aflplusplus.src.name}"; 9 - sourceRoot = "${aflplusplus.src.name}/libtokencap"; 9 + sourceRoot = "${aflplusplus.src.name}/utils/libtokencap"; 10 10 11 11 makeFlags = [ "PREFIX=$(out)" ]; 12 12 ··· 24 24 ''; 25 25 26 26 meta = with lib; { 27 - homepage = "https://github.com/vanhauser-thc/AFLplusplus"; 27 + homepage = "https://github.com/AFLplusplus/AFLplusplus"; 28 28 description = "strcmp & memcmp token capture library"; 29 29 license = lib.licenses.asl20; 30 30 maintainers = with maintainers; [ ris ];
+117 -48
pkgs/tools/security/aflplusplus/qemu.nix
··· 1 - { lib, stdenv, fetchurl, aflplusplus, python3, zlib, pkg-config, glib, perl 2 - , texinfo, libuuid, flex, bison, pixman, autoconf 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , aflplusplus 5 + , python3 6 + , zlib 7 + , pkg-config 8 + , glib 9 + , perl 10 + , texinfo 11 + , libuuid 12 + , flex 13 + , bison 14 + , pixman 15 + , meson 16 + , fetchFromGitHub 17 + , ninja 3 18 }: 4 19 5 20 let 6 - qemuName = "qemu-3.1.0"; 7 - cpuTarget = if stdenv.targetPlatform.system == "x86_64-linux" then "x86_64-linux-user" 21 + qemuName = "qemu-5.2.50"; 22 + cpuTarget = 23 + if stdenv.targetPlatform.system == "x86_64-linux" then "x86_64-linux-user" 8 24 else if stdenv.targetPlatform.system == "i686-linux" then "i386-linux-user" 9 25 else throw "aflplusplus: no support for ${stdenv.targetPlatform.system}!"; 10 26 in 11 27 stdenv.mkDerivation { 12 28 name = "aflplusplus-${qemuName}"; 13 29 14 - srcs = [ 15 - (fetchurl { 16 - url = "http://wiki.qemu.org/download/${qemuName}.tar.bz2"; 17 - sha256 = "08frr1fdjx8qcfh3fafn10kibdwbvkqqvfl7hpqbm7i9dg4f1zlq"; 18 - }) 19 - aflplusplus.src 20 - ]; 21 - 22 - sourceRoot = qemuName; 23 - 24 - postUnpack = '' 25 - chmod -R +w ${aflplusplus.src.name} 26 - for f in ${aflplusplus.src.name}/qemu_mode/patches/* ; do 27 - sed -E -i 's|(\.\./)+patches/([a-z-]+\.h)|\2|g' $f 28 - sed -E -i 's|\.\./\.\./config\.h|afl-config.h|g' $f 29 - sed -E -i 's|\.\./\.\./include/cmplog\.h|afl-cmplog.h|g' $f 30 - done 31 - cp ${aflplusplus.src.name}/qemu_mode/patches/*.h $sourceRoot/ 32 - cp ${aflplusplus.src.name}/types.h $sourceRoot/afl-types.h 33 - substitute ${aflplusplus.src.name}/config.h $sourceRoot/afl-config.h \ 34 - --replace "types.h" "afl-types.h" 35 - substitute ${aflplusplus.src.name}/include/cmplog.h $sourceRoot/afl-cmplog.h \ 36 - --replace "config.h" "afl-config.h" \ 37 - --replace "forkserver.h" "afl-forkserver.h" 38 - substitute ${aflplusplus.src.name}/include/forkserver.h $sourceRoot/afl-forkserver.h \ 39 - --replace "types.h" "afl-types.h" 40 - 41 - cat ${aflplusplus.src.name}/qemu_mode/patches/*.diff > all.patch 42 - ''; 30 + src = fetchFromGitHub { 31 + owner = "AFLplusplus"; 32 + repo = "qemuafl"; 33 + rev = "0569eff8a12dec73642b96757f6b5b51a618a03a"; 34 + sha256 = "sha256-nYWHyRfOH2p9znRxjxsiyw11uZuMBiuJfEc7FHM5X7M="; 35 + fetchSubmodules = true; 36 + }; 43 37 44 38 nativeBuildInputs = [ 45 - python3 perl pkg-config flex bison autoconf texinfo 39 + python3 40 + perl 41 + pkg-config 42 + flex 43 + bison 44 + meson 45 + texinfo 46 + ninja 46 47 ]; 47 48 48 49 buildInputs = [ 49 - zlib glib pixman libuuid 50 + zlib 51 + glib 52 + pixman 53 + libuuid 50 54 ]; 51 55 52 56 enableParallelBuilding = true; 53 57 54 - patches = [ 55 - # patches extracted from aflplusplus source 56 - "../all.patch" 57 - # nix-specific patches to make installation more well-behaved 58 - ./qemu-no-etc-install.patch 59 - ]; 58 + dontUseMesonConfigure = true; # meson's configurePhase isn't compatible with qemu build 59 + preBuild = "cd build"; 60 + preConfigure = '' 61 + # this script isn't marked as executable b/c it's indirectly used by meson. Needed to patch its shebang 62 + chmod +x ./scripts/shaderinclude.pl 63 + patchShebangs . 64 + ''; 60 65 61 66 configureFlags = 62 - [ "--disable-system" 67 + [ 68 + "--target-list=${stdenv.hostPlatform.uname.processor}-linux-user" 69 + "--sysconfdir=/etc" 70 + "--localstatedir=/var" 71 + "--meson=meson" 72 + "--disable-system" 63 73 "--enable-linux-user" 74 + "--enable-pie" 75 + "--audio-drv-list=" 76 + "--disable-blobs" 77 + "--disable-bochs" 78 + "--disable-brlapi" 79 + "--disable-bsd-user" 80 + "--disable-bzip2" 81 + "--disable-cap-ng" 82 + "--disable-cloop" 83 + "--disable-curl" 84 + "--disable-curses" 85 + "--disable-dmg" 86 + "--disable-fdt" 87 + "--disable-gcrypt" 88 + "--disable-glusterfs" 89 + "--disable-gnutls" 64 90 "--disable-gtk" 91 + "--disable-guest-agent" 92 + "--disable-iconv" 93 + "--disable-libiscsi" 94 + "--disable-libnfs" 95 + "--disable-libssh" 96 + "--disable-libusb" 97 + "--disable-linux-aio" 98 + "--disable-live-block-migration" 99 + "--disable-lzo" 100 + "--disable-nettle" 101 + "--disable-numa" 102 + "--disable-opengl" 103 + "--disable-parallels" 104 + "--disable-plugins" 105 + "--disable-qcow1" 106 + "--disable-qed" 107 + "--disable-rbd" 108 + "--disable-rdma" 109 + "--disable-replication" 65 110 "--disable-sdl" 111 + "--disable-seccomp" 112 + "--disable-sheepdog" 113 + "--disable-smartcard" 114 + "--disable-snappy" 115 + "--disable-spice" 116 + "--disable-system" 117 + "--disable-tools" 118 + "--disable-tpm" 119 + "--disable-usb-redir" 120 + "--disable-vde" 121 + "--disable-vdi" 122 + "--disable-vhost-crypto" 123 + "--disable-vhost-kernel" 124 + "--disable-vhost-net" 125 + "--disable-vhost-scsi" 126 + "--disable-vhost-user" 127 + "--disable-vhost-vdpa" 128 + "--disable-vhost-vsock" 129 + "--disable-virglrenderer" 130 + "--disable-virtfs" 66 131 "--disable-vnc" 67 - "--disable-kvm" 68 - "--target-list=${cpuTarget}" 69 - "--enable-pie" 70 - "--sysconfdir=/etc" 71 - "--localstatedir=/var" 132 + "--disable-vnc-jpeg" 133 + "--disable-vnc-png" 134 + "--disable-vnc-sasl" 135 + "--disable-vte" 136 + "--disable-vvfat" 137 + "--disable-xen" 138 + "--disable-xen-pci-passthrough" 139 + "--disable-xfsctl" 140 + "--without-default-devices" 72 141 ]; 73 142 74 143 meta = with lib; { 75 - homepage = "https://www.qemu.org/"; 144 + homepage = "https://github.com/AFLplusplus/qemuafl"; 76 145 description = "Fork of QEMU with AFL++ instrumentation support"; 77 146 license = licenses.gpl2Plus; 78 147 maintainers = with maintainers; [ ris ];
+6 -1
pkgs/tools/text/dirdiff/default.nix
··· 23 23 done 24 24 ''; 25 25 26 + env = { 27 + NIX_CFLAGS_COMPILE = "-DUSE_INTERP_RESULT"; 28 + NIX_LDFLAGS = "-ltcl"; 29 + }; 30 + 26 31 # If we don't create the directories ourselves, then 'make install' creates 27 32 # files named 'bin' and 'lib'. 28 33 preInstall = '' ··· 54 59 homepage = "https://www.samba.org/ftp/paulus/"; 55 60 license = licenses.gpl2Plus; 56 61 maintainers = with maintainers; [ khumba ]; 57 - platforms = platforms.linux; 62 + platforms = platforms.unix; 58 63 }; 59 64 }
+6 -11
pkgs/top-level/all-packages.nix
··· 1416 1416 }; 1417 1417 1418 1418 aflplusplus = callPackage ../tools/security/aflplusplus { 1419 - clang = clang_9; 1420 - llvm = llvm_9; 1421 - python = python3; 1419 + clang = clang_15; 1420 + llvm = llvm_15; 1421 + llvmPackages = llvmPackages_15; 1422 1422 wine = null; 1423 1423 }; 1424 1424 ··· 6944 6944 6945 6945 dsp = callPackage ../tools/audio/dsp { }; 6946 6946 6947 - dirdiff = callPackage ../tools/text/dirdiff { 6948 - tcl = tcl-8_5; 6949 - tk = tk-8_5; 6950 - }; 6947 + dirdiff = callPackage ../tools/text/dirdiff { }; 6951 6948 6952 6949 dwdiff = callPackage ../applications/misc/dwdiff { }; 6953 6950 ··· 20731 20728 }; 20732 20729 glfw2 = callPackage ../development/libraries/glfw/2.x.nix { }; 20733 20730 glfw3 = callPackage ../development/libraries/glfw/3.x.nix { 20734 - inherit (darwin.apple_sdk.frameworks) Cocoa Kernel; 20731 + inherit (darwin.apple_sdk.frameworks) Carbon Cocoa Kernel OpenGL; 20735 20732 }; 20736 20733 20737 20734 glibc = callPackage ../development/libraries/glibc { ··· 29354 29351 29355 29352 alot = callPackage ../applications/networking/mailreaders/alot { }; 29356 29353 29357 - alpine = callPackage ../applications/networking/mailreaders/alpine { 29358 - tcl = tcl-8_5; 29359 - }; 29354 + alpine = callPackage ../applications/networking/mailreaders/alpine { }; 29360 29355 29361 29356 msgviewer = callPackage ../applications/networking/mailreaders/msgviewer { }; 29362 29357