Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package request: N-Link #355438

Open
mateowoetam opened this issue Nov 12, 2024 · 1 comment
Open

Package request: N-Link #355438

mateowoetam opened this issue Nov 12, 2024 · 1 comment
Labels
0.kind: packaging request Request for a new package to be added 2.status: wait-for-upstream Waiting for upstream fix (or their other action).

Comments

@mateowoetam
Copy link

Project description

N-link is a free, cross-platform computer linking program for the TI-Nspire, compatible with the CX-II model. It provides a method for linking the TI-Nspire calculator to a computer for data transfer and management.

Metadata


Add a 👍 reaction to issues you find important.

@mateowoetam mateowoetam added the 0.kind: packaging request Request for a new package to be added label Nov 12, 2024
@myclevorname
Copy link
Contributor

myclevorname commented Nov 13, 2024

I want this to be packaged too, but when I tried to build it, I got the error:0308010C:digital envelope routines::unsupported error. I then checked the CI, and it uses Node.js version 12, which isn't on Nixpkgs. I could try to build it with Node.js 16, but that isn't in Nixpkgs either, so I don't think it can be packaged in its current state.

According to Ben Schattinger himself, he has no time to maintain the project. Unfortunately for both of us, I don't think it can be packaged any time soon Here is the package.nix file I ended up with (that doesn't work), if you wanted to make a Nix flake.

{ mkYarnPackage, fetchYarnDeps, lib, fetchFromGitHub }:
let
  # The only directory marked read-write is the sourceRoot; everything else is
  # read-only for some reason. Remove when this is fixed.
  preConfigure = ''
    chmod +w /build/source --recursive
  '';
  src = fetchFromGitHub {
    owner = "lights0123";
    repo = "n-link";
    rev = "0472908ef4961e7eec92cc0b97376420a71e5bc7";
    hash = "sha256-BL/+hHZZufZyw33boCw+koWJfBUSUeFPLyOv95nmZPM=";
  };
  version = "0.1.6-unstable";
  offlineCache = fetchYarnDeps {
    yarnLock = src + "/yarn.lock";
    hash = "sha256-dzcmrSyttDnSyGz/ii5nVPa/r16ZHFX2Hqx4cHC3iXk=";
  };
  nLinkCore = mkYarnPackage rec {
    inherit src version preConfigure;
    pname = "n-link-core";
    packageJSON = src + "/n-link-core/package.json";
    sourceRoot = src.name + "/n-link-core";
  };
in
mkYarnPackage rec {
  inherit src version preConfigure;
  pname = "n-link";
  packageJSON = src + "/desktop/package.json";
  patchPhase = ''
    substituteInPlace package.json --replace-fail "vue-cli-service tauri:build" \
      "vue-cli-service tauri:build --openssl-legacy-provider"
  '';
  buildPhase = ''
    runHook preBuild
    HOME=$(mktemp -d) yarn --offline tauri:build
    runHook postBuild
  '';
  workspaceDependencies = [ nLinkCore ];
  sourceRoot = src.name + "/desktop";
  doDist = false;
}

@pluiedev pluiedev added the 2.status: wait-for-upstream Waiting for upstream fix (or their other action). label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: packaging request Request for a new package to be added 2.status: wait-for-upstream Waiting for upstream fix (or their other action).
Projects
None yet
Development

No branches or pull requests

3 participants