Skip to content

Instantly share code, notes, and snippets.

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

  • Save dacr/5749d4fb33867fffb7dd01f072824347 to your computer and use it in GitHub Desktop.

Select an option

Save dacr/5749d4fb33867fffb7dd01f072824347 to your computer and use it in GitHub Desktop.
nix pkgs lib / published by https://github.com/dacr/code-examples-manager #c192c63e-1440-457b-bab5-e5c4d41e409c/142e3a6bf225095c766dc844d66e6cb877e6532d
## summary : nix pkgs lib
## keywords : nix, pkgs, lib
## publish : gist
## authors : David Crosson
## license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
## id : c192c63e-1440-457b-bab5-e5c4d41e409c
## created-on : 2025-02-01T11:11:09+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> {};
message = ''
${pkgs.lib.strings.toUpper "Hello world"}
'';
in message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment