initial commit
This commit is contained in:
commit
4e5eca1925
1 changed files with 1195 additions and 0 deletions
31
package.nix
Normal file
31
package.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ 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";
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue