Skip to content

Instantly share code, notes, and snippets.

@dacr
Created February 1, 2025 11:04
Show Gist options
  • Save dacr/8c3f14d6e81b33a1ff572387494825ae to your computer and use it in GitHub Desktop.
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/3b954f653997ae20ff1045769150058c7e40919a
## summary : nix derivations hello-world
## keywords : nix, derrivations, hello-world
## publish : gist
## authors : David Crosson
## license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
## 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