Skip to main content

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.

Metadata

Release files for collective.recipe.nix 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for collective.recipe.nix 0.1.1
File Size Uploaded Provenance Actions
collective.recipe.nix-0.1.1.zip 10.4 kB Without provenance Details for collective.recipe.nix-0.1.1.zip

Release files / collective.recipe.nix-0.1.1.zip

Download URL collective.recipe.nix-0.1.1.zip
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fc9657d2e0726dd9fa0bada98d6ca302ee51bcbfbba7825efe17aeb6cbc86732
BLAKE2b-256 checksum
How to use checksums
a19991aaf240633c648b92fe2da6f548ad2587d6d725d79760ff0aa5475691d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for collective.recipe.nix 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page