2010-08-31 10:19:28 +02:00
|
|
|
{stdenv, fetchsvn, unzip, cmake, mesa, wxGTK, zlib, libX11}:
|
2010-08-22 14:09:47 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-08-31 10:19:28 +02:00
|
|
|
name = "kicad-svn-2518";
|
2010-08-22 14:09:47 +02:00
|
|
|
|
2010-08-31 10:19:28 +02:00
|
|
|
src = fetchsvn {
|
|
|
|
url = https://kicad.svn.sourceforge.net/svnroot/kicad/trunk/kicad;
|
|
|
|
rev = 2518;
|
|
|
|
sha256 = "05z4fnkvvy91d0krf72q8xyislwh3zg8k0gy9w18caizbla5sih5";
|
2010-08-22 14:09:47 +02:00
|
|
|
};
|
|
|
|
|
2010-08-31 10:19:28 +02:00
|
|
|
srcLibrary = fetchsvn {
|
|
|
|
url = https://kicad.svn.sourceforge.net/svnroot/kicad/trunk/kicad-library;
|
|
|
|
rev = 2518;
|
|
|
|
sha256 = "05sfmbp1z3hjxzcspj4vpprww5bxc6hq4alcjlc1vg6cvx2qgb9s";
|
|
|
|
};
|
|
|
|
|
|
|
|
# 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;
|
|
|
|
|
|
|
|
buildInputs = [ unzip cmake mesa wxGTK zlib libX11 ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|