Skip to content

Commit

Permalink
xmlformat: init at 1.04
Browse files Browse the repository at this point in the history
(cherry picked from commit 07c0254)
  • Loading branch information
grahamc committed May 1, 2018
1 parent bafd695 commit 00e6e39
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions 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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -5574,6 +5574,8 @@ with pkgs;

xml2 = callPackage ../tools/text/xml/xml2 { };

xmlformat = callPackage ../tools/text/xml/xmlformat { };

xmlroff = callPackage ../tools/typesetting/xmlroff { };

xmloscopy = callPackage ../tools/text/xml/xmloscopy { };
Expand Down

0 comments on commit 00e6e39

Please sign in to comment.