Can someone confirm a build failure in my flake? I think a package is broken

I think a package I need, python3.12-opentelemetry-instrumentation-asgi, is having a build failure. I don’t want to hazard a guess as to why that may be when I just don’t know enough about Nix or the upstream project, but I can’t for the life of me get my Flake to work.

{
  description = "Define development dependencies.";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/83c75d34b91c65ddad1d6a9dd7d0e2cf7de2974f";
  };

  outputs = { self, nixpkgs }: 
    let pkgs = import nixpkgs {  system = "x86_64-linux"; };
    in {
      devShells.x86_64-linux.default = pkgs.mkShell { 
        packages = [
          pkgs.bash 
          pkgs.python3Full
          pkgs.poetry
          pkgs.nix-direnv
          pkgs.direnv
          pkgs.docker
          pkgs.gcc
          pkgs.libgcc
          pkgs.python312Packages.uvicorn
          pkgs.python312Packages.opentelemetry-instrumentation-asgi
        ];
      };
  };
}
nix build github:nixos/nixpkgs/master#python3Packages.opentelemetry-instrumentation-asgi

succeeds for me (master = 8b832758af5773048aae830eb55cb11bb572266c). The package may simply be broken on the revision you have pinned via:

I’d recommend you to replace the manual pin with a reference to the nixpkgs-unstable channel and instead lock your flake inputs.

2 Likes