diff options
author | Domen Kožar <domen@dev.si> | 2015-12-10 12:40:38 +0100 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2015-12-10 12:47:32 +0100 |
commit | 66c90e6e1f22b2712f0714914504dee5e751a334 (patch) | |
tree | 8c0c539bb823f9a2876fc3bac94c36a2bf288654 /lib | |
parent | 76940c5e4cf73bd822e1879e8ac66b9f891813e4 (diff) |
add makeBinPath function for abstracting away pkg/bin:pkg2/bin..
Diffstat (limited to 'lib')
-rw-r--r-- | lib/strings.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/strings.nix b/lib/strings.nix index bf6cbd2cbfa83..ce2c4132bbca0 100644 --- a/lib/strings.nix +++ b/lib/strings.nix @@ -52,6 +52,10 @@ rec { # libraries for a set of packages, e.g. "${pkg1}/lib:${pkg2}/lib:...". makeLibraryPath = makeSearchPath "lib"; + # Construct a binary search path (such as $PATH) containing the + # binaries for a set of packages, e.g. "${pkg1}/bin:${pkg2}/bin:...". + makeBinPath = makeSearchPath "bin"; + # Idem for Perl search paths. makePerlPath = makeSearchPath "lib/perl5/site_perl"; |