Nats nsc package coming up as undefined variable

Hi all,

I’m attempting to use nix package nsc which does appear exist with support for x86_64, however it’s coming up as error: undefined variable 'nsc', and doesn’t appear when doing a search for it in repl. I am on nix (Nix) 2.13.2

nix-repl> :load <nixpkgs>
Added 18358 variables.

nix-repl> ns
ns-3           nsis           nspr           nssTools       nss_ldap       nssmdns        nsync
nsd            nsjail         nsq            nss_esr        nss_pam_ldapd  nsss           nsz
nsh            nsncd          nss            nss_latest     nss_wrapper    nsxiv
❯ nix-shell -p nsc
error: undefined variable 'nsc'

       at «string»:1:107:

            1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (nsc) ]; } ""
             |                                                                                                           ^
(use '--show-trace' to show detailed location information)

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

When I run nix search nixpkgs nsc it’s there

image

Is there something I’m missing here? Would appreciate any help. Cheers

Got past this original issue being that I was attempting to use 22.11 tagged release instead of master / unstable. That is able to work however requiring override for failing tests

Was able to get past the solution by setting config.allowBroken = true; and setting overrideAttrs to not run tests

    utils.lib.eachDefaultSystem (system:
      let
        pkgs = import nixpkgs {
          inherit system;
          # needed to allow build of unstable nixpkg version - nixos-unstable (master)
          config.allowBroken = true;
          overlays = [
            (self: super: {
              nsc = super.nsc.overrideAttrs (old: {
                doCheck = false;
              });
            })
          ];
        };