Hello! Back again, needing help to package yet another piece of software. As it turns out, my new audio interface needs this driver in order to get the full functionality and use the control GUI.
I went ahead a whipped up a quick Nix derivation by copying the package source for the control GUI, added a couple dependencies, and got it to install without errors, at least. However, I still get the same error message as before, indicating that the driver isn’t working as intended:
My derivation is as follows:
{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
makeWrapper,
alsa-utils,
alsa-lib,
gtk4,
json_c,
libgcc,
openssl,
systemdLibs,
wrapGAppsHook4,
zlib
}:
stdenv.mkDerivation (finalAttrs: {
pname = "fcp-support";
version = "0.5";
src = fetchFromGitHub {
owner = "geoffreybennett";
repo = "fcp-support";
tag = finalAttrs.version;
hash = "sha256-HqlmfjLKVzIJMsxG2SEslB/NxnMKQH6arM4CC+hoyJU=";
};
env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=deprecated-declarations" ];
makeFlags = [
"DESTDIR=\${out}"
"PREFIX=''"
];
nativeBuildInputs = [
pkg-config
wrapGAppsHook4
makeWrapper
json_c
libgcc
systemdLibs
];
buildInputs = [
gtk4
alsa-lib
openssl
zlib
];
# causes redefinition of _FORTIFY_SOURCE
hardeningDisable = [ "fortify3" ];
meta = {
description = "Support tools for alsa controls presented by big Focusrite Scarlett Gen 4 Mixer Driver";
homepage = "https://github.com/geoffreybennett/fcp-support";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
};
})
Any ideas what I’m missing? I think possibly a udev rule?
I’m also pretty sure I have some unnecessary dependencies in there, as well.





