1{ stdenv, lib, fetchFromGitHub
2, qtbase, qttools, qtquickcontrols2, opencascade-occt, libGLU, libSM, freeimage, cmake, wrapQtAppsHook
3}:
4
5stdenv.mkDerivation rec {
6 pname = "librepcb";
7 version = "1.0.0";
8
9 src = fetchFromGitHub {
10 owner = pname;
11 repo = pname;
12 rev = version;
13 sha256 = "sha256-2o2Gue/RnDWxe8jk/Ehx9CM+B3ac5rEQn0H7yodUEZ8=";
14 fetchSubmodules = true;
15 };
16
17 nativeBuildInputs = [ cmake qttools wrapQtAppsHook qtquickcontrols2 opencascade-occt libGLU ];
18 buildInputs = [ qtbase ];
19 propagatedBuildInputs = [ libSM freeimage ];
20
21 meta = with lib; {
22 description = "A free EDA software to develop printed circuit boards";
23 homepage = "https://librepcb.org/";
24 maintainers = with maintainers; [ luz thoughtpolice ];
25 license = licenses.gpl3Plus;
26 platforms = platforms.linux;
27 };
28}