Conversation
Notices
-
With commit #200, #racket2nix can now do this:
$ nix-build build-racket.nix --argstr package typed-map-lib
/nix/store/5fqkqajh5w94mnfh870wij035nr4rgd0-typed-map-lib
$ nix-build build-racket.nix --arg package ./nix
/nix/store/v08i5jyymzxxlqbjxa0f6s0w2s6pflkg-nix
I think that's pretty neat.
Or if you're writing real nix, you can define your package just like this:
[ . . . ]
# get the convenience functions
, racket2nix ? import (fetchFromGitHub {
owner = "fractalide";
repo = "racket2nix";
rev = "20354a92230bf5c9aeb53aa5e6d9720dbd8380e5";
sha256 = "1z2ni1b3zh8hx8wnzdipyi7ys06zwm4kqzql6d0555dy3y18g70m";
}) { }
[ . . . ]
fractalide = self.buildRacket { package = ./..; };
... and that generates the nix expressions for the package and all its deps, then calls them and returns the result as a finished derivation to build the whole shebang.
https://social.heldscal.la/url/1425017