depot/third_party/nixpkgs/pkgs/development/tools/misc/astyle/default.nix

23 lines
611 B
Nix
Raw Normal View History

{ stdenv, lib, fetchurl, cmake }:
stdenv.mkDerivation rec {
pname = "astyle";
version = "3.5";
src = fetchurl {
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2";
hash = "sha256-3vwct7+oY77EcOg2wldDmhGZyiyLE6ZSoyf9eMj1kjw=";
};
nativeBuildInputs = [ cmake ];
meta = with lib; {
description = "Source code indenter, formatter, and beautifier for C, C++, C# and Java";
mainProgram = "astyle";
homepage = "https://astyle.sourceforge.net/";
license = licenses.lgpl3;
maintainers = with maintainers; [ carlossless ];
platforms = platforms.unix;
};
}