2020-02-06 01:44:16 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, qtbase, qttools, qmake, wrapQtAppsHook }:
|
2018-01-11 09:20:00 +00:00
|
|
|
|
2020-02-06 01:44:16 +00:00
|
|
|
mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "librepcb";
|
2020-02-09 06:07:31 +00:00
|
|
|
version = "0.1.3";
|
2018-01-11 09:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LibrePCB";
|
|
|
|
repo = "LibrePCB";
|
|
|
|
fetchSubmodules = true;
|
2020-02-09 06:07:31 +00:00
|
|
|
rev = "56bc60d347ff67df0fe1d57807d03f0606de557f";
|
|
|
|
sha256 = "0z6jn5zawp0x5i9zda7l787jnsv3yl8aqwnpii3g4hsnf2q3hhrh";
|
2018-01-11 09:20:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-10-09 13:59:48 +01:00
|
|
|
nativeBuildInputs = [ qmake qttools wrapQtAppsHook ];
|
2018-01-11 09:20:00 +00:00
|
|
|
|
|
|
|
buildInputs = [ qtbase ];
|
|
|
|
|
|
|
|
qmakeFlags = ["-r"];
|
|
|
|
|
2018-06-30 12:56:12 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/librepcb/fontobene
|
|
|
|
cp share/librepcb/fontobene/newstroke.bene $out/share/librepcb/fontobene/
|
|
|
|
'';
|
|
|
|
|
2019-10-09 13:59:48 +01:00
|
|
|
preFixup = ''
|
|
|
|
wrapQtApp $out/bin/librepcb
|
|
|
|
'';
|
|
|
|
|
2020-02-06 01:44:16 +00:00
|
|
|
meta = with lib; {
|
2018-01-11 09:20:00 +00:00
|
|
|
description = "A free EDA software to develop printed circuit boards";
|
2019-04-15 00:25:45 +01:00
|
|
|
homepage = https://librepcb.org/;
|
2018-01-11 09:20:00 +00:00
|
|
|
maintainers = with maintainers; [ luz ];
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|