pencil: wrap bin/pencil correctly, fixes #8551
This commit is contained in:
parent
851ef7e2de
commit
5ade71b1d7
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, xulrunner }:
|
{ stdenv, fetchurl, makeWrapper, xulrunner }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "2.0.11";
|
version = "2.0.11";
|
||||||
@ -12,15 +12,19 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildPhase = "";
|
buildPhase = "";
|
||||||
|
|
||||||
|
buildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p "$out"
|
mkdir -p "$out"
|
||||||
cp -r usr/* "$out"
|
cp -r usr/* "$out"
|
||||||
sed -e "s|/usr/bin/xulrunner|${xulrunner}/bin/xulrunner|" \
|
sed -e "s|/usr/share/evolus-pencil|$out/share/evolus-pencil|" \
|
||||||
-e "s|/usr/share/evolus-pencil|$out/share/evolus-pencil|" \
|
|
||||||
-i "$out/bin/pencil"
|
-i "$out/bin/pencil"
|
||||||
sed -e "s|/usr/bin/pencil|$out/bin/pencil|" \
|
sed -e "s|/usr/bin/pencil|$out/bin/pencil|" \
|
||||||
-e "s|Icon=.*|Icon=$out/share/evolus-pencil/skin/classic/icon.svg|" \
|
-e "s|Icon=.*|Icon=$out/share/evolus-pencil/skin/classic/icon.svg|" \
|
||||||
-i "$out/share/applications/pencil.desktop"
|
-i "$out/share/applications/pencil.desktop"
|
||||||
|
|
||||||
|
wrapProgram $out/bin/pencil \
|
||||||
|
--prefix PATH ":" ${xulrunner}/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user