Merge pull request #350 from vidhanio/pkgs-getconf
use `pkgs.getconf` rather than relying on it being in the $PATH
This commit is contained in:
commit
2f0f812f69
1 changed files with 2 additions and 1 deletions
|
|
@ -152,7 +152,8 @@ let
|
|||
dir:
|
||||
let
|
||||
inherit (pkgs.stdenv.hostPlatform) isDarwin;
|
||||
baseDir = if isDarwin then "$(getconf DARWIN_USER_TEMP_DIR)" else "\${XDG_RUNTIME_DIR}";
|
||||
baseDir =
|
||||
if isDarwin then "$(${lib.getExe pkgs.getconf} DARWIN_USER_TEMP_DIR)" else "\${XDG_RUNTIME_DIR}";
|
||||
in
|
||||
"${baseDir}/${dir}";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue