librepcb: fix use of wrapQtApp (#114891)
This commit is contained in:
parent
66cee0f375
commit
b1718d879a
@ -18,30 +18,25 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ qtbase ];
|
buildInputs = [ qtbase ];
|
||||||
|
|
||||||
qmakeFlags = ["-r"];
|
qmakeFlags = ["-r"];
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
# the build system tries to use 'git' at build time to find the HEAD hash.
|
||||||
|
# that's a no-no, so replace it with a quick hack. NOTE: the # adds a comment
|
||||||
|
# at the end of the line to remove the git call.
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace ./libs/librepcb/common/common.pro \
|
||||||
|
--replace 'GIT_COMMIT_SHA' 'GIT_COMMIT_SHA="\\\"${src.rev}\\\"" # '
|
||||||
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share/librepcb/fontobene
|
mkdir -p $out/share/librepcb/fontobene
|
||||||
cp share/librepcb/fontobene/newstroke.bene $out/share/librepcb/fontobene/
|
cp share/librepcb/fontobene/newstroke.bene $out/share/librepcb/fontobene/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# the build system tries to use 'git' at build time to find the HEAD hash.
|
|
||||||
# that's a no-no, so replace it with a quick hack. NOTE: the # adds a comment
|
|
||||||
# at the end of the line to remove the git call.
|
|
||||||
patchPhase = ''
|
|
||||||
substituteInPlace ./libs/librepcb/common/common.pro \
|
|
||||||
--replace 'GIT_COMMIT_SHA' 'GIT_COMMIT_SHA="\\\"${src.rev}\\\"" # '
|
|
||||||
'';
|
|
||||||
|
|
||||||
preFixup = ''
|
|
||||||
wrapQtApp $out/bin/librepcb
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A free EDA software to develop printed circuit boards";
|
description = "A free EDA software to develop printed circuit boards";
|
||||||
homepage = "https://librepcb.org/";
|
homepage = "https://librepcb.org/";
|
||||||
maintainers = with maintainers; [ luz thoughtpolice ];
|
maintainers = with maintainers; [ luz thoughtpolice ];
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user