又被创了一下
This commit is contained in:
parent
b4ace4f839
commit
4aa98a8763
@ -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"
|
||||
'';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user