Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, perl }: 2stdenv.mkDerivation rec { 3 pname = "xmlformat"; 4 version = "1.04"; 5 6 src = fetchurl { 7 url = "http://www.kitebird.com/software/xmlformat/xmlformat-${version}.tar.gz"; 8 sha256 = "1vwgzn4ha0az7dx0cyc6dx5nywwrx9gxhyh08mvdcq27wjbh79vi"; 9 }; 10 11 buildInputs = [ perl ]; 12 buildPhase = '' 13 patchShebangs ./xmlformat.pl 14 ''; 15 16 installPhase = '' 17 mkdir -p $out/bin 18 cp ./xmlformat.pl $out/bin/xmlformat 19 cp ./LICENSE $out/ 20 ''; 21 22 meta = { 23 description = "a configurable formatter (or 'pretty-printer') for XML documents"; 24 homepage = "http://www.kitebird.com/software/xmlformat/"; 25 license = lib.licenses.bsd3; 26 platforms = lib.platforms.all; 27 }; 28}