Fix webtorrent-cli using an overlay

This commit is contained in:
coolneng 2022-01-03 00:42:26 +01:00
parent 8ba41e00e3
commit 8a97f01aa2
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 7 additions and 1 deletions

View File

@ -5,6 +5,12 @@ with pkgs;
let
emacs-vterm = ((emacsPackagesNgGen emacsPgtkGcc).emacsWithPackages
(epkgs: [ epkgs.vterm epkgs.pdf-tools ]));
patched-webtorrent-cli = nodePackages.webtorrent-cli.override {
buildInputs = [ pkgs.nodePackages.node-gyp-build ];
preRebuild = ''
sed -i -e "s|#!/usr/bin/env node|#! ${pkgs.nodejs}/bin/node|" node_modules/node-gyp-build/bin.js
'';
};
in {
environment.systemPackages = [
@ -69,7 +75,7 @@ in {
# Media
gimp
mpv
nodePackages.peerflix
patched-webtorrent-cli
deluge
youtube-dl-light
calibre