nixpkgs/pkgs/tools/text/xml/xmlformat/default.nix

29 lines
712 B
Nix
Raw Normal View History

2021-01-15 09:19:50 +00:00
{ lib, stdenv, fetchurl, perl }:
2018-05-01 01:52:09 +01:00
stdenv.mkDerivation rec {
pname = "xmlformat";
2018-05-01 01:52:09 +01:00
version = "1.04";
src = fetchurl {
url = "http://www.kitebird.com/software/xmlformat/xmlformat-${version}.tar.gz";
sha256 = "1vwgzn4ha0az7dx0cyc6dx5nywwrx9gxhyh08mvdcq27wjbh79vi";
};
buildInputs = [ perl ];
buildPhase = ''
patchShebangs ./xmlformat.pl
'';
installPhase = ''
mkdir -p $out/bin
cp ./xmlformat.pl $out/bin/xmlformat
cp ./LICENSE $out/
'';
meta = {
description = "a configurable formatter (or 'pretty-printer') for XML documents";
homepage = "http://www.kitebird.com/software/xmlformat/";
2021-01-15 09:19:50 +00:00
license = lib.licenses.bsd3;
platforms = lib.platforms.all;
2018-05-01 01:52:09 +01:00
};
}