From 810fd2d1b8d71fe8175ce4eb60797115a53b4428 Mon Sep 17 00:00:00 2001 From: Lan Tian Date: Fri, 15 Nov 2024 18:52:52 -0800 Subject: [PATCH] baidupcs-go: remove readonly config file generated during version check phase (cherry picked from commit 24f7069f46fa654d2c984010906d27c25c001deb) --- pkgs/by-name/ba/baidupcs-go/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/ba/baidupcs-go/package.nix b/pkgs/by-name/ba/baidupcs-go/package.nix index 42ef4255d7c0..fbd1861e7c50 100644 --- a/pkgs/by-name/ba/baidupcs-go/package.nix +++ b/pkgs/by-name/ba/baidupcs-go/package.nix @@ -27,6 +27,14 @@ buildGo122Module rec { doInstallCheck = true; versionCheckProgram = "${placeholder "out"}/bin/${meta.mainProgram}"; + postInstall = '' + rm -f $out/bin/AndroidNDKBuild + ''; + + postVersionCheck = '' + rm -f $out/bin/pcs_config.json + ''; + meta = { mainProgram = "BaiduPCS-Go"; maintainers = with lib.maintainers; [ xddxdd ];