Skip to content

Instantly share code, notes, and snippets.

@LnL7
Created March 12, 2019 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LnL7/53c28b6a6228bb9693e594aac01dc69d to your computer and use it in GitHub Desktop.
Save LnL7/53c28b6a6228bb9693e594aac01dc69d to your computer and use it in GitHub Desktop.
{ pkgs ? import <nixpkgs> {} }:
let
drv =
pkgs.stdenv.mkDerivation {
name = "example.nix";
buildCommand = ''
cat <<-'EOF' > $out
{ stdenv, hello }:
builtins.trace "Whee! recursion..." hello
EOF
'';
};
in
pkgs.callPackage drv {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment