5 src = fetchFromGitHub {
8 rev = "780e33a07fd821e09ab5b05223ddb4ca15ac663f";
9 sha256 = "1f83cr9qgk95g3571ps644rvgfzv2i4i7532q8pg405s4q5ada3h";
10 fetchSubmodules = true;
13 (callPackage src {}) // { inherit src; };
17 json = lib.importJSON path;
20 name = "${json.meta.name}-${version}";
21 src = fetchFromGitHub json.github;
26 json = lib.importJSON path;
29 name = "${json.meta.name}-${version}";
30 src = fetchgit json.git;
33 fetchedGitPrivate = path:
35 json = lib.importJSON path;
38 name = "${json.meta.name}-${version}";
39 src = fetchgitPrivate json.git;
42 wrap = { paths ? [], vars ? {}, file ? null, script ? null, name ? "wrap" }:
43 assert file != null || script != null ||
44 abort "wrap needs 'file' or 'script' argument";
46 set = n: v: "--set ${pkgs.lib.escapeShellArg n} " +
47 "${pkgs.lib.escapeShellArg v}";
48 args = (map (p: "--prefix PATH : ${p}/bin") paths) ++
49 (builtins.attrValues (pkgs.lib.mapAttrs set vars));
53 f = if file == null then writeScript name script else file;
54 buildInputs = [ makeWrapper ];
57 makeWrapper "$f" "$out" ${toString args}