diff --git a/pkgs/development/tools/misc/editorconfig-core-c/default.nix b/pkgs/development/tools/misc/editorconfig-core-c/default.nix index aae4a2fd5a1..5509ededb07 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; }; - }