Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

nix: create wrapper around nix-shell #14

Open
strager opened this issue Jan 25, 2023 · 0 comments
Open

nix: create wrapper around nix-shell #14

strager opened this issue Jan 25, 2023 · 0 comments

Comments

@strager
Copy link
Owner

strager commented Jan 25, 2023

Inspiration: https://github.com/teaxyz/cli

Samples:

# before
nix-shell -p pandoc --run 'pandoc doc.md -o doc.html'

# after
try pandoc doc.md -o doc.html
# before
nix-shell -p 'python3.withPackages (pythonPackages: [ pythonPackages.pygments pythonPackages.pyyaml ])' --run '~/tmp/Projects/llvm-project/llvm/tools/opt-viewer/opt-viewer.py --source-dir . --output-dir build-perf/opt-viewer/ build-perf/'

# after
try +python3/pygments/pyyaml ~/tmp/Projects/llvm-project/llvm/tools/opt-viewer/opt-viewer.py --source-dir . --output-dir build-perf/opt-viewer/ build-perf/
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant