Skip to content

Commit

Permalink
hiddify-next: init at 1.1.1
Browse files Browse the repository at this point in the history
init with appimage version
  • Loading branch information
wenjinnn committed Jun 3, 2024
1 parent 1361672 commit 32b565f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions pkgs/by-name/hi/hiddify-next/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
lib,
appimageTools,
fetchurl,
}:
let
pname = "hiddify-next";
version = "1.1.1";
src = fetchurl {
url = "https://github.com/hiddify/hiddify-next/releases/download/v${version}/Hiddify-Linux-x64.AppImage";
hash = "sha256-T4BWxhJ7q13KE1rvvFsnXhs2XVEmNkFTJbJ4e8PCg+0=";
};
appimageContents = appimageTools.extractType2 { inherit pname version src; };
in
appimageTools.wrapType2 {
inherit pname version src;

extraPkgs = pkgs: with pkgs; [ libepoxy ];
extraInstallCommands = ''
mv $out/bin/hiddify-next $out/bin/hiddify
install -Dm644 ${appimageContents}/hiddify.desktop $out/share/applications/hiddify.desktop
cp -a ${appimageContents}/usr/share/icons $out/share/
substituteInPlace $out/share/applications/hiddify.desktop \
--replace-quiet 'LD_LIBRARY_PATH=usr/lib ' ''''''
'';

meta = with lib; {
description = "Multi-platform auto-proxy client (appimage version)";
longDescription = ''
Multi-platform auto-proxy client, supporting Sing-box, X-ray, TUIC, Hysteria, Reality, Trojan, SSH etc.
'';
homepage = "https://github.com/hiddify/hiddify-next";
license = licenses.cc-by-nc-sa-40;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ wenjinnn ];
mainProgram = "hiddify";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
};
}

0 comments on commit 32b565f

Please sign in to comment.