editorconfig-core-c: minor cleanups

This commit is contained in:
Peter Hoeg 2017-05-17 16:52:43 +08:00
parent 24d4f1a6ae
commit d4b3c86a08

View File

@ -1,21 +1,21 @@
{ stdenv, fetchgit, cmake, pcre, doxygen }: { stdenv, fetchgit, cmake, pcre, doxygen }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "editorconfig-core-c-${meta.version}"; name = "editorconfig-core-c-${meta.version}";
src = fetchgit { src = fetchgit {
url = "https://github.com/editorconfig/editorconfig-core-c.git"; url = "https://github.com/editorconfig/editorconfig-core-c.git";
rev = "d1c2c881158dfb9faa4498a0b19593dcd105d6b8"; rev = "v${meta.version}";
fetchSubmodules = true;
sha256 = "0awpb63ci85kal3pnlj2b54bay8igj1rbc13d8gqkvidlb51nnx4"; sha256 = "0awpb63ci85kal3pnlj2b54bay8igj1rbc13d8gqkvidlb51nnx4";
fetchSubmodules = true;
inherit name; inherit name;
}; };
buildInputs = [ cmake pcre doxygen ]; buildInputs = [ pcre ];
nativeBuildInputs = [ cmake doxygen ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = "http://editorconfig.org/"; homepage = http://editorconfig.org/;
description = "EditorConfig core library written in C"; description = "EditorConfig core library written in C";
longDescription = '' longDescription = ''
EditorConfig makes it easy to maintain the correct coding style when EditorConfig makes it easy to maintain the correct coding style when
@ -25,11 +25,10 @@ stdenv.mkDerivation rec {
by those editors. For information on the file format and supported text by those editors. For information on the file format and supported text
editors, see the EditorConfig website. editors, see the EditorConfig website.
''; '';
downloadPage = "https://github.com/editorconfig/editorconfig-core-c"; downloadPage = https://github.com/editorconfig/editorconfig-core-c;
license = with licenses; [ bsd2 bsd3 ]; license = with licenses; [ bsd2 bsd3 ];
version = "0.12.1"; version = "0.12.1";
maintainers = [ maintainers.dochang ]; maintainers = with maintainers; [ dochang ];
platforms = platforms.unix; platforms = platforms.unix;
}; };
} }