|
|
|
@ -1,15 +1,19 @@ |
|
|
|
|
{ stdenv, fetchurl }: |
|
|
|
|
{ stdenv, fetchFromGitHub, cmake }: |
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec { |
|
|
|
|
name = "${product}-${version}"; |
|
|
|
|
product = "uncrustify"; |
|
|
|
|
version = "0.63"; |
|
|
|
|
version = "0.64"; |
|
|
|
|
|
|
|
|
|
src = fetchurl { |
|
|
|
|
url = "mirror://sourceforge/uncrustify/${product}-${version}.tar.gz"; |
|
|
|
|
sha256 = "1qravjzmips3m7asbsd0qllmprrl1rshjlmnfq68w84d38sb3yyz"; |
|
|
|
|
src = fetchFromGitHub { |
|
|
|
|
owner = product; |
|
|
|
|
repo = product; |
|
|
|
|
rev = name; |
|
|
|
|
sha256 = "0gvgv44aqrh7cmj4ji8dpbhp47cklvajlc3s9d9z24x96dhp2v97"; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ]; |
|
|
|
|
|
|
|
|
|
meta = with stdenv.lib; { |
|
|
|
|
description = "Source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA"; |
|
|
|
|
homepage = http://uncrustify.sourceforge.net/; |
|
|
|
|