Skip to content

Instantly share code, notes, and snippets.

@LisannaAtHome
Created January 13, 2018 00:23
Show Gist options
  • Save LisannaAtHome/416d7a4154acfadfdefbf6999f2b1da9 to your computer and use it in GitHub Desktop.
Save LisannaAtHome/416d7a4154acfadfdefbf6999f2b1da9 to your computer and use it in GitHub Desktop.
Allows you to directly switch into a Nix environment built with buildEnv
#!/usr/bin/env bash
nix-env -ir -E "args: (import <nixpkgs> {}).lib.toDerivation $1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment