Last active
February 3, 2026 20:25
-
-
Save dacr/8c3f14d6e81b33a1ff572387494825ae to your computer and use it in GitHub Desktop.
nix derivations hello-world / published by https://github.com/dacr/code-examples-manager #1068db41-e5a5-4093-b7b6-1e12eb852ce4/7b8558f8d0dd5a679936e70a638ffb2230eb77f0
This file contains hidden or 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
| ## summary : nix derivations hello-world | |
| ## keywords : nix, derrivations, hello-world | |
| ## publish : gist | |
| ## authors : David Crosson | |
| ## license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) | |
| ## id : 1068db41-e5a5-4093-b7b6-1e12eb852ce4 | |
| ## created-on : 2025-02-01T11:33:24+01:00 | |
| ## managed-by : https://github.com/dacr/code-examples-manager | |
| ## run-with : nix eval --file $file | |
| #### run-with : nix-instantiate --eval $file | |
| let | |
| pkgs = import <nixpkgs> {}; | |
| in "${pkgs.hello} ${pkgs.cowsay}" | |
| # generates automatically an hash based destination directory | |
| # for each used inputs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment