Commit 0055c6a introduced a new preConfigure hook that sets the right qmake path. Unfortunately the mkDerivation attributes of fritzing override the whole configurePhase, so this hook isn't run at all. This fixes the build of fritzing and it now successfully compiles on my machine. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
34 lines
806 B
Nix
34 lines
806 B
Nix
{ stdenv, fetchurl, qtbase, qtsvg, 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 ];
|
|
|
|
configurePhase = ''
|
|
runHook preConfigure
|
|
cd fritzing-${version}.source
|
|
echo $PATH
|
|
qmake PREFIX=$out phoenix.pro
|
|
runHook postConfigure
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|