with import {}; pkgs.writeShellScriptBin "nix-cmd" '' #!/bin/sh pkg="''${@:1:1}" rest="''${@:2}" if [ "$rest" = "" ] ; then rest="$pkg" fi exec nix-shell -p $pkg --run "$(echo "$rest" | sed -E "s/^_ /$pkg /")" ''