31 lines
736 B
Nix
31 lines
736 B
Nix
{ lib, stdenv }:
|
|
stdenv.mkDerivation {
|
|
pname = "qseecom-supplicant";
|
|
version = "0.1.0";
|
|
|
|
src = lib.fileset.toSource {
|
|
root = ./.;
|
|
fileset = lib.fileset.unions [
|
|
./Makefile
|
|
./qseecom-supplicant.c
|
|
./qseecom-supplicant.service
|
|
];
|
|
};
|
|
|
|
makeFlags = [
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
"PREFIX=${placeholder "out"}"
|
|
];
|
|
|
|
postInstall = ''
|
|
substituteInPlace $out/lib/systemd/system/qseecom-supplicant.service \
|
|
--replace-fail /usr/local/bin/ $out/bin/
|
|
'';
|
|
|
|
meta = {
|
|
description = "Listeners for Qualcomm QSEE trusted apps, for Linux's QSEECOM TEE driver";
|
|
license = lib.licenses.gpl2Only;
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "qseecom-supplicant";
|
|
};
|
|
}
|