2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchFromGitHub, qtbase, qttools, qmake }:
|
2018-01-11 09:20:00 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "librepcb-${version}";
|
2018-11-26 21:33:39 +00:00
|
|
|
version = "0.1.0";
|
2018-01-11 09:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LibrePCB";
|
|
|
|
repo = "LibrePCB";
|
|
|
|
fetchSubmodules = true;
|
2018-11-26 21:33:39 +00:00
|
|
|
rev = "d7458d3b3e126499902e1a66a0ef889f516a7c97";
|
|
|
|
sha256 = "19wh0398fzzpd65nh4mmc4jllkrgcrwxvxdby0gb5wh1sqyaqac4";
|
2018-01-11 09:20:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake qttools ];
|
|
|
|
|
|
|
|
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/
|
|
|
|
'';
|
|
|
|
|
2018-01-11 09:20:00 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|