2013-11-14 20:55:10 +00:00
|
|
|
{ stdenv, fetchurl, fetchbzr, cmake, mesa, wxGTK, zlib, libX11, gettext }:
|
2010-08-22 13:09:47 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-11-14 20:55:10 +00:00
|
|
|
name = "kicad-20131025";
|
2010-08-22 13:09:47 +01:00
|
|
|
|
2013-11-14 20:55:10 +00:00
|
|
|
src = fetchbzr {
|
2015-07-22 09:23:34 +01:00
|
|
|
url = "https://code.launchpad.net/kicad/stable";
|
2014-06-28 19:33:28 +01:00
|
|
|
rev = 4024;
|
2013-11-14 20:55:10 +00:00
|
|
|
sha256 = "1sv1l2zpbn6439ccz50p05hvqg6j551aqra551wck9h3929ghly5";
|
2010-08-22 13:09:47 +01:00
|
|
|
};
|
|
|
|
|
2011-12-18 14:49:39 +00:00
|
|
|
srcLibrary = fetchbzr {
|
2015-07-22 09:23:34 +01:00
|
|
|
url = "http://bazaar.launchpad.net/~kicad-product-committers/kicad/library";
|
2014-06-28 19:33:28 +01:00
|
|
|
rev = 293;
|
2013-11-14 20:55:10 +00:00
|
|
|
sha256 = "1wn9a4nhqyjzzfkq6xm7ag8n5n10xy7gkq6i7yry7wxini7pzv1i";
|
2010-08-31 09:19:28 +01:00
|
|
|
};
|
|
|
|
|
2013-11-14 20:55:10 +00:00
|
|
|
cmakeFlags = "-DKICAD_STABLE_VERSION=ON";
|
2011-12-18 14:49:39 +00:00
|
|
|
|
2010-08-31 09:19:28 +01:00
|
|
|
# They say they only support installs to /usr or /usr/local,
|
|
|
|
# so we have to handle this.
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e 's,/usr/local/kicad,'$out,g common/gestfich.cpp
|
|
|
|
'';
|
|
|
|
|
2014-02-06 07:06:22 +00:00
|
|
|
#enableParallelBuilding = true; # often fails on Hydra: fatal error: pcb_plot_params_lexer.h: No such file or directory
|
2010-08-31 09:19:28 +01:00
|
|
|
|
2013-11-14 20:55:10 +00:00
|
|
|
buildInputs = [ cmake mesa wxGTK zlib libX11 gettext ];
|
2010-08-31 09:19:28 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir library
|
|
|
|
cd library
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=$out $srcLibrary
|
|
|
|
make install
|
|
|
|
'';
|
2010-08-22 13:09:47 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Free Software EDA Suite";
|
2012-10-28 16:27:30 +00:00
|
|
|
homepage = "http://www.kicad-pcb.org/";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2010-08-22 13:09:47 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|