2020-04-24 23:36:52 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, qtbase, qttools, qmake, wrapQtAppsHook }:
|
|
|
|
|
2020-11-09 15:59:12 +00:00
|
|
|
mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "librepcb";
|
2020-11-09 15:59:12 +00:00
|
|
|
version = "0.1.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LibrePCB";
|
|
|
|
repo = "LibrePCB";
|
|
|
|
fetchSubmodules = true;
|
2020-11-09 15:59:12 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "0ag8h3id2c1k9ds22rfrvyhf2vjhkv82xnrdrz4n1hnlr9566vcx";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake qttools wrapQtAppsHook ];
|
|
|
|
|
|
|
|
buildInputs = [ qtbase ];
|
|
|
|
|
|
|
|
qmakeFlags = ["-r"];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/librepcb/fontobene
|
|
|
|
cp share/librepcb/fontobene/newstroke.bene $out/share/librepcb/fontobene/
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|