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 1600026 commit b09d97a
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21271,6 +21271,12 @@
fingerprint = "2145 955E 3F5E 0C95 3458 41B5 11F7 BAEA 8567 43FF";
}];
};
wenjinnn = {
name = "wenjin";
email = "[email protected]";
github = "wenjinnn";
githubId = 30885216;
};
wenngle = {
name = "Zeke Stephens";
email = "[email protected]";
Expand Down
54 changes: 54 additions & 0 deletions pkgs/applications/networking/hiddify-next/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{ lib
, stdenv
, appimageTools
, fetchurl
}: let
pname = "hiddify";
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 = ''
mkdir -p $out/bin
mkdir -p $out/share/applications
cp ${hiddify}/bin/${name} $out/bin/${pname}
cp -a ${appimageContents}/${pname}.desktop $out/share/applications/
cp -a ${appimageContents}/usr/share/icons $out/share/
substituteInPlace $out/share/applications/${pname}.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. It’s an open-source, secure and ad-free.
'';
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 b09d97a

Please sign in to comment.