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