json = lib.importJSON path;
in rec {
version = json.tag;
- name = "${json.meta.name}-${version}";
+ pname = json.meta.name;
+ name = "${pname}-${version}";
src = fetchFromGitHub json.github;
};
json = lib.importJSON path;
in rec {
version = json.tag;
- name = "${json.meta.name}-${version}";
+ pname = json.meta.name;
+ name = "${pname}-${version}";
src = fetchgit json.git;
};
json = lib.importJSON path;
in rec {
version = json.tag;
- name = "${json.meta.name}-${version}";
+ pname = json.meta.name;
+ name = "${pname}-${version}";
src = builtins.fetchGit {
url = json.git.url;
ref = "master";
rev = json.git.rev;
};
};
-
- wrap = { paths ? [], vars ? {}, file ? null, script ? null, name ? "wrap" }:
- assert file != null || script != null ||
- abort "wrap needs 'file' or 'script' argument";
- with rec {
- set = n: v: "--set ${pkgs.lib.escapeShellArg n} " +
- "${pkgs.lib.escapeShellArg v}";
- args = (map (p: "--prefix PATH : ${p}/bin") paths) ++
- (builtins.attrValues (pkgs.lib.mapAttrs set vars));
- };
- runCommand name
- {
- f = if file == null then writeScript name script else file;
- buildInputs = [ makeWrapper ];
- }
- ''
- makeWrapper "$f" "$out" ${toString args}
- '';
-
} // (if builtins.pathExists ./private then callPackage ./private {} else {})