Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 22 lines 613 B view raw
1{ stdenv, lib, fetchurl, cmake }: 2 3stdenv.mkDerivation rec { 4 pname = "astyle"; 5 version = "3.5.2"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2"; 9 hash = "sha256-2wwKctQOZAwgHjnmRni2/jFvN+fvBfZ84rItVVwKbRI="; 10 }; 11 12 nativeBuildInputs = [ cmake ]; 13 14 meta = with lib; { 15 description = "Source code indenter, formatter, and beautifier for C, C++, C# and Java"; 16 mainProgram = "astyle"; 17 homepage = "https://astyle.sourceforge.net/"; 18 license = licenses.lgpl3; 19 maintainers = with maintainers; [ carlossless ]; 20 platforms = platforms.unix; 21 }; 22}