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 Apr 10, 2024
1 parent ae5df6c commit 7a38808
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions pkgs/by-name/hi/hiddify-next/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
lib,
stdenv,
appimageTools,
fetchurl,
}:
let
pname = "hiddify-next";
version = "1.1.1";
name = "${pname}-${version}";
src = fetchurl {
url = "https://github.com/hiddify/hiddify-next/releases/download/v${version}/Hiddify-Linux-x64.AppImage";
hash = "sha256-T4BWxhJ7q13KE1rvvFsnXhs2XVEmNkFTJbJ4e8PCg+0=";
};
hiddify = appimageTools.wrapType2 {
inherit pname version src;

extraPkgs = pkgs: with pkgs; [ libepoxy ];
};
in
stdenv.mkDerivation rec {
inherit pname version;

dontUnpack = true;

appimageContents = appimageTools.extractType2 { inherit name src; };

installPhase = ''
runHook preInstall
install -Dm755 ${hiddify}/bin/${name} $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 'LD_LIBRARY_PATH=usr/lib ' ''''''
runHook postInstall
'';

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";
};
}

0 comments on commit 7a38808

Please sign in to comment.