From 4aa98a8763d99265f4f5aae22da2f4ab1bfc27ec Mon Sep 17 00:00:00 2001 From: Sense T Date: Sat, 1 Mar 2025 17:31:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=88=E8=A2=AB=E5=88=9B=E4=BA=86=E4=B8=80?= =?UTF-8?q?=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qzsec/access-client/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qzsec/access-client/package.nix b/qzsec/access-client/package.nix index fa222ad..77b1c35 100644 --- a/qzsec/access-client/package.nix +++ b/qzsec/access-client/package.nix @@ -24,10 +24,10 @@ stdenv.mkDerivation rec { installPhase = '' mkdir -p $out/bin - cp -rv "${bin}" $out/bin - chmod +x $out/bin/* + cp -rv "${bin}" $out/bin/${pname} + chmod +x $out/bin/${pname} mkdir -p $out/share/applications - cp -rv "${desktop}" $out/share/applications + sed "/^Version=/s|@VERSION|${version}|" "${desktop}" | sed "/^Exec=/s|@EXEC|$out/bin/${pname}|" > "$out/share/applications/${pname}.desktop" ''; }