Open EmperorDali opened 2 years ago
I have a similar confusion. Trying to follow this advice: For flakes users: Update the pypi-deps-db input of mach-nix.
, I run nix flake update
. However I find that this updates my mach-nix
dependency, but not mach-nix
's dependency on pypi-deps-db
, which remains pinned to whatever it was in the flake.lock
file of mach-nix
.
When I add inputs.pypi-deps-db.follows = "nixpkgs";
to this template
pypi-deps-db = {
url = "github:DavHau/pypi-deps-db";
inputs.nixpkgs.follows = "nixpkgs";
inputs.mach-nix.follows = "mach-nix";
follows = "nixpkgs";
};
then it seems to solve the “error: The pypiDataRev seems to be older than the nixpkgs which is currently used.” (But then I have other errors).
This is probably a stale issue by now, but I just came into this issue myself and it seems like pypi-deps-db
has stopped updating: https://github.com/DavHau/pypi-deps-db/issues/16. For me, pinning to a nix package version before 8th December 2022 works.
My apologies, this may not be an issue with
mach-nix
but rather me using it incorrectly. I'd be happy to contribute an example configuration if this is just me using things incorrectly.I'm configuring a development environment that uses
mach-nix
via flakes. Myflake.nix
looks like:This version of the flake works great, but I'm having some trouble extending and overriding various attributes.
mach-nix
flake both use the same version ofnixpkgs
? I tried addinginputs.mach-nix.inputs.nixpkgs.follows = "nixpkgs"
to my flake, but thennix develop
errors withR
that's used bymach-nix
when installingrpy2
? I have an R environment defined in my flake that's of the formnixpkgs.rWrapper.override { packages = [ myRPackages ]; }
and I'd like to pass this R torpy2
in mymach-nix
mkPython
call. If this isn't possible, what would be the recommended way to get bothR
and amach-nix
python environment withrpy2
that shares the same set ofR
packages?