diff options
author | figsoda <figsoda@pm.me> | 2022-11-25 21:36:32 -0500 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2022-11-25 21:41:37 -0500 |
commit | e2b62ea76cb8ae2f57bcdfd72b4497634c2f8860 (patch) | |
tree | 9d29b25043134fd083fa928488982b7a0cb7c8ce /pkgs/build-support/appimage | |
parent | 9ecb3b8e4440db6051202d5183139c2608ea8ba4 (diff) |
appimageTools.wrapType2: passthru src to make nix-update work
Diffstat (limited to 'pkgs/build-support/appimage')
-rw-r--r-- | pkgs/build-support/appimage/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/build-support/appimage/default.nix b/pkgs/build-support/appimage/default.nix index 6d4dbfbe421b0..b974b8f68712c 100644 --- a/pkgs/build-support/appimage/default.nix +++ b/pkgs/build-support/appimage/default.nix @@ -61,6 +61,14 @@ rec { (args // { inherit name extraPkgs; src = extract { inherit name src; }; + + # passthru src to make nix-update work + # hack to keep the origin position (unsafeGetAttrPos) + passthru = lib.pipe args [ + lib.attrNames + (lib.remove "src") + (removeAttrs args) + ] // args.passthru or { }; }); defaultFhsEnvArgs = { |