impure.nix (updaters): dont hardcode the location of this repo

This commit is contained in:
2025-03-15 05:01:14 +00:00
parent c926bfc765
commit af87c40b97

View File

@@ -159,7 +159,9 @@ let
script = pkgs.writeShellScriptBin "update-${pname}" ''
# update script assumes $PWD is an entry point to a writable copy of my nix config,
# so provide that:
pushd /home/colin/nixos/integrations/nix-update
SELF_PATH=$PWD/$0
REPO_ROOT=$(${lib.getExe pkgs.git} -C "$(dirname SELF_PATH)" rev-parse --show-toplevel)
pushd $REPO_ROOT/integrations/nix-update
UPDATE_NIX_NAME=${pkg.name or ""} \
UPDATE_NIX_PNAME=${pkg.pname or ""} \
UPDATE_NIX_OLD_VERSION=${pkg.version or ""} \