Skip to content

Commit

Permalink
fix: cairo as lib and not package (#1206)
Browse files Browse the repository at this point in the history
Co-authored-by: Jake Runzer <[email protected]>
  • Loading branch information
iloveitaly and coffee-cup authored Nov 8, 2024
1 parent fa25a02 commit c252a8a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/providers/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ impl PythonProvider {
pkgs.append(&mut vec![Pkg::new("pipenv")]);
}

if PythonProvider::uses_dep(app, "cairo")? {
pkgs.append(&mut vec![Pkg::new("cairo")]);
}

let mut setup = Phase::setup(Some(pkgs));
setup.set_nix_archive(nix_archive);

if PythonProvider::uses_dep(app, "cairo")? {
setup.add_pkgs_libs(vec!["cairo".to_string()]);
}

// Many Python packages need some C headers to be available
// stdenv.cc.cc.lib -> https://discourse.nixos.org/t/nixos-with-poetry-installed-pandas-libstdc-so-6-cannot-open-shared-object-file/8442/3
setup.add_pkgs_libs(vec!["zlib".to_string(), "stdenv.cc.cc.lib".to_string()]);
Expand Down

0 comments on commit c252a8a

Please sign in to comment.