Issues packaging beeware

So, I’m trying to use a python app called “beeware”.

I’m using this shell.nix file to run it:

ith import <nixpkgs> { };

mkShell {
  name    = "impurePythonEnv";
  venvDir = "./.venv";

  buildInputs = [
    libcanberra-gtk3
    gtk3
    cairo
    gobject-introspection
    pkg-config
    fontconfig
    gcc

    (with python312Packages; [
      numpy
      pandas
      venvShellHook
      plotly
      setuptools
      cmake
      python-fontconfig
    ])
  ];

  postVenvCreation = ''
    unset SOURCE_DATE_EPOCH
  '';

  postShellHook = ''
    unset SOURCE_DATE_EPOCH
    pip install --upgrade pip
    pip install briefcase
    clear
  '';
}

All needed libs by beeware are listed here. The problem is that when I run briefcase dev I get this error: OSError: libfontconfig.so.1: cannot open shared object file: No such file or directory.

You’ll want to package briefcase with nix and put that in your dev shell. Try running nix-init on the repo and then callPackage it.

1 Like

Sorry… I’m new to nixos os and I don’t know what you mean by that…

Click the links, I’d just be repeating them to explain.
If you still have specific questions I can answer those.