git.iko.soy/typeable/nixpkgs
on master help sign in
librepcb-unstable: init at 2017-12-29 (#33630)
commite056315a3e7f85f60ad70c7ad837ef6a7c6a804e authorLuz <Luz@users.noreply.github.com> dateThu 11 Jan 2018, 10:20 (9 years ago) parent2f6b885
4 files changed+65
lib/maintainers.nix+1 pkgs/applications/science/electronics/librepcb/default.nix+33 pkgs/applications/science/electronics/librepcb/fix-2017-12.patch+29 pkgs/top-level/all-packages.nix+2
lib/maintainers.nix+1
@@ -389,6 +389,7 @@
389389 lufia = "Kyohei Kadota <lufia@lufia.org>";
390390 luispedro = "Luis Pedro Coelho <luis@luispedro.org>";
391391 lukego = "Luke Gorrie <luke@snabb.co>";
392+ luz = "Luz <luz666@daum.net>";
392393 lw = "Sergey Sofeychuk <lw@fmap.me>";
393394 lyt = "Tim Liou <wheatdoge@gmail.com>";
394395 m3tti = "Mathaeus Sander <mathaeus.peter.sander@gmail.com>";
pkgs/applications/science/electronics/librepcb/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ stdenv, fetchFromGitHub, qtbase, qttools, qmake, mesa, openssl, zlib }:
2+
3+stdenv.mkDerivation rec {
4+ name = "librepcb-${version}";
5+ version = "20171229";
6+
7+ src = fetchFromGitHub {
8+ owner = "LibrePCB";
9+ repo = "LibrePCB";
10+ fetchSubmodules = true;
11+ rev = "4efb06fa42755abc5e606da4669cc17e8de2f8c6";
12+ sha256 = "0r33fm1djqpy0dzvnf5gv2dfh5nj2acaxb7w4cn8yxdgrazjf7ak";
13+ };
14+
15+ enableParallelBuilding = true;
16+
17+ nativeBuildInputs = [ qmake qttools ];
18+
19+ buildInputs = [ qtbase ];
20+
21+ # 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.
22+ patches = [ ./fix-2017-12.patch ];
23+
24+ qmakeFlags = ["-r"];
25+
26+ meta = with stdenv.lib; {
27+ description = "A free EDA software to develop printed circuit boards";
28+ homepage = http://librepcb.org/;
29+ maintainers = with maintainers; [ luz ];
30+ license = licenses.gpl3;
31+ platforms = platforms.linux;
32+ };
33+}
pkgs/applications/science/electronics/librepcb/fix-2017-12.patchnew file+29
@@ -0,0 +1,29 @@
1+--- a/libs/librepcb/common/fileio/serializableobjectlist.h
2++++ b/libs/librepcb/common/fileio/serializableobjectlist.h
3+@@ -374,26 +374,6 @@
4+ } // namespace librepcb
5+
6+ /*****************************************************************************************
7+- * Prevent from using SerializableObjectList in a foreach loop because it always would
8+- * create a deep copy of the list! You should use C++11 range based for loops instead.
9+- ****************************************************************************************/
10+-
11+-#if (QT_VERSION > QT_VERSION_CHECK(5, 9, 0))
12+-#define QFOREACHCONTAINER_TEMPLATE QtPrivate::QForeachContainer
13+-#else
14+-#define QFOREACHCONTAINER_TEMPLATE QForeachContainer
15+-#endif
16+-
17+-template <typename T, typename P>
18+-class QFOREACHCONTAINER_TEMPLATE<librepcb::SerializableObjectList<T, P>> { public:
19+- ~QForeachContainer() = delete;
20+-};
21+-template <typename T, typename P>
22+-class QFOREACHCONTAINER_TEMPLATE<const librepcb::SerializableObjectList<T, P>> { public:
23+- ~QForeachContainer() = delete;
24+-};
25+-
26+-/*****************************************************************************************
27+ * End of File
28+ ****************************************************************************************/
29+
pkgs/top-level/all-packages.nix+2
@@ -19179,6 +19179,8 @@ with pkgs;
1917919179 boost = boost160;
1918019180 };
1918119181
19182+ librepcb = libsForQt5.callPackage ../applications/science/electronics/librepcb { };
19183+
1918219184 ngspice = callPackage ../applications/science/electronics/ngspice { };
1918319185
1918419186 pcb = callPackage ../applications/science/electronics/pcb { };