blob: 86832d47fa868749d28b4076cf591e42b533bb12 (
plain) (
tree)
|
|
{ pkgs }:
with pkgs;
rec {
yarn2nixPackage = let
src = builtins.fetchGit {
url = "git://github.com/moretea/yarn2nix.git";
ref = "master";
rev = "780e33a07fd821e09ab5b05223ddb4ca15ac663f";
};
in
(callPackage src {}) // { inherit src; };
nodeEnv = import ./node-env.nix;
fetchedGithub = path:
let
json = lib.importJSON path;
in rec {
version = json.tag;
pname = json.meta.name;
name = "${pname}-${version}";
src = fetchFromGitHub json.github;
};
fetchedGit = path:
let
json = lib.importJSON path;
in rec {
version = json.tag;
pname = json.meta.name;
name = "${pname}-${version}";
src = fetchgit json.git;
};
fetchedGitPrivate = path:
let
json = lib.importJSON path;
in rec {
version = json.tag;
pname = json.meta.name;
name = "${pname}-${version}";
src = builtins.fetchGit {
url = json.git.url;
ref = "master";
rev = json.git.rev;
};
};
} // (if builtins.pathExists ./private then callPackage ./private {} else {})
|