2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, intltool
|
|
|
|
, gtk3
|
|
|
|
, wrapGAppsHook
|
|
|
|
, alsaLib
|
2020-09-25 04:45:31 +00:00
|
|
|
, libjack2
|
2020-04-24 23:36:52 +00:00
|
|
|
, libpulseaudio
|
|
|
|
, fftw
|
2020-09-25 04:45:31 +00:00
|
|
|
, jackSupport ? true
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lingot";
|
|
|
|
version = "1.0.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://savannah/${pname}/${pname}-${version}.tar.gz";
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "03x0qqb9iarjapvii3ja522vkxrqv1hwix6b1r53is48p5xwgf3i";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
intltool
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
alsaLib
|
|
|
|
libpulseaudio
|
|
|
|
fftw
|
2020-09-25 04:45:31 +00:00
|
|
|
] ++ stdenv.lib.optional jackSupport libjack2;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
configureFlags = stdenv.lib.optional (!jackSupport) "--disable-jack";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Not a Guitar-Only tuner";
|
|
|
|
homepage = "https://www.nongnu.org/lingot/";
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ viric ];
|
|
|
|
};
|
|
|
|
}
|