Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
librepcb-unstable: init at 2017-12-29 (#33630)
- Loading branch information
Showing
4 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
pkgs/applications/science/electronics/librepcb/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ stdenv, fetchFromGitHub, qtbase, qttools, qmake, mesa, openssl, zlib }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "librepcb-${version}"; | ||
version = "20171229"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "LibrePCB"; | ||
repo = "LibrePCB"; | ||
fetchSubmodules = true; | ||
rev = "4efb06fa42755abc5e606da4669cc17e8de2f8c6"; | ||
sha256 = "0r33fm1djqpy0dzvnf5gv2dfh5nj2acaxb7w4cn8yxdgrazjf7ak"; | ||
}; | ||
|
||
enableParallelBuilding = true; | ||
|
||
nativeBuildInputs = [ qmake qttools ]; | ||
|
||
buildInputs = [ qtbase ]; | ||
|
||
# LibrePCB still supports QT below 5.9. But some code lines break the build, so they are removed by this patch so that the software builds. | ||
patches = [ ./fix-2017-12.patch ]; | ||
|
||
qmakeFlags = ["-r"]; | ||
|
||
meta = with stdenv.lib; { | ||
description = "A free EDA software to develop printed circuit boards"; | ||
homepage = http://librepcb.org/; | ||
maintainers = with maintainers; [ luz ]; | ||
license = licenses.gpl3; | ||
platforms = platforms.linux; | ||
}; | ||
} |
29 changes: 29 additions & 0 deletions
29
pkgs/applications/science/electronics/librepcb/fix-2017-12.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- a/libs/librepcb/common/fileio/serializableobjectlist.h | ||
+++ b/libs/librepcb/common/fileio/serializableobjectlist.h | ||
@@ -374,26 +374,6 @@ | ||
} // namespace librepcb | ||
|
||
/***************************************************************************************** | ||
- * Prevent from using SerializableObjectList in a foreach loop because it always would | ||
- * create a deep copy of the list! You should use C++11 range based for loops instead. | ||
- ****************************************************************************************/ | ||
- | ||
-#if (QT_VERSION > QT_VERSION_CHECK(5, 9, 0)) | ||
-#define QFOREACHCONTAINER_TEMPLATE QtPrivate::QForeachContainer | ||
-#else | ||
-#define QFOREACHCONTAINER_TEMPLATE QForeachContainer | ||
-#endif | ||
- | ||
-template <typename T, typename P> | ||
-class QFOREACHCONTAINER_TEMPLATE<librepcb::SerializableObjectList<T, P>> { public: | ||
- ~QForeachContainer() = delete; | ||
-}; | ||
-template <typename T, typename P> | ||
-class QFOREACHCONTAINER_TEMPLATE<const librepcb::SerializableObjectList<T, P>> { public: | ||
- ~QForeachContainer() = delete; | ||
-}; | ||
- | ||
-/***************************************************************************************** | ||
* End of File | ||
****************************************************************************************/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters