Skip to content
This repository was archived by the owner on Oct 7, 2022. It is now read-only.
This repository was archived by the owner on Oct 7, 2022. It is now read-only.

Error installing pypi2nix #478

@FedX-sudo

Description

@FedX-sudo

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions