nix: Use path to rc_testdata from pkgs.config.rc.sources if present.

This commit is contained in:
Martin Bornhold 2016-06-17 08:34:51 +02:00
parent 99bc2e3eeb
commit fc7f2e7770

View file

@ -46,6 +46,7 @@ let
!elem ext ["egg-info" "pyc"] &&
!startsWith "result" path;
sources = pkgs.config.rc.sources or {};
rhodecode-enterprise-ce-src = builtins.filterSource src-filter ./.;
# Load the generated node packages
@ -199,15 +200,18 @@ let
rc_testdata = self.buildPythonPackage rec {
name = "rc_testdata-0.7.0";
src = pkgs.fetchhg {
url = "https://code.rhodecode.com/upstream/rc_testdata";
rev = "v0.7.0";
sha256 = "0w3z0zn8lagr707v67lgys23sl6pbi4xg7pfvdbw58h3q384h6rx";
};
src = rhodecode-testdata-src;
};
};
rhodecode-testdata-src = sources.rhodecode-testdata or (
pkgs.fetchhg {
url = "https://code.rhodecode.com/upstream/rc_testdata";
rev = "v0.7.0";
sha256 = "0w3z0zn8lagr707v67lgys23sl6pbi4xg7pfvdbw58h3q384h6rx";
});
# Apply all overrides and fix the final package set
myPythonPackagesUnfix =
(extends pythonExternalOverrides