summary refs log tree commit diff
path: root/pkgs/applications/science/electronics/fritzing/default.nix
blob: 3f80ed2866d3a821bea9eed1480091a6f3abb99d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchurl, qtbase, qtsvg, qmakeHook, boost }:

stdenv.mkDerivation rec {
  version = "0.9.0b";
  name = "fritzing-${version}";

  src = fetchurl {
    url = "http://fritzing.org/download/${version}/source-tarball/fritzing-${version}.source.tar_1.bz2";
    sha256 = "181qnknq1j5x075icpw2qk0sc4wcj9f2hym533vs936is0wxp2gk";
  };

  unpackPhase = ''
    tar xjf ${src}
  '';

  buildInputs = [ qtbase qtsvg boost qmakeHook ];

  qmakeFlags = [ "phoenix.pro" ];

  preConfigure = ''
    cd fritzing-${version}.source
  '';
  
  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 ];
  }; 
}