2013-04-01 03:11:21 +01:00
|
|
|
{ stdenv, fetchurl, fetchbzr, unzip, cmake, mesa, gtk, wxGTK, zlib, libX11,
|
|
|
|
gettext, cups } :
|
2010-08-22 13:09:47 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-04-01 03:11:21 +01:00
|
|
|
name = "kicad-20130325";
|
2010-08-22 13:09:47 +01:00
|
|
|
|
2011-12-18 14:49:39 +00:00
|
|
|
src = fetchurl {
|
2013-04-01 03:11:21 +01:00
|
|
|
url = "http://iut-tice.ujf-grenoble.fr/cao/kicad-sources-stable_2013-03-25_BZR4005.zip";
|
|
|
|
sha256 = "0hg2aiis14am7mmpimcxnxvhy7c7fr5rgzlk6rjv44d9m0f9957m";
|
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";
|
2013-04-01 03:11:21 +01:00
|
|
|
revision = 220;
|
|
|
|
sha256 = "0l2lblgnm51n2w1p4ifpwdvq04rxgq73zrfxlhqa9zdlyh4rcddb";
|
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;
|
|
|
|
};
|
|
|
|
}
|