nixpkgs/pkgs/tools/virtualization/cloud-init/default.nix
Bjørn Forsman bd01fad0ed Captialize meta.description of all packages
In line with the Nixpkgs manual.

A mechanical change, done with this command:

  find pkgs -name "*.nix" | \
      while read f; do \
          sed -e 's/description\s*=\s*"\([a-z]\)/description = "\u\1/' -i "$f"; \
      done

I manually skipped some:

* Descriptions starting with an abbreviation, a user name or package name
* Frequently generated expressions (haskell-packages.nix)
2016-06-20 13:55:52 +02:00

34 lines
995 B
Nix

{ lib, pythonPackages, fetchurl }:
let version = "0.7.6";
in pythonPackages.buildPythonApplication rec {
name = "cloud-init-${version}";
namePrefix = "";
src = fetchurl {
url = "https://launchpad.net/cloud-init/trunk/${version}/+download/cloud-init-${version}.tar.gz";
sha256 = "1mry5zdkfaq952kn1i06wiggc66cqgfp6qgnlpk0mr7nnwpd53wy";
};
patchPhase = ''
patchShebangs ./tools
substituteInPlace setup.py \
--replace /usr $out \
--replace /etc $out/etc \
--replace /lib/systemd $out/lib/systemd \
--replace 'self.init_system = ""' 'self.init_system = "systemd"'
'';
propagatedBuildInputs = with pythonPackages; [ cheetah jinja2 prettytable
oauth pyserial configobj pyyaml argparse requests jsonpatch ];
meta = {
homepage = http://cloudinit.readthedocs.org;
description = "Provides configuration and customization of cloud instance";
maintainers = [ lib.maintainers.madjar ];
platforms = lib.platforms.all;
};
}