Created
December 3, 2017 03:44
-
-
Save infinisil/0b4cecd97d0818cec62674272d0d3e71 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> {}; | |
let | |
mkAlias = name: command: writeScriptBin name '' | |
#!${bash}/bin/bash | |
${command} "$@" | |
''; | |
aliases = { | |
sayhi = "${hello}/bin/hello"; | |
foobar = "${gcc}/bin/gcc --version"; | |
}; | |
aliaspkgs = builtins.attrValues (lib.mapAttrs mkAlias aliases); | |
in | |
[ | |
aliaspkgs | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment