1 { lib, stdenv, fetchurl, flex }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/project/xmlindent/xmlindent/${version}/${pname}-${version}.tar.gz";
9 sha256 = "0k15rxh51a5r4bvfm6c4syxls8al96cx60a9mn6pn24nns3nh3rs";
12 buildInputs = [ flex ];
15 substituteInPlace Makefile --replace "PREFIX=/usr/local" "PREFIX=$out"
19 description = "XML stream reformatter";
20 mainProgram = "xmlindent";
21 homepage = "https://xmlindent.sourceforge.net/";
22 license = lib.licenses.gpl3;
23 platforms = lib.platforms.linux;