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