fmit: 1.0.0 -> 1.0.5
Now with Qt 5 and a new build system. Who uses "make install" anyway?
This commit is contained in:
parent
5c90fed5d7
commit
9704396f09
|
@ -1,32 +1,51 @@
|
||||||
{ stdenv, fetchFromGitHub, alsaLib, cmake, fftw
|
# FIXME: upgrading qt5Full (Qt 5.3) to qt5.{base,multimedia} (Qt 5.4) breaks
|
||||||
, freeglut, libjack2, libXmu, qt4 }:
|
# the default Qt audio capture source!
|
||||||
|
{ stdenv, fetchFromGitHub, alsaLib, fftw, freeglut, libjack2, qt5Full }:
|
||||||
|
|
||||||
let version = "1.0.0"; in
|
let version = "1.0.5"; in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "fmit-${version}";
|
name = "fmit-${version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
sha256 = "13y9csv34flz7065kg69h99hd7d9zskq12inmkf34l4qjyk7c185";
|
sha256 = "1p49ykg7mf62xrn08fqss8yr1nf53mm8w9zp2sgcy48bfsa9xbpy";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
repo = "fmit";
|
repo = "fmit";
|
||||||
owner = "gillesdegottex";
|
owner = "gillesdegottex";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ alsaLib fftw freeglut libjack2 libXmu qt4 ];
|
buildInputs = [ alsaLib fftw freeglut libjack2 qt5Full ];
|
||||||
nativeBuildInputs = [ cmake ];
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace fmit.pro --replace '$$FMITVERSIONGITPRO' '${version}'
|
||||||
|
substituteInPlace distrib/fmit.desktop \
|
||||||
|
--replace "Icon=fmit" "Icon=$out/share/pixmaps/fmit.svg"
|
||||||
|
substituteInPlace src/main.cpp --replace "PREFIX" "\"$out\""
|
||||||
|
'';
|
||||||
|
|
||||||
|
configurePhase = ''
|
||||||
|
qmake CONFIG+="acs_alsa acs_jack" fmit.pro
|
||||||
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
install -D fmit $out/bin/fmit
|
||||||
|
install -Dm644 distrib/fmit.desktop $out/share/applications/fmit.desktop
|
||||||
|
install -Dm644 ui/images/fmit.svg $out/share/pixmaps/fmit.svg
|
||||||
|
mkdir -p $out/share/fmit
|
||||||
|
cp -R tr $out/share/fmit
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
inherit version;
|
inherit version;
|
||||||
description = "Free Musical Instrument Tuner";
|
description = "Free Musical Instrument Tuner";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
FMIT is a graphical utility for tuning your musical instruments, with
|
FMIT is a graphical utility for tuning musical instruments, with error
|
||||||
error and volume history and advanced features.
|
and volume history, and advanced features.
|
||||||
'';
|
'';
|
||||||
homepage = http://gillesdegottex.github.io/fmit/;
|
homepage = http://gillesdegottex.github.io/fmit/;
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
platforms = with platforms; linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ nckx ];
|
maintainers = with maintainers; [ nckx ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue