impure.nix (updaters): dont hardcode the location of this repo
This commit is contained in:
@@ -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 ""} \
|
||||
|
Reference in New Issue
Block a user