forked from mirrors/nixpkgs
tetrd: init at 1.0.4
This commit is contained in:
parent
7895497b11
commit
86018d741b
85
pkgs/applications/networking/tetrd/default.nix
Normal file
85
pkgs/applications/networking/tetrd/default.nix
Normal file
|
@ -0,0 +1,85 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, autoPatchelfHook
|
||||
, makeWrapper
|
||||
, c-ares
|
||||
, ffmpeg
|
||||
, libevent
|
||||
, libvpx
|
||||
, libxslt
|
||||
, xorg
|
||||
, minizip
|
||||
, nss
|
||||
, re2
|
||||
, snappy
|
||||
, libnotify
|
||||
, libappindicator-gtk3
|
||||
, libappindicator
|
||||
, udev
|
||||
, mesa # required for libgbm
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tetrd";
|
||||
version = "1.0.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://web.archive.org/web/20211130190525/https://download.tetrd.app/files/tetrd.linux_amd64.pkg.tar.xz";
|
||||
sha256 = "1bxp7rg2dm9nnvkgg48xd156d0jgdf35flaw0bwzkkh3zz9ysry2";
|
||||
};
|
||||
|
||||
sourceRoot = ".";
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
c-ares
|
||||
ffmpeg
|
||||
libevent
|
||||
libvpx
|
||||
libxslt
|
||||
xorg.libXScrnSaver
|
||||
xorg.libXdamage
|
||||
xorg.libXtst
|
||||
minizip
|
||||
nss
|
||||
re2
|
||||
snappy
|
||||
libnotify
|
||||
libappindicator-gtk3
|
||||
libappindicator
|
||||
udev
|
||||
mesa
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/opt
|
||||
cp -r $sourceRoot/opt/Tetrd $out/opt
|
||||
cp -r $sourceRoot/usr/share $out
|
||||
|
||||
wrapProgram $out/opt/Tetrd/tetrd \
|
||||
--prefix LD_LIBRARY_PATH ":" ${lib.makeLibraryPath buildInputs}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
substituteInPlace $out/share/applications/tetrd.desktop --replace /opt $out/opt
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Share your internet connection from your device to your PC and vice versa through a USB cable";
|
||||
homepage = "https://tetrd.app";
|
||||
license = licenses.unfree;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ Madouura ];
|
||||
};
|
||||
}
|
|
@ -10150,6 +10150,8 @@ with pkgs;
|
|||
|
||||
termplay = callPackage ../tools/misc/termplay { };
|
||||
|
||||
tetrd = callPackage ../applications/networking/tetrd { };
|
||||
|
||||
tewisay = callPackage ../tools/misc/tewisay { };
|
||||
|
||||
texmacs = if stdenv.isDarwin
|
||||
|
|
Loading…
Reference in a new issue