Logo
Explore Help
Sign In
public/nixpkgs
1
0
Fork 0
You've already forked nixpkgs
Code Issues Pull Requests Packages Projects Releases Wiki Activity
nixpkgs/pkgs/development/python-modules/buildout-nix/default.nix

22 lines
559 B
Nix
Raw Normal View History

Add a patched version of buildout 2.2.0 for development with nix Without this patch buildout will copy eggs from the nix store into the ./eggs directory and then try to compile them. This fails because they are read only. This patch changes the behaviour to create symlinks to eggs available in the nix store instead of copying them, and not to try to compile the eggs in the store. To differentiate this from the default buildout (which may be provided otherwise e.g. as a dependency) the executable is renamed to buildout-nix. This can be used in conjuntion with myEnvFun to create development environments which make use of the python modules available in the store while downloading any additional required eggs. A pleasant side effect is that you can conveniently replace the symlink with a copy for debugging purposes.
2013-08-28 00:26:06 +02:00
{ fetchurl, stdenv, buildPythonPackage }:
buildPythonPackage {
name = "zc.buildout-nix-2.2.0";
src = fetchurl {
url = "https://pypi.python.org/packages/source/z/zc.buildout/zc.buildout-2.2.0.tar.gz";
md5 = "771dd9807da7d5ef5bb998991c5fdae1";
};
patches = [ ./nix.patch ];
postInstall = "mv $out/bin/buildout{,-nix}";
meta = {
homepage = "http://www.buildout.org";
description = "A software build and configuration system";
license = stdenv.lib.licenses.zpt21;
maintainers = [ stdenv.lib.maintainers.goibhniu ];
};
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 57ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API