2019-11-27 11:38:17 -08:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, python }:
|
2013-08-31 00:42:20 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-05-14 08:18:17 -07:00
|
|
|
name = "${product}-${version}";
|
|
|
|
product = "uncrustify";
|
2020-05-24 06:03:25 -07:00
|
|
|
version = "0.71.0";
|
2013-08-31 00:42:20 -07:00
|
|
|
|
2016-11-18 14:45:35 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = product;
|
|
|
|
repo = product;
|
|
|
|
rev = name;
|
2020-05-24 06:03:25 -07:00
|
|
|
sha256 = "1wyhkhn000yad94fnjj61h7lyvan6hig8wh7jxlnyp5wxdwki0pj";
|
2013-08-31 00:42:20 -07:00
|
|
|
};
|
|
|
|
|
2019-11-27 11:38:17 -08:00
|
|
|
nativeBuildInputs = [ cmake python ];
|
2016-11-18 14:45:35 -08:00
|
|
|
|
2017-11-17 14:50:00 -08:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2013-08-31 00:42:20 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://uncrustify.sourceforge.net/";
|
2013-08-31 00:42:20 -07:00
|
|
|
license = licenses.gpl2Plus;
|
2015-04-03 21:55:02 -07:00
|
|
|
platforms = platforms.unix;
|
2013-08-31 00:42:20 -07:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|