Skip to content

Commit

Permalink
hiddify-app: 2.5.7-unstable-2024-10-30 -> 2.5.7-unstable-2024-11-18
Browse files Browse the repository at this point in the history
  • Loading branch information
aucub committed Dec 5, 2024
1 parent 5f708cb commit 39de3af
Showing 1 changed file with 8 additions and 36 deletions.
44 changes: 8 additions & 36 deletions pkgs/by-name/hi/hiddify-app/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,22 @@
lib,
fetchFromGitHub,
pkg-config,
flutter,
flutter324,
buildGoModule,
libayatana-appindicator,
stdenv,
fetchurl,
makeDesktopItem,
copyDesktopItems,
wrapGAppsHook3,
autoPatchelfHook,
}:
let
pname = "hiddify-app";
version = "2.5.7-unstable-2024-10-30";
version = "2.5.7-unstable-2024-11-18";
src = fetchFromGitHub {
owner = "hiddify";
repo = "hiddify-app";
rev = "0144cddf670df11d1586a0dc76483f4c4f5b4230";
hash = "sha256-bjZkc0H0409YxM6AGrhm6gPaKNj/9SiVs0AUPoLJX+o=";
rev = "9d3de0ae2ea2687f189f75fa2a9196a035a0bb32";
hash = "sha256-P04A14lFfgvl0kkxMsNXNaHnwfJ3AWkhrfI7VMESGHc=";
fetchSubmodules = true;
};
libcore = buildGoModule rec {
Expand Down Expand Up @@ -55,9 +53,8 @@ let
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/lib
cp ./bin/HiddifyCli $out/bin/HiddifyCli
cp ./lib/libcore.so $out/lib/libcore.so
install -Dm0755 ./bin/HiddifyCli $out/bin/HiddifyCli
install -Dm0755 ./lib/libcore.so $out/lib/libcore.so
runHook postInstall
'';
Expand All @@ -71,12 +68,8 @@ let
maintainers = with lib.maintainers; [ aucub ];
};
};
sqlite-autoconf = fetchurl {
url = "https://sqlite.org/2024/sqlite-autoconf-3460000.tar.gz";
hash = "sha256-b45qezNSc3SIFvmztiu9w3Koid6HgtfwSMZTpEdBen0=";
};
in
flutter.buildFlutterApplication {
flutter324.buildFlutterApplication {
inherit pname version src;

pubspecLock = lib.importJSON ./pubspec.lock.json;
Expand All @@ -92,26 +85,6 @@ flutter.buildFlutterApplication {
copyDesktopItems
];

customSourceBuilders = {
sqlite3_flutter_libs =
{ version, src, ... }:
stdenv.mkDerivation rec {
pname = "sqlite3_flutter_libs";
inherit version src;
inherit (src) passthru;
postPatch = ''
substituteInPlace linux/CMakeLists.txt \
--replace-fail "https://sqlite.org/2024/sqlite-autoconf-3460000.tar.gz" "file://${sqlite-autoconf}"
'';
installPhase = ''
runHook preInstall
mkdir $out
cp -a ./* $out/
runHook postInstall
'';
};
};

postPatch = ''
substituteInPlace ./linux/my_application.cc \
--replace-fail "./hiddify.png" "${placeholder "out"}/share/pixmaps/hiddify.png"
Expand All @@ -125,8 +98,7 @@ flutter.buildFlutterApplication {
'';

postInstall = ''
mkdir -p $out/share/pixmaps/
cp ./assets/images/source/ic_launcher_border.png $out/share/pixmaps/hiddify.png
install -Dm0644 ./assets/images/source/ic_launcher_border.png $out/share/pixmaps/hiddify.png
'';

desktopItems = [
Expand Down

0 comments on commit 39de3af

Please sign in to comment.