2016-11-18 22:45:35 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake }:
|
2013-08-31 08:42:20 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-05-14 16:18:17 +01:00
|
|
|
name = "${product}-${version}";
|
|
|
|
product = "uncrustify";
|
2018-05-20 18:42:20 +01:00
|
|
|
version = "0.67";
|
2013-08-31 08:42:20 +01:00
|
|
|
|
2016-11-18 22:45:35 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = product;
|
|
|
|
repo = product;
|
|
|
|
rev = name;
|
2018-05-20 18:42:20 +01:00
|
|
|
sha256 = "0hf8c93aj1hjg6cc77x6p7nf7ddp8mn4b6a9gpcrvmx8w81afpd3";
|
2013-08-31 08:42:20 +01:00
|
|
|
};
|
|
|
|
|
2016-11-18 22:45:35 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2017-11-17 22:50:00 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2013-08-31 08:42:20 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA";
|
|
|
|
homepage = http://uncrustify.sourceforge.net/;
|
|
|
|
license = licenses.gpl2Plus;
|
2015-04-04 05:55:02 +01:00
|
|
|
platforms = platforms.unix;
|
2013-08-31 08:42:20 +01:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|