2011-12-18 14:49:39 +00:00
|
|
|
{stdenv, fetchurl, fetchbzr, unzip, cmake, mesa, wxGTK, zlib, libX11,
|
|
|
|
gettext}:
|
2010-08-22 13:09:47 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-12-18 14:49:39 +00:00
|
|
|
name = "kicad-20110708";
|
2010-08-22 13:09:47 +01:00
|
|
|
|
2011-12-18 14:49:39 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = ftp://iut-tice.ujf-grenoble.fr/cao/sources/kicad_sources-2011-07-08-BZR3044.zip;
|
|
|
|
sha256 = "1gr75zcf55p3xpbg1gdkdpbh5x11bawc9rcff4fskwjyc3vfiv6a";
|
2010-08-22 13:09:47 +01:00
|
|
|
};
|
|
|
|
|
2011-12-18 14:49:39 +00:00
|
|
|
srcLibrary = fetchbzr {
|
|
|
|
url = "http://bazaar.launchpad.net/~kicad-lib-committers/kicad/library";
|
|
|
|
revision = 112;
|
|
|
|
sha256 = "49fa9ad90759cfaf522c2a62665f033688b9d84d02f31c6b2505c08a217ad312";
|
2010-08-31 09:19:28 +01:00
|
|
|
};
|
|
|
|
|
2011-12-18 14:49:39 +00:00
|
|
|
cmakeFlags = "-DKICAD_TESTING_VERSION=ON";
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2010-08-31 10:24:49 +01:00
|
|
|
buildInputs = [ unzip 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/";
|
2010-08-22 13:09:47 +01:00
|
|
|
license = "GPLv2";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|