Skip to content
This repository has been archived by the owner on Jul 21, 2022. It is now read-only.

Iterate through all derivations in nixpkgs #5

Open
costrouc opened this issue Jan 2, 2020 · 1 comment
Open

Iterate through all derivations in nixpkgs #5

costrouc opened this issue Jan 2, 2020 · 1 comment

Comments

@costrouc
Copy link

costrouc commented Jan 2, 2020

Is it possible with pythonix to view a derivation similar to "nix show-derivation ..."? I have tried nix.eval("with import {}; python3Packages.numpy") and ran into errors. Maybe this is not the correct way to view a derivation output? My end goal is that I want to create an adjacency matrix of runtime vs test vs build time python dependencies. But I have plans to use all the derivations to gather statistics. Right now the big limitation for me is how to extract this from nix.

@adisbladis
Copy link
Contributor

I have implemented this in https://github.com/tweag/pynixutil.
You will still need to instantiate the derivation using the CLI (or pythonix!).

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