2017-05-17 20:26:11 +01:00
|
|
|
{ stdenv, fetchpatch, fetchFromGitHub, qmake, pkgconfig
|
2017-04-23 15:52:36 +01:00
|
|
|
, qtbase, qtsvg, qtserialport, boost, libgit2
|
|
|
|
}:
|
2014-10-10 11:43:39 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-05-14 16:18:17 +01:00
|
|
|
name = "fritzing-${version}";
|
2017-04-23 15:52:36 +01:00
|
|
|
version = "0.9.3b";
|
2014-10-10 11:43:39 +01:00
|
|
|
|
2017-04-23 15:52:36 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fritzing";
|
|
|
|
repo = "fritzing-app";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0hpyc550xfhr6gmnc85nq60w00rm0ljm0y744dp0z88ikl04f4s3";
|
2014-10-10 11:43:39 +01:00
|
|
|
};
|
|
|
|
|
2017-04-23 15:52:36 +01:00
|
|
|
parts = fetchFromGitHub {
|
|
|
|
owner = "fritzing";
|
|
|
|
repo = "fritzing-parts";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1d2v8k7p176j0lczx4vx9n9gbg3vw09n2c4b6w0wj5wqmifywhc1";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [(fetchpatch {
|
|
|
|
name = "0001-Squashed-commit-of-the-following.patch";
|
|
|
|
url = "https://aur.archlinux.org/cgit/aur.git/plain/0001-Squashed-commit-of-the-following.patch?h=fritzing";
|
|
|
|
sha256 = "1cv6myidxhy28i8m8v13ghzkvx5978p9dcd8v7885y0l1h3108mf";
|
|
|
|
})];
|
|
|
|
|
|
|
|
buildInputs = [ qtbase qtsvg qtserialport boost libgit2 ];
|
2016-07-17 15:40:27 +01:00
|
|
|
|
2017-05-17 20:26:11 +01:00
|
|
|
nativeBuildInputs = [ qmake pkgconfig ];
|
2014-10-10 11:43:39 +01:00
|
|
|
|
2016-07-17 15:40:27 +01:00
|
|
|
qmakeFlags = [ "phoenix.pro" ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2017-04-23 15:52:36 +01:00
|
|
|
ln -s "$parts" parts
|
|
|
|
'';
|
|
|
|
|
2014-10-10 11:43:39 +01:00
|
|
|
meta = {
|
|
|
|
description = "An open source prototyping tool for Arduino-based projects";
|
|
|
|
homepage = http://fritzing.org/;
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.robberer ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2016-08-02 16:51:05 +01:00
|
|
|
};
|
2014-10-10 11:43:39 +01:00
|
|
|
}
|