I have a derivation that is copying a directory with subdirectories with .sh scripts, however when I run nix build
some of the new subdirectory .sh
files donβt show up in $out/
directory
installPhase = ''
mkdir -p $out/share
cp -r share/. $out/share/
find $out/share -iname "*.sh" -exec chmod a+x {} \;
mkdir -p $out/bin
cp start_server.sh $out/bin/start_server
wrapProgram $out/bin/start_server \
--prefix PATH : ${pkgs.lib.makeBinPath propagatedDeps} \
--prefix SHARE : "$out/share"
'';
For instance my directory structure looks something like the following, where all .sh
files are available in $out/share
except for a newly added share/utils/apply.sh
. To note this file has same permissions as all the others
βββ share
β βββ auth
β β βββ README.md
β β βββ setup_auth_creds.sh
β βββ cluster1
β β βββ node_01
β β β βββ server.sh
β β β βββ server.conf
β βββ cluster2
β β βββ node_01
β β β βββ server.sh
β β β βββ server.conf
β βββ utils
β βββ apply.sh
β βββ push.sh
βββ start_server.sh
Not sure why this file isnβt copying over or available for run