Skip to content

Commit

Permalink
sources.nix: add niv attribute set in derivations
Browse files Browse the repository at this point in the history
This `niv` attribute set contains all JSON attributes.

JSON attributes are exposed in the `niv` attribute set inside the
derivation to avoid name collision on the `type` attribute for
instance. Note this is a breaking change since JSON attributes were in
the derivation attribute set directly.
  • Loading branch information
nlewo committed Mar 13, 2019
1 parent 818f21c commit 6ae7f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ with rec
};
};
mapAttrs
(_: spec: getFetcher spec { inherit (spec) url sha256; })
(_: spec: getFetcher spec { inherit (spec) url sha256; } // { niv = spec; })
sources
|]

Expand Down

0 comments on commit 6ae7f5c

Please sign in to comment.