<commit_before>{ stdenv
, cmake
, fetchurl
, ninja
, unzip

, mesa
, xorg
}:

let
  version = "3.2.1";
in
stdenv.mkDerivation rec {
  name = "glfw-${version}";

  src = fetchurl {
    url = "https://github.com/glfw/glfw/releases/download/"
      + "${version}/${name}.zip";
    sha256 = "b7d55e13e07095119e7d5f6792586dd0849c9fcdd867d49a4a5ac31f982f7326";
  };

  nativeBuildInputs = [
    cmake
    ninja
    unzip
  ];

  buildInputs = [
    mesa
    xorg.kbproto
    xorg.libX11
    xorg.libXcursor
    xorg.libXinerama
    xorg.libXrandr
    xorg.libXrender
    xorg.randrproto
    xorg.renderproto
    xorg.xproto
  ];

  cmakeFlags = [
    "-DBUILD_SHARED_LIBS=ON"
  ];

  meta = with stdenv.lib; {
    description = "Library for creating OpenGL contexts and managing input";
    homepage = "http://www.glfw.org/";
    license = licenses.zlib;
    maintainers = with maintainers; [
      wkennington
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}<commit_msg>glfw: use opengl-dummy instead of mesa & update xorg references<commit_after>{ stdenv
, cmake
, fetchurl
, lib
, ninja
, unzip

, kbproto
, libx11
, libxcursor
, libxinerama
, libxrandr
, libxrender
, opengl-dummy
, randrproto
, renderproto
, xproto
}:

let
  version = "3.2.1";
in
stdenv.mkDerivation rec {
  name = "glfw-${version}";

  src = fetchurl {
    url = "https://github.com/glfw/glfw/releases/download/"
      + "${version}/${name}.zip";
    sha256 = "b7d55e13e07095119e7d5f6792586dd0849c9fcdd867d49a4a5ac31f982f7326";
  };

  nativeBuildInputs = [
    cmake
    ninja
    unzip
  ];

  buildInputs = [
    kbproto
    libx11
    libxcursor
    libxinerama
    libxrandr
    libxrender
    opengl-dummy
    randrproto
    renderproto
    xproto
  ];

  cmakeFlags = [
    "-DBUILD_SHARED_LIBS=ON"
  ];

  meta = with lib; {
    description = "Library for creating OpenGL contexts and managing input";
    homepage = "http://www.glfw.org/";
    license = licenses.zlib;
    maintainers = with maintainers; [
      wkennington
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}
{'fraction_non_alphanumeric': 0.11516314779270634, 'fraction_numerical': 0.053742802303262956, 'mean_word_length': 2.74326750448833, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '646860', 'n_tokens_mistral': 883, 'n_tokens_neox': 818, 'n_words': 145}