2010-10-24 19:01:09 +02:00
|
|
|
{stdenv, fetchgit, qt4, cmake, libxml2, libxslt}:
|
|
|
|
|
|
|
|
let
|
2012-02-17 15:34:42 +01:00
|
|
|
|
2010-10-24 19:01:09 +02:00
|
|
|
srcComponents = fetchgit {
|
2012-02-17 15:34:42 +01:00
|
|
|
url = git://caneda.git.sourceforge.net/gitroot/caneda/components;
|
|
|
|
rev = "34cd36b620e0dfc57ba2d2b6168734ea9a2cfa9a";
|
|
|
|
sha256 = "840f07921eecbf10e38e44e5c61c716295a16c98fbb75016d9a44e7dfee40e59";
|
2010-10-24 19:01:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-02-17 19:04:27 +01:00
|
|
|
name = "caneda-git-2012-02-16";
|
2010-10-24 19:01:09 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
2012-02-17 15:34:42 +01:00
|
|
|
url = git://caneda.git.sourceforge.net/gitroot/caneda/caneda;
|
|
|
|
rev = "fff9e2f7988fe5d062548cafeda1e5cd660769d1";
|
|
|
|
sha256 = "dfbcac97f5a1b41ad9a63392394f37fb294cbf78c576673c9bc4a5370957b2c8";
|
2010-10-24 19:01:09 +02:00
|
|
|
};
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2010-10-24 19:01:09 +02:00
|
|
|
|
|
|
|
buildInputs = [ cmake qt4 libxml2 libxslt ];
|
|
|
|
|
2017-09-01 04:59:37 +02:00
|
|
|
patches = [
|
|
|
|
./gcc6.patch
|
|
|
|
];
|
|
|
|
|
2010-10-24 19:01:09 +02:00
|
|
|
postInstall = ''
|
|
|
|
mkdir $out/share/caneda/components
|
|
|
|
cp -R ${srcComponents}/* $out/share/caneda/components
|
|
|
|
chmod u+w -R $out/share/caneda/components
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Open source EDA software focused on easy of use and portability";
|
2017-08-17 23:57:38 +02:00
|
|
|
homepage = http://caneda.org;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2010-10-24 19:01:09 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|