mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
A small function not unlike symlinkJoin.
svn path=/nixpkgs/trunk/; revision=12641
This commit is contained in:
parent
813c7e87f6
commit
1e33a71c90
@ -404,6 +404,10 @@ let pkgs = rec {
|
||||
|
||||
symlinkJoin = name: paths: runCommand name {inherit paths;} "mkdir -p $out; for i in $paths; do ${xorg.lndir}/bin/lndir $i $out; done";
|
||||
|
||||
# entries is a list of attribute sets like { name = "name" ; path = "/nix/store/..."; }
|
||||
linkFarm = name: entries: runCommand name {} ("mkdir -p $out; cd $out; \n" +
|
||||
(lib.concatMapStrings (x: "ln -s '${x.path}' '${x.name}';\n") entries));
|
||||
|
||||
substituteAll = import ../build-support/substitute/substitute-all.nix {
|
||||
inherit stdenv;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user