Skip to content

Commit

Permalink
v2rayn: fix right-click menu
Browse files Browse the repository at this point in the history
  • Loading branch information
aucub committed Dec 17, 2024
1 parent 05f8558 commit 122fbf1
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions pkgs/by-name/v2/v2rayn/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@
makeDesktopItem,
copyDesktopItems,
bash,
xorg,
}:
buildDotnetModule rec {
buildDotnetModule {
pname = "v2rayn";
version = "7.3.2";

src = fetchFromGitHub {
owner = "2dust";
repo = "v2rayN";
tag = version;
hash = "sha256-mWfWpleUVbq6Z31oh6QoG0j9eT3d7yF6z7e4lRe6+cM=";
rev = "48a159f4c8d9ff6b528178eaaa7dbfd346e9eacc";
hash = "sha256-5tzsBhrf1KDhHAsPeVuiurG9q/mtwWzFsSBPrOM+c0o=";
};

projectFile = "v2rayN/v2rayN.Desktop/v2rayN.Desktop.csproj";
Expand All @@ -38,8 +39,6 @@ buildDotnetModule rec {
--replace-fail "return AppDomain.CurrentDomain.BaseDirectory;" 'return Path.Combine(Environment.GetEnvironmentVariable("XDG_DATA_HOME") ?? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".local", "share"), "v2rayn");'
substituteInPlace v2rayN/ServiceLib/Common/Utils.cs \
--replace-fail "/bin/bash" "${bash}/bin/bash"
substituteInPlace v2rayN/ServiceLib/ServiceLib.csproj \
--replace-fail "0.16.20" "0.16.14"
'';

dotnetInstallFlags = [ "-p:PublishReadyToRun=false" ];
Expand All @@ -66,6 +65,16 @@ buildDotnetModule rec {
(lib.getLib stdenv.cc.cc)
];

runtimeDeps = [
xorg.libX11
xorg.libXrandr
xorg.libXi
xorg.libICE
xorg.libSM
xorg.libXcursor
xorg.libXext
];

postBuild =
let
selectSystem =
Expand Down

0 comments on commit 122fbf1

Please sign in to comment.