2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, alsa-lib
|
|
|
|
, gtk4
|
|
|
|
, wrapGAppsHook4
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "alsa-scarlett-gui";
|
|
|
|
version = "unstable-2022-08-11";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "geoffreybennett";
|
|
|
|
repo = pname;
|
|
|
|
rev = "65c0f6aa432501355803a823be1d3f8aafe907a8";
|
|
|
|
sha256 = "sha256-wzBOPTs8PTHzu5RpKwKhx552E7QnDx2Zn4OFaes8Q2I=";
|
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-Wno-error=deprecated-declarations" ];
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
makeFlags = [ "DESTDIR=\${out}" "PREFIX=''" ];
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/src";
|
2022-12-17 10:02:37 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook4 ];
|
|
|
|
buildInputs = [ gtk4 alsa-lib ];
|
2023-08-04 22:07:22 +00:00
|
|
|
postInstall = ''
|
2023-08-22 20:05:09 +00:00
|
|
|
substituteInPlace $out/share/applications/vu.b4.alsa-scarlett-gui.desktop \
|
|
|
|
--replace "Exec=/bin/alsa-scarlett-gui" "Exec=$out/bin/alsa-scarlett-gui"
|
2023-08-04 22:07:22 +00:00
|
|
|
'';
|
2022-12-17 10:02:37 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
# causes redefinition of _FORTIFY_SOURCE
|
|
|
|
hardeningDisable = [ "fortify3" ];
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "GUI for alsa controls presented by Focusrite Scarlett Gen 2/3 Mixer Driver";
|
|
|
|
homepage = "https://github.com/geoffreybennett/alsa-scarlett-gui";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ sebtm ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|