2010-10-24 18:01:09 +01:00
|
|
|
{stdenv, fetchgit, qt4, cmake, libxml2, libxslt}:
|
|
|
|
|
|
|
|
let
|
2012-02-17 14:34:42 +00:00
|
|
|
|
2010-10-24 18:01:09 +01:00
|
|
|
srcComponents = fetchgit {
|
2012-02-17 14:34:42 +00:00
|
|
|
url = git://caneda.git.sourceforge.net/gitroot/caneda/components;
|
|
|
|
rev = "34cd36b620e0dfc57ba2d2b6168734ea9a2cfa9a";
|
|
|
|
sha256 = "840f07921eecbf10e38e44e5c61c716295a16c98fbb75016d9a44e7dfee40e59";
|
2010-10-24 18:01:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-02-17 18:04:27 +00:00
|
|
|
name = "caneda-git-2012-02-16";
|
2010-10-24 18:01:09 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
2012-02-17 14:34:42 +00:00
|
|
|
url = git://caneda.git.sourceforge.net/gitroot/caneda/caneda;
|
|
|
|
rev = "fff9e2f7988fe5d062548cafeda1e5cd660769d1";
|
|
|
|
sha256 = "dfbcac97f5a1b41ad9a63392394f37fb294cbf78c576673c9bc4a5370957b2c8";
|
2010-10-24 18:01:09 +01:00
|
|
|
};
|
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2010-10-24 18:01:09 +01:00
|
|
|
|
|
|
|
buildInputs = [ cmake qt4 libxml2 libxslt ];
|
|
|
|
|
2017-09-01 03:59:37 +01:00
|
|
|
patches = [
|
|
|
|
./gcc6.patch
|
|
|
|
];
|
|
|
|
|
2010-10-24 18:01:09 +01: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 22:57:38 +01:00
|
|
|
homepage = http://caneda.org;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2010-10-24 18:01:09 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|