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 let
emacs-vterm = ((emacsPackagesNgGen emacsPgtkGcc).emacsWithPackages emacs-vterm = ((emacsPackagesNgGen emacsPgtkGcc).emacsWithPackages
(epkgs: [ epkgs.vterm epkgs.pdf-tools ])); (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 { in {
environment.systemPackages = [ environment.systemPackages = [
@ -69,7 +75,7 @@ in {
# Media # Media
gimp gimp
mpv mpv
nodePackages.peerflix patched-webtorrent-cli
deluge deluge
youtube-dl-light youtube-dl-light
calibre calibre