biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / networking / tetrd / default.nix
bloba9ccf1d2774ff500d3e959bd04c11272d490506e
1 { stdenv
2 , lib
3 , fetchurl
4 , autoPatchelfHook
5 , makeWrapper
6 , c-ares
7 , ffmpeg
8 , libevent
9 , libvpx
10 , libxslt
11 , xorg
12 , minizip
13 , nss
14 , re2
15 , snappy
16 , libnotify
17 , libappindicator-gtk3
18 , libappindicator
19 , udev
20 , mesa # required for libgbm
23 stdenv.mkDerivation rec {
24   pname = "tetrd";
25   version = "1.0.4";
27   src = fetchurl {
28     url = "https://web.archive.org/web/20211130190525/https://download.tetrd.app/files/tetrd.linux_amd64.pkg.tar.xz";
29     sha256 = "1bxp7rg2dm9nnvkgg48xd156d0jgdf35flaw0bwzkkh3zz9ysry2";
30   };
32   sourceRoot = ".";
33   dontConfigure = true;
34   dontBuild = true;
36   nativeBuildInputs = [
37     autoPatchelfHook
38     makeWrapper
39   ];
41   buildInputs = [
42     c-ares
43     ffmpeg
44     libevent
45     libvpx
46     libxslt
47     xorg.libXScrnSaver
48     xorg.libXdamage
49     xorg.libXtst
50     minizip
51     nss
52     re2
53     snappy
54     libnotify
55     libappindicator-gtk3
56     libappindicator
57     udev
58     mesa
59   ];
61   installPhase = ''
62     runHook preInstall
64     mkdir -p $out/opt
65     cp -r $sourceRoot/opt/Tetrd $out/opt
66     cp -r $sourceRoot/usr/share $out
68     wrapProgram $out/opt/Tetrd/tetrd \
69       --prefix LD_LIBRARY_PATH ":" ${lib.makeLibraryPath buildInputs}
71     runHook postInstall
72   '';
74   postFixup = ''
75     substituteInPlace $out/share/applications/tetrd.desktop --replace /opt $out/opt
76   '';
78   meta = with lib; {
79     description = "Share your internet connection from your device to your PC and vice versa through a USB cable";
80     homepage = "https://tetrd.app";
81     sourceProvenance = with sourceTypes; [ binaryNativeCode ];
82     license = licenses.unfree;
83     platforms = [ "x86_64-linux" ];
84     maintainers = with maintainers; [ Madouura ];
85   };