By simply adding cp -r ./ $out to postInstall, you will find the previous
substitution does not work at all, this is documented in Nixpkgs manual,
that for substituteAll, "Environment variables that start with an uppercase
letter or an underscore are filtered out".
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/caja-extensions/versions.
These checks were done:
- built on NixOS
- /nix/store/1m1zknl4rxcnkkbqhd0ks341bh2ghl0y-caja-extensions-1.20.1/bin/caja-sendto passed the binary check.
- /nix/store/1m1zknl4rxcnkkbqhd0ks341bh2ghl0y-caja-extensions-1.20.1/bin/.caja-sendto-wrapped passed the binary check.
- 2 of 2 passed binary check by having a zero exit code.
- 0 of 2 passed binary check by having the new version present in output.
- found 1.20.1 with grep in /nix/store/1m1zknl4rxcnkkbqhd0ks341bh2ghl0y-caja-extensions-1.20.1
- directory tree listing: https://gist.github.com/6344a0c82a50b4091f71ada2afdffb14
- du listing: https://gist.github.com/e7f39d01f373332636f3b0e47953fb4c
Keep only the version atribute in derivations, with the full version
string of the package. This will make it easier to write a script for
automatic updating of the packages using the update-source-version
command from common-updater-scripts.