Skip to content

Commit

Permalink
ret-cont: Fix missing explicit outputs and __recursive
Browse files Browse the repository at this point in the history
This was in the "wrapper" derivation example.
  • Loading branch information
Ericson2314 committed Nov 2, 2019
1 parent 37a643e commit 14b134d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rfcs/0000-ret-cont-recursive-nix.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
'';
Expand Down

0 comments on commit 14b134d

Please sign in to comment.