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: epg #304727

Closed
janurskremer opened this issue Apr 17, 2024 · 3 comments
Closed

Package request: epg #304727

janurskremer opened this issue Apr 17, 2024 · 3 comments

Comments

@janurskremer
Copy link

Project description

Utilities for downloading the EPG (Electronic Program Guide) for thousands of TV channels from hundreds of sources.

Metadata


Add a 👍 reaction to issues you find important.

@janurskremer
Copy link
Author

janurskremer commented Apr 17, 2024

This is what I tried so far after reading some tutorials:

derivation.nix

{
  lib,
  buildNpmPackage,
  fetchFromGitHub,
}:

buildNpmPackage rec {
  pname = "epg";
  version = "2023.12.1";

  src = fetchFromGitHub {
    owner = "iptv-org";
    repo = pname;
    rev = "${version}";
    hash = "sha256-4YS7ZscNPPMK0V2U1uDgBKfQa0qSpa3LG0yl1zYkjDA=";
  };

  npmDepsHash = "sha256-D3poXVVq7VfOF9GhDyC9k5MOhsBSVffCokA0HSC5WCU=";

  # The prepack script runs the build script, which we'd rather do in the build phase.
  npmPackFlags = [ "--ignore-scripts" ];

  NODE_OPTIONS = "--openssl-legacy-provider";

  meta = with lib; {
    description = "Utilities for downloading the EPG (Electronic Program Guide) for thousands of TV channels from hundreds of sources.";
    homepage = "https://github.com/iptv-org/epg";
    license = licenses.unlicense;
    maintainers = with maintainers; [ janurskremer ];
  };
}

default.nix

{
  pkgs ? import <nixpkgs> { },
}:
pkgs.callPackage ./derivation.nix { }

But this fails with a huge npm error.

npm ERR! code 1
npm ERR! path /build/source
npm ERR! command failed
npm ERR! command sh -c npm run api:load
...

@janurskremer
Copy link
Author

I also tried installing with npm which worked.

@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/npm-package-build-failed/43573/1

@janurskremer janurskremer closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants