Nix file not compiling

Question: NixOS Search

I’m trying to install this package but I keep getting errors like this:

nix error: couldn't get nix env building nix env: exit status 1
Output has been trimmed to the last 20 lines
         whose name attribute is located at /nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/pkgs/stdenv/generic/make-derivation.nix:303:7

       … while evaluating attribute 'REPLIT_LD_LIBRARY_PATH' of derivation 'nix-shell'

         at «string»:309:9:

          308|       {
          309|         REPLIT_LD_LIBRARY_PATH = (pkgs.lib.optionalString (env ? REPLIT_LD_LIBRARY_PATH) (env.REPLIT_LD_LIBRARY_PATH + ":")) +
             |         ^
          310|         pkgs.lib.makeLibraryPath deps;

       error: attribute 'texliveFull' missing

       at /home/runner/OrdinaryTepidApplicationprogram/replit.nix:4:9:

            3|   deps = [
            4|         pkgs.texliveFull
             |         ^
            5|       ];

Repl link:
https://replit.com/@CoderSudaWuda/OrdinaryTepidApplicationprogram?v=1#replit.nix

code snippet

{pkgs}:
{
  deps = [
        pkgs.texliveFull
      ];
}

https://search.nixos.org/packages?channel=23.11&show=texliveFull&from=0&size=50&sort=relevance&type=packages&query=pdflatex

I’m attempting to install this ^^

Hi @CoderSudaWuda , welcome to the forums!
In you replit.nix file, try replacing the contents with this:

{ pkgs }: {
  deps = [
    
  ];
  environment.systemPackages = [
    pkgs.texliveFull
  ];
}
2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.