Skip to main content

Buildout recipe for creating Nix expressions from eggs list

Project description

collective.recipe.nix

This is an experimental buildout recipe for creating nix expression from a buildout eggs list. This is work in progress. Please, contribute.

This only works, for now, when all packages are available at PyPI.

Example of usage

At first, define ./default.nix with buildout:

with import <nixpkgs> {}; {
  myEnv = stdenv.mkDerivation {
    name = "myEnv";
    buildInputs = [
      pythonPackages.readline
      pythonPackages.buildout
    ];
    shellHook = ''
      export SSL_CERT_FILE=~/.nix-profile/etc/ca-bundle.crt
    '';
  };
}

And example ./buildout.cfg:

[buildout]
extends = https://dist.plone.org/release/4-latest/versions.cfg
parts =
    plone
    zest.releaser
develop = .
versions = versions

[instance]
recipe = plone.recipe.zope2instance
eggs = Plone
user = admin:admin

[plone]
recipe = collective.recipe.nix
eggs =
    ${instance:eggs}
    plone.recipe.zope2instance

[zest.releaser]
recipe = collective.recipe.nix
eggs = zest.releaser

[versions]
zc.buildout =
setuptools =

Run the buildout:

$ nix-shell --run buildout

Now you should be able to run zest.releaser with:

$ nix-shell zest.releaser.nix --run fullrelease

And launching python with all Plone dependencies (after removing buildout created site.py to remove references from buildout installed eggs) with:

$ rm -f parts/instance/site.py parts/instance/site.pyc
$ nix-shell plone.nix --run python

And Plone could be started by entering the following lines into the interpreter:

import plone.recipe.zope2instance.ctl
plone.recipe.zope2instance.ctl.main(['-C', 'parts/instance/etc/zope.conf', 'fg'])

Changelog

0.1.1 (2015-07-08)

  • Add support for plone.app.ldap [datakurre]

0.1.0 (2015-07-08)

  • Proof of concept release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collective.recipe.nix-0.1.1.zip (10.4 kB view details)

Uploaded Source

File details

Details for the file collective.recipe.nix-0.1.1.zip.

File metadata

File hashes

Hashes for collective.recipe.nix-0.1.1.zip
Algorithm Hash digest
SHA256 fc9657d2e0726dd9fa0bada98d6ca302ee51bcbfbba7825efe17aeb6cbc86732
MD5 863c170b7d1f25062d1c4249ca467bbf
BLAKE2b-256 a19991aaf240633c648b92fe2da6f548ad2587d6d725d79760ff0aa5475691d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page