Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active February 3, 2026 20:25
Show Gist options
  • Select an option

  • Save dacr/8c3f14d6e81b33a1ff572387494825ae to your computer and use it in GitHub Desktop.

Select an option

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
## 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