proxypin: init at 1.1.7 (#391086)
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
{
|
||||
lib,
|
||||
flutter327,
|
||||
fetchFromGitHub,
|
||||
autoPatchelfHook,
|
||||
}:
|
||||
|
||||
flutter327.buildFlutterApplication rec {
|
||||
pname = "proxypin";
|
||||
version = "1.1.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wanghongenpin";
|
||||
repo = "proxypin";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-A+FgWTzluyTENyr29I57107pYrClMn+L4Th1BluTQIU=";
|
||||
};
|
||||
|
||||
pubspecLock = lib.importJSON ./pubspec.lock.json;
|
||||
|
||||
gitHashes = {
|
||||
desktop_multi_window = "sha256-Tbl0DOxW1F8V2Kj34gcNRbBqr5t9Iq74qCT26deqFdQ=";
|
||||
flutter_code_editor = "sha256-HwgjyIwS0HcXL5JN7T1pTKyALakCC31V3rMFum7dHvE=";
|
||||
};
|
||||
|
||||
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
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Capture HTTP(S) traffic software";
|
||||
homepage = "https://github.com/wanghongenpin/proxypin";
|
||||
mainProgram = "ProxyPin";
|
||||
license = lib.licenses.asl20;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ emaryn ];
|
||||
};
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user