From d4b3c86a08e9090e2c700db7af23ac3c5821babe Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Wed, 17 May 2017 16:52:43 +0800 Subject: [PATCH] editorconfig-core-c: minor cleanups --- .../tools/misc/editorconfig-core-c/default.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pkgs/development/tools/misc/editorconfig-core-c/default.nix b/pkgs/development/tools/misc/editorconfig-core-c/default.nix index aae4a2fd5a12..5509ededb070 100644 --- a/pkgs/development/tools/misc/editorconfig-core-c/default.nix +++ b/pkgs/development/tools/misc/editorconfig-core-c/default.nix @@ -1,21 +1,21 @@ { stdenv, fetchgit, cmake, pcre, doxygen }: stdenv.mkDerivation rec { - name = "editorconfig-core-c-${meta.version}"; src = fetchgit { url = "https://github.com/editorconfig/editorconfig-core-c.git"; - rev = "d1c2c881158dfb9faa4498a0b19593dcd105d6b8"; - fetchSubmodules = true; + rev = "v${meta.version}"; sha256 = "0awpb63ci85kal3pnlj2b54bay8igj1rbc13d8gqkvidlb51nnx4"; + fetchSubmodules = true; inherit name; }; - buildInputs = [ cmake pcre doxygen ]; + buildInputs = [ pcre ]; + nativeBuildInputs = [ cmake doxygen ]; meta = with stdenv.lib; { - homepage = "http://editorconfig.org/"; + homepage = http://editorconfig.org/; description = "EditorConfig core library written in C"; longDescription = '' 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 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 ]; version = "0.12.1"; - maintainers = [ maintainers.dochang ]; + maintainers = with maintainers; [ dochang ]; platforms = platforms.unix; }; - }