mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
29 lines
721 B
Nix
29 lines
721 B
Nix
{ stdenv, fetchurl, perl }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "xmlformat";
|
|
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;
|
|
};
|
|
}
|