Skip to content
This repository has been archived by the owner on Jun 6, 2018. It is now read-only.

local system libs #4

Open
cocreature opened this issue Jun 4, 2015 · 3 comments
Open

local system libs #4

cocreature opened this issue Jun 4, 2015 · 3 comments

Comments

@cocreature
Copy link

Sometimes you want to depend on a system library that is not yet on nixpkgs. That would require writing a .nix file for it, but I am not sure how to pass that lib to cabbage after having done that.

@acowley
Copy link
Owner

acowley commented Jun 4, 2015

Yeah, I lucked out in that there is already support for OS X frameworks. I'm pretty new to Nix, but I think this would be referred to as adding an impurity. What I'm not clear on yet is exactly how to plumb it through to the build environment of the package that needs it.

@cocreature
Copy link
Author

I don't think you need an impurity for that. The lib could still be managed by nix and not by your system. You just need a way to build system libs from a .nix file.

@acowley
Copy link
Owner

acowley commented Jun 4, 2015

Oh, sorry, I misunderstood. I thought you wanted to avoid writing the Nix file and just wanted to pull in a .a from somewhere. Okay, right, this is definitely solveable. It just has to get pulled into the generated shell.nix, and passed on through like anything else. It will require a tweak to the way systemDeps are handled, but I think it will fit in that mechanism.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants