mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 05:31:22 +00:00
ec13398cdf
* Update to new source * Fix message 'xcb plugin not found'
40 lines
973 B
Nix
40 lines
973 B
Nix
{ stdenv, fetchFromGitHub, qtbase, qttools, qmake, wrapQtAppsHook }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "librepcb";
|
|
version = "0.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LibrePCB";
|
|
repo = "LibrePCB";
|
|
fetchSubmodules = true;
|
|
rev = "acdd94d9d2310f79215125b999153e9da88a9376";
|
|
sha256 = "1bbl01rp75sl6k1cmch7x90v00lck578xvqmb856s9fx75bdgnv5";
|
|
};
|
|
|
|
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 stdenv.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;
|
|
};
|
|
}
|