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