Unverified Commit a2a0f5f6 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #293949 from TheRealKeto/update/editorconfig-core-c

editorconfig-core-c: 0.12.5 -> 0.12.7
parents aab82e1d e2cd8a7a
Loading
Loading
Loading
Loading
+13 −16
Original line number Diff line number Diff line
{ lib, stdenv, fetchpatch, fetchFromGitHub, cmake, pcre2, doxygen }:

stdenv.mkDerivation rec {
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pcre2
, doxygen
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "editorconfig-core-c";
  version = "0.12.5";
  version = "0.12.7";

  outputs = [ "out" "dev" ];

  src = fetchFromGitHub {
    owner = "editorconfig";
    repo = "editorconfig-core-c";
    rev = "v${version}";
    sha256 = "sha256-4p8bomeXtA+zJ3IvWW0UZixdMnjYWYu7yeA6JUwwRb8=";
    rev = "v${finalAttrs.version}";
    hash = "sha256-uKukgQPKIx+zJPf08MTYEtoBiWeVcQmZnjWl4Zk9xaY=";
    fetchSubmodules = true;
  };

  patches = [
    # Fox broken paths in pkg-config.
    # https://github.com/editorconfig/editorconfig-core-c/pull/81
    (fetchpatch {
      url = "https://github.com/editorconfig/editorconfig-core-c/commit/e0ead79d3bb4179fe9bccd3e5598ed47cc0863a3.patch";
      sha256 = "t/DiPVyyYoMwFpNG6sD+rLWHheFCbMaILXyey6inGdc=";
    })
  ];

  nativeBuildInputs = [
    cmake
    doxygen
@@ -53,4 +50,4 @@ stdenv.mkDerivation rec {
    platforms = platforms.unix;
    mainProgram = "editorconfig";
  };
}
})