nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 pcre2,
7 doxygen,
8}:
9
10stdenv.mkDerivation (finalAttrs: {
11 pname = "editorconfig-core-c";
12 version = "0.12.9";
13
14 outputs = [
15 "out"
16 "dev"
17 ];
18
19 src = fetchFromGitHub {
20 owner = "editorconfig";
21 repo = "editorconfig-core-c";
22 rev = "v${finalAttrs.version}";
23 hash = "sha256-myJNJxKwgmgm+P2MqnYmW8OC0oYcInL+Suyf/xwX9xo=";
24 fetchSubmodules = true;
25 };
26
27 nativeBuildInputs = [
28 cmake
29 doxygen
30 ];
31
32 buildInputs = [
33 pcre2
34 ];
35
36 # Multiple doxygen can not generate man pages in the same base directory in
37 # parallel: https://github.com/doxygen/doxygen/issues/6293
38 enableParallelBuilding = false;
39
40 meta = with lib; {
41 homepage = "https://editorconfig.org/";
42 description = "EditorConfig core library written in C";
43 longDescription = ''
44 EditorConfig makes it easy to maintain the correct coding style when
45 switching between different text editors and between different
46 projects. The EditorConfig project maintains a file format and plugins
47 for various text editors which allow this file format to be read and used
48 by those editors. For information on the file format and supported text
49 editors, see the EditorConfig website.
50 '';
51 downloadPage = "https://github.com/editorconfig/editorconfig-core-c";
52 license = with licenses; [
53 bsd2
54 bsd3
55 ];
56 maintainers = with maintainers; [ dochang ];
57 platforms = platforms.unix;
58 mainProgram = "editorconfig";
59 };
60})