Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bafd695ca296
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 00e6e395d38b
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on May 1, 2018

  1. xmlformat: init at 1.04

    (cherry picked from commit 07c0254)
    grahamc committed May 1, 2018

    Unverified

    The committer email address is not verified.
    Copy the full SHA
    00e6e39 View commit details
Showing with 30 additions and 0 deletions.
  1. +28 −0 pkgs/tools/text/xml/xmlformat/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
28 changes: 28 additions & 0 deletions pkgs/tools/text/xml/xmlformat/default.nix
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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 { };