Skip to content

Instantly share code, notes, and snippets.

@samueldr
Last active August 6, 2018 12:25
Show Gist options
  • Save samueldr/ced467c535cbf256093e13b243f21e44 to your computer and use it in GitHub Desktop.
Save samueldr/ced467c535cbf256093e13b243f21e44 to your computer and use it in GitHub Desktop.
#!/usr/bin/env nix-shell
#!nix-shell -p ruby
#!nix-shell -p python
#!nix-shell -p hello
#!nix-shell -i bash
for b in $buildInputs; do
echo $b
done
#!/usr/bin/env nix-shell
#!nix-shell -i ruby
require "pp"
pp ENV["buildInputs"].split(" ")
# Wait what?
# The definition can be split??!?
#!nix-shell -p hello ruby
# vim: ft=ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment