diff options
author | Graham Christensen <graham@grahamc.com> | 2018-04-30 20:52:09 -0400 |
---|---|---|
committer | Graham Christensen <graham@grahamc.com> | 2018-04-30 20:52:09 -0400 |
commit | 07c025424ee0685801ed76cc6b9bd243e435a6e7 (patch) | |
tree | a72c94a76f38d581e678d4c7e923aac06eb5d8bf /pkgs/tools/text | |
parent | dc488634d96cca77d243ef6565f4cc03e2df9503 (diff) | |
download | nixpkgs-07c025424ee0685801ed76cc6b9bd243e435a6e7.tar nixpkgs-07c025424ee0685801ed76cc6b9bd243e435a6e7.tar.gz nixpkgs-07c025424ee0685801ed76cc6b9bd243e435a6e7.tar.bz2 nixpkgs-07c025424ee0685801ed76cc6b9bd243e435a6e7.tar.lz nixpkgs-07c025424ee0685801ed76cc6b9bd243e435a6e7.tar.xz nixpkgs-07c025424ee0685801ed76cc6b9bd243e435a6e7.tar.zst nixpkgs-07c025424ee0685801ed76cc6b9bd243e435a6e7.zip |
xmlformat: init at 1.04
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r-- | pkgs/tools/text/xml/xmlformat/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/text/xml/xmlformat/default.nix b/pkgs/tools/text/xml/xmlformat/default.nix new file mode 100644 index 00000000000..5982aa3828e --- /dev/null +++ b/pkgs/tools/text/xml/xmlformat/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchurl, perl }: +stdenv.mkDerivation rec { + name = "xmlformat-${version}"; + 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/"; + license = stdenv.lib.licenses.bsd3; + platforms = stdenv.lib.platforms.all; + }; +} |