pypi2nix icon indicating copy to clipboard operation
pypi2nix copied to clipboard

Error installing pypi2nix

Open FedX-sudo opened this issue 3 years ago • 0 comments
trafficstars

System:

  • System76 Galago Pro (galp5)
    • Intel Core i7-1165G7
    • Nvidia GTX 1650TI
    • 32GB of RAm
    • 1Tb NVME SSD
  • NixOS Unstable: 22.05
  • Kernel: 5.15.3-zen1

Issue:

When I go to install pypi2nix by adding the suggested configuration to home.nix like this:

{pkgs, config, lib, ...}:
let
  pypi2nix = import (pkgs.fetchgit {
    url = "https://github.com/nix-community/pypi2nix";
    # adjust rev and sha256 to desired version
    rev = "v2.0.1";
    sha256 = "sha256:0mxh3x8bck3axdfi9vh9mz1m3zvmzqkcgy6gxp8f9hhs6qg5146y";
  }) {};

in 
{
  home.packages = [ pypi2nix ]; 
}

Then after running home-manager switch I get the following error:

error: attribute 'lib' missing

at /nix/store/syg1rgl1l8baj5xh59xw3xqi0s9bh3fd-pypi2nix/requirements.nix:15:12:

14|   inherit (pkgs) makeWrapper;
15|   inherit (pkgs.stdenv.lib) fix' extends inNixShell;
|            ^
16|
(use '--show-trace' to show detailed location information)

Assuming this was my fault, I attempted to install with nix-env -if https://github.com/nix-community/pypi2nix/tarball/master and got the exact same error. I assume this is an issue with running NixOS unstable, and would love to help solve the issue if possible!

FedX-sudo avatar Dec 04 '21 23:12 FedX-sudo