How long does it take for an unstable nix package to become available on repl.it?

Description of the problem (please keep it simple and short): Adding a new package to replit.nix results in a long, verbose, and incomprehensible error message ending with error: attribute 'sqlpage' missing, at /home/runner/SentimentalHeavyChief/replit.nix:3:9

Explain what you were trying to do: I am trying to create a repl.it for the SQLPage website server.

What areas or features are involved? unstable nix package installation

Repl Cover Page Link/Screenshots/Etc: (to protect you and your code, never share your Repl join link outside of PMs)

The package has been available on the unstable nix channel for a few days: NixOS Search

I added

[nix]
channel = "unstable"

to the .replit file.

Yet, trying to use the package on replit results in an error message that manages to be at the same time very long and very uninformative.

Hey @pimaj62145!

I answered a similar question here, but if you still have questions, please let me know!

1 Like

Thanks for the answer !

The result is a little bit confusing for the user… Shouldn’t it be a caching proxy rather than a static copy ?

Do you know when the next static copy of the unstable channel will happen ? Is there a schedule somewhere ?

1 Like

if the version you want isn’t available on Nix, you could always try to find native binaries or try to find Nix equivalents to the tools/libraries needed to compile the package from source.

I there a guide somewhere on how to setup a replit template with binaries downloaded from the web ?

not that I know of, but of use will be
https://docs.replit.com/programming-ide/configuring-repl

https://curl.se/docs/manual.html#download-to-a-file

Okay, after a lot of trial and error, the following made the trick

{ pkgs }:
let
  sqlpage = pkgs.stdenv.mkDerivation rec {
    pname = "sqlpage";
    version = "0.10.1";
    src = pkgs.fetchzip {
      url = "https://github.com/lovasoa/SQLpage/releases/download/v${version}/sqlpage-linux.tgz";
      sha256 = "03yhs5xhnx6nxinqk1bh7pbdgc5gk47qizbvpb499wsaffnxhsz4";
    };
    installPhase = ''
      install -m755 -D sqlpage.bin $out/bin/sqlpage
    '';
  };
in {
  deps = [
    sqlpage
  ];
}
1 Like