Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, flex }: 2 3stdenv.mkDerivation rec { 4 pname = "xmlindent"; 5 version = "0.2.17"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/project/xmlindent/xmlindent/${version}/${pname}-${version}.tar.gz"; 9 sha256 = "0k15rxh51a5r4bvfm6c4syxls8al96cx60a9mn6pn24nns3nh3rs"; 10 }; 11 12 buildInputs = [ flex ]; 13 14 preConfigure = '' 15 substituteInPlace Makefile --replace "PREFIX=/usr/local" "PREFIX=$out" 16 ''; 17 18 meta = { 19 description = "XML stream reformatter"; 20 homepage = "https://xmlindent.sourceforge.net/"; 21 license = lib.licenses.gpl3; 22 platforms = lib.platforms.linux; 23 maintainers = [ ]; 24 }; 25}