Commit 7de91298 authored by Valentin Reis's avatar Valentin Reis
Browse files

callPackagePin thing.

parent 5b9e6bdd
......@@ -17,16 +17,20 @@ let
callPackage = pkgs.lib.callPackageWith pkgs;
callPackagePin =
{ path
, jsonpath ? toPath "/${path}.json"
, nixName ? "default"
, jsonName ? nixName
, depset ? {} } :
pkgs.lib.callPackageWith pkgs (toPath "/${path}.nix") (depset // {src = gitpin jsonpath;});
let
jsonPath = toPath "/${path}/${jsonName}.json";
in
pkgs.lib.callPackageWith pkgs (toPath "/${path}/${nixName}.nix") (depset // {src = gitpin jsonPath;});
pythonPackages = pkgs.python27Packages;
in rec {
#NRM components
libnrm = callPackagePin {path="libnrm/default";};
nrm-containers = callPackage ./containers {
inherit pythonPackages;
src = packagepins.containers.nix;
libnrm = callPackagePin {path="libnrm";};
nrm-containers = callPackagePin {path = "./containers";
depset= { inherit pythonPackages; };
jsonName = "bandit";
};
nrm = callPackage ./nrm {
inherit pythonPackages nrm-containers;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment