Skyler Grey | f11bbb6 | 2022-07-29 08:55:08 +0100 | [diff] [blame] | 1 | { pkgs, pkgs-21-11, ... }: { |
| 2 | home.packages = [ pkgs.asciinema ((import ./asciinema/default.nix { pkgs = pkgs; nodejs = pkgs.nodejs; }).package.override { |
| 3 | buildInputs = [ pkgs.makeWrapper ]; |
| 4 | |
| 5 | preRebuild = '' |
| 6 | wrapProgram $out/lib/node_modules/asciicast2gif-nix/node_modules/asciicast2gif/asciicast2gif --suffix PATH : ${pkgs.lib.makeBinPath [ pkgs.imagemagick pkgs.gifsicle pkgs-21-11.phantomjs2 ]} |
| 7 | export PATH=$PATH:${pkgs.lib.makeBinPath [ pkgs.imagemagick pkgs.gifsicle pkgs-21-11.phantomjs2 ]} |
| 8 | mkdir -p $out/bin |
| 9 | ln -s $out/lib/node_modules/asciicast2gif-nix/node_modules/asciicast2gif/asciicast2gif $out/bin/asciicast2gif |
| 10 | ''; |
| 11 | }) ]; |
Skyler Grey | 201c2d8 | 2022-07-27 23:06:18 +0100 | [diff] [blame] | 12 | } |