From 14b134d683b67e45fc0b0e93ad91689721283ab3 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Sat, 2 Nov 2019 11:24:54 -0400 Subject: [PATCH] ret-cont: Fix missing explicit `outputs` and `__recursive` This was in the "wrapper" derivation example. --- rfcs/0000-ret-cont-recursive-nix.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rfcs/0000-ret-cont-recursive-nix.md b/rfcs/0000-ret-cont-recursive-nix.md index cab2a0c5d..6e729603c 100644 --- a/rfcs/0000-ret-cont-recursive-nix.md +++ b/rfcs/0000-ret-cont-recursive-nix.md @@ -242,8 +242,8 @@ stdenv.mkDerivation { name = "README"; unpackPhase = "true"; outputs = [ "drv" "store" ]; - buildInputs = [ emacs nix ]; __recursive = true; + buildInputs = [ emacs nix ]; installPhase = '' mkdir -p $out cd $out @@ -281,6 +281,8 @@ in stdenv.mkDerivation { name = "readme-outer"; unpackPhase = "true"; buildInputs = [ nix ]; + outputs = [ "drv" "store" ]; + __recursive = true; installPhase = '' mv $(nix-instantiate --store $store ${README} --arg nixpkgs 'import ${nixpkgs.path}') > $drv '';