aboutsummaryrefslogblamecommitdiff
path: root/flakes/mypackages/pkgs/telegram-history-dump/default.nix
blob: 492e26540737eaf9ad2b9d2b5d137661b8013f91 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                                                
{ stdenv, ruby, fetchFromGitHub }:
stdenv.mkDerivation ({
  pname = "telegram-history-dump";
  version = "468ea91-master";
  src = fetchFromGitHub {
    owner = "tvdstaaij";
    repo = "telegram-history-dump";
    rev = "468ea91e543529b54bc2c5ea28b1ea17f362fd3e";
    sha256 = "1wmwiqacfa56bmwx50njnb15cg0fy6rbdrmrjd4xfbh8bs6yp0gh";
    fetchSubmodules = true;
  };
  installPhase = ''
    mkdir -p $out/lib $out/bin
    cp -a $src $out/lib/telegram-history-dump
    ln -s $out/lib/telegram-history-dump/telegram-history-dump.rb $out/bin/telegram-history-dump
    '';
  buildInputs = [ ruby ];
})