13 stdenv.mkDerivation rec {
14 pname = "alsa-scarlett-gui";
17 src = fetchFromGitHub {
18 owner = "geoffreybennett";
21 sha256 = "sha256-+74JRQn2xwgPHZSrp5b+uny0+aLnsFvx/cOKIdj4J40=";
24 NIX_CFLAGS_COMPILE = [ "-Wno-error=deprecated-declarations" ];
26 makeFlags = [ "DESTDIR=\${out}" "PREFIX=''" ];
27 sourceRoot = "${src.name}/src";
28 nativeBuildInputs = [ pkg-config wrapGAppsHook4 makeWrapper ];
29 buildInputs = [ gtk4 alsa-lib openssl ];
31 wrapProgram $out/bin/alsa-scarlett-gui --prefix PATH : ${lib.makeBinPath [ alsa-utils ]}
33 substituteInPlace $out/share/applications/vu.b4.alsa-scarlett-gui.desktop \
34 --replace "Exec=/bin/alsa-scarlett-gui" "Exec=$out/bin/alsa-scarlett-gui"
37 # causes redefinition of _FORTIFY_SOURCE
38 hardeningDisable = [ "fortify3" ];
41 description = "GUI for alsa controls presented by Focusrite Scarlett Gen 2/3/4 Mixer Driver";
42 mainProgram = "alsa-scarlett-gui";
43 homepage = "https://github.com/geoffreybennett/alsa-scarlett-gui";
44 license = licenses.gpl3Plus;
45 maintainers = with maintainers; [ mdorman ];
46 platforms = platforms.linux;