forked from fractalide/racket2nix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Solution: Use makeExtensible. Closes fractalide#175 - Wrap all the dependencies in an attribute set. - Export that attribute set as an attribute of the package. - Wrap the attribute set in a function called with makeExtensible. - Move our functions into a sub-attribute 'lib', minimize collision. - Take the chance to rename attributes to names without a '_' prefix. Example: $ nix-build -A racket-packages.racket2nix error: attribute 'racket2nix' in selection path 'racket-packages.racket2nix' not found $ nix-build -A racket-packages.nix /nix/store/l5dnla8gjg04v7v4q8pzkqaxqgp0l8cd-racket-minimal-7.0-nix $ nix-build -E 'with import ./. {}; (racket-packages.extend (self: super: { racket2nix = self.nix.overrideRacketDerivation (oldAttrs: { pname = "racket2nix-stage1"; }); })).racket2nix' /nix/store/zqlpq7iqcbia8wqiv03v9nlfdl637wvf-racket-minimal-7.0-racket2nix-stage1
- Loading branch information
Showing
1 changed file
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters