mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
Merge pull request #39785 from grahamc/xmlformat-init
xmlformat: init at 1.04
This commit is contained in:
commit
8cb0252b1e
28
pkgs/tools/text/xml/xmlformat/default.nix
Normal file
28
pkgs/tools/text/xml/xmlformat/default.nix
Normal file
@ -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;
|
||||||
|
};
|
||||||
|
}
|
@ -5736,6 +5736,8 @@ with pkgs;
|
|||||||
|
|
||||||
xml2 = callPackage ../tools/text/xml/xml2 { };
|
xml2 = callPackage ../tools/text/xml/xml2 { };
|
||||||
|
|
||||||
|
xmlformat = callPackage ../tools/text/xml/xmlformat { };
|
||||||
|
|
||||||
xmlroff = callPackage ../tools/typesetting/xmlroff { };
|
xmlroff = callPackage ../tools/typesetting/xmlroff { };
|
||||||
|
|
||||||
xmloscopy = callPackage ../tools/text/xml/xmloscopy { };
|
xmloscopy = callPackage ../tools/text/xml/xmloscopy { };
|
||||||
|
Loading…
Reference in New Issue
Block a user