Merge pull request #350 from vidhanio/pkgs-getconf
Some checks failed
CI / tests-linux (push) Has been cancelled
CI / tests-darwin (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled

use `pkgs.getconf` rather than relying on it being in the $PATH
This commit is contained in:
Nathan Henrie 2025-10-18 19:19:09 -06:00 committed by GitHub
commit 2f0f812f69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}";