1
0

又被创了一下

This commit is contained in:
Sense T 2025-03-01 17:31:11 +08:00
parent b4ace4f839
commit 4aa98a8763

View File

@ -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"
'';
}