8 stdenv.mkDerivation rec {
12 src = fetchFromGitHub {
16 fetchSubmodules = true;
17 hash = "sha256-TeXOzfb1Nu6hz9l6dXGZY+xboscPapKm0Z264hv1Aww=";
22 name = "gcc-13.patch";
23 url = "https://github.com/zeux/qgrep/commit/8810ab153ec59717a5d7537b3e7812c01cd80848.patch";
24 hash = "sha256-lCMvpuLZluT6Rw8RFZ2uY9bffPBoq6sRVWYLUmeXfOg=";
28 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
29 darwin.apple_sdk.frameworks.CoreServices
30 darwin.apple_sdk.frameworks.CoreFoundation
33 env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.hostPlatform.isDarwin [
34 "-Wno-error=unused-command-line-argument"
35 "-Wno-error=unqualified-std-cast-call"
41 install -Dm755 qgrep $out/bin/qgrep
47 description = "Fast regular expression grep for source code with incremental index updates";
48 mainProgram = "qgrep";
49 homepage = "https://github.com/zeux/qgrep";
50 license = licenses.mit;
51 maintainers = [ maintainers.yrashk ];
52 platforms = platforms.all;