1 { stdenv, ruby, fetchedGithub }:
2 stdenv.mkDerivation (fetchedGithub ./telegram-history-dump.json // {
4 mkdir -p $out/lib $out/bin
5 cp -a $src $out/lib/telegram-history-dump
6 ln -s $out/lib/telegram-history-dump/telegram-history-dump.rb $out/bin/telegram-history-dump
8 buildInputs = [ ruby ];