Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2025-03-19 05:13:55 +08:00
{
lib,
2025-04-21 10:59:52 +08:00
flutter329,
2025-03-19 05:13:55 +08:00
fetchFromGitHub,
autoPatchelfHook,
}:
2025-04-21 10:59:52 +08:00
flutter329.buildFlutterApplication rec {
2025-03-19 05:13:55 +08:00
pname = "proxypin";
2025-05-17 19:23:40 +00:00
version = "1.1.9";
2025-03-19 05:13:55 +08:00
src = fetchFromGitHub {
owner = "wanghongenpin";
repo = "proxypin";
tag = "v${version}";
2025-05-17 19:23:40 +00:00
hash = "sha256-yYZUXgWM7e1+TUvOid1X3WXlAGbUzDHrMXptPXKhuA8=";
2025-03-19 05:13:55 +08:00
};
pubspecLock = lib.importJSON ./pubspec.lock.json;
gitHashes = {
desktop_multi_window = "sha256-Tbl0DOxW1F8V2Kj34gcNRbBqr5t9Iq74qCT26deqFdQ=";
2025-04-21 10:59:52 +08:00
flutter_code_editor = "sha256-w8SbgvfpKbfCr0Y82r/k9pDsZjLOdVJ6D93dzKXct8c=";
2025-03-19 05:13:55 +08:00
};
postPatch = ''
substituteInPlace linux/my_application.cc \
--replace-fail "/opt/proxypin/data/flutter_assets/assets/icon.png" "$out/app/proxypin/data/flutter_assets/assets/icon.png"
'';
nativeBuildInputs = [ autoPatchelfHook ];
postInstall = ''
substituteInPlace linux/proxy-pin.desktop \
--replace-fail "/opt/proxypin/data/flutter_assets/assets/icon.png" "proxypin" \
--replace-fail "/opt/proxypin/" ""
install -Dm0644 linux/proxy-pin.desktop $out/share/applications/proxypin.desktop
install -Dm0644 assets/icon.png $out/share/pixmaps/proxypin.png
'';
2025-04-21 10:53:48 +08:00
passthru.updateScript = ./update.sh;
2025-03-19 05:13:55 +08:00
meta = {
description = "Capture HTTP(S) traffic software";
homepage = "https://github.com/wanghongenpin/proxypin";
mainProgram = "ProxyPin";
license = lib.licenses.asl20;
platforms = lib.platforms.linux;
2025-07-17 07:59:54 +08:00
maintainers = with lib.maintainers; [ ];
2025-03-19 05:13:55 +08:00
};
}