1: { bash, mkBin, withNix }: 2: 3: with builtins; 4: with { 5: nixy = withNix { }; 6: file = ./inNixedDir.sh; 7: }; 8: mkBin { 9: inherit file; 10: name = "inNixedDir"; 11: paths = nixy.buildInputs; 12: vars = removeAttrs nixy [ "buildInputs" ]; 13: } // { 14: file = "${file}"; 15: }