librepcb: fix use of wrapQtApp (#114891)
This commit is contained in:
parent
66cee0f375
commit
b1718d879a
@ -18,30 +18,25 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ qtbase ];
|
||||
|
||||
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 = ''
|
||||
mkdir -p $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; {
|
||||
description = "A free EDA software to develop printed circuit boards";
|
||||
homepage = "https://librepcb.org/";
|
||||
maintainers = with maintainers; [ luz thoughtpolice ];
|
||||
license = licenses.gpl3;
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user