<commit_before>{ lib
, stdenv
, fetchurl
, freetype
, fribidi
, libICE
, libSM
, libXaw
, libXext
, libXft
, libXinerama
, libXmu
, libXpm
, libXrandr
, libXrender
, libXt
, pkg-config
, xorgproto
}:

stdenv.mkDerivation rec {
  pname = "oroborus";
  version = "2.0.20";

  src = fetchurl {
    url = "mirror://debian/pool/main/o/oroborus/oroborus_${version}.tar.gz";
    hash = "sha256-UiClQLz2gSxnc/vlg9nqP1T0UsusVb7cqt66jDqae4k=a";
  };

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [
    freetype
    fribidi
    libICE
    libSM
    libXaw
    libXext
    libXft
    libXinerama
    libXmu
    libXpm
    libXrandr
    libXrender
    libXt
    xorgproto
  ];

  meta = with lib; {
    homepage = "https://web.archive.org/web/20191129172107/https://www.oroborus.org/";
    description = "A really minimalistic X window manager";
    license = licenses.gpl2Plus;
    maintainers = [ maintainers.AndersonTorres ];
    platforms = platforms.linux;
  };
}<commit_msg>oroborus: add -fcommon workaround<commit_after>{ lib
, stdenv
, fetchurl
, freetype
, fribidi
, libICE
, libSM
, libXaw
, libXext
, libXft
, libXinerama
, libXmu
, libXpm
, libXrandr
, libXrender
, libXt
, pkg-config
, xorgproto
}:

stdenv.mkDerivation rec {
  pname = "oroborus";
  version = "2.0.20";

  src = fetchurl {
    url = "mirror://debian/pool/main/o/oroborus/oroborus_${version}.tar.gz";
    hash = "sha256-UiClQLz2gSxnc/vlg9nqP1T0UsusVb7cqt66jDqae4k=a";
  };

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [
    freetype
    fribidi
    libICE
    libSM
    libXaw
    libXext
    libXft
    libXinerama
    libXmu
    libXpm
    libXrandr
    libXrender
    libXt
    xorgproto
  ];

  # Workaround build failure on -fno-common toolchains:
  #   ld: workspaces.o:src/keyboard.h:93: multiple definition of
  #     `NumLockMask'; client.o:src/keyboard.h:93: first defined here
  NIX_CFLAGS_COMPILE = "-fcommon";

  meta = with lib; {
    homepage = "https://web.archive.org/web/20191129172107/https://www.oroborus.org/";
    description = "A really minimalistic X window manager";
    license = licenses.gpl2Plus;
    maintainers = [ maintainers.AndersonTorres ];
    platforms = platforms.linux;
  };
}
{'fraction_non_alphanumeric': 0.11494775102226261, 'fraction_numerical': 0.029077691958200817, 'mean_word_length': 3.0552486187845305, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1367220', 'n_tokens_mistral': 925, 'n_tokens_neox': 879, 'n_words': 153}