2022-11-21 17:40:18 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, intltool
|
|
|
|
, wrapGAppsHook
|
2022-11-21 17:40:18 +00:00
|
|
|
, gtk3
|
2021-06-28 23:13:55 +00:00
|
|
|
, alsa-lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, libpulseaudio
|
|
|
|
, fftw
|
2023-03-27 19:17:25 +00:00
|
|
|
, fftwFloat
|
2022-11-21 17:40:18 +00:00
|
|
|
, json_c
|
|
|
|
, libjack2
|
2020-09-25 04:45:31 +00:00
|
|
|
, jackSupport ? true
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lingot";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "1.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://savannah/${pname}/${pname}-${version}.tar.gz";
|
2022-11-21 17:40:18 +00:00
|
|
|
sha256 = "sha256-xPl+SWo2ZscHhtE25vLMxeijgT6wjNo1ys1+sNFvTVY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
intltool
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
2021-06-28 23:13:55 +00:00
|
|
|
alsa-lib
|
2020-04-24 23:36:52 +00:00
|
|
|
libpulseaudio
|
|
|
|
fftw
|
2023-03-27 19:17:25 +00:00
|
|
|
fftwFloat
|
2022-11-21 17:40:18 +00:00
|
|
|
json_c
|
2021-01-17 00:15:33 +00:00
|
|
|
] ++ lib.optional jackSupport libjack2;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
configureFlags = 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/";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = with lib.platforms; linux;
|
|
|
|
maintainers = with lib.maintainers; [ viric ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|