forked from fabian/nix
trivionomicon: athena-bccr: initial idopte support
This commit is contained in:
parent
57f673b495
commit
d1102d5b6f
4 changed files with 83 additions and 10 deletions
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
src = requireFile {
|
||||
url = "https://soportefirmadigital.com";
|
||||
name = "${release.basename}.zip";
|
||||
name = release.filename;
|
||||
|
||||
inherit (release) hash;
|
||||
};
|
||||
|
|
@ -92,6 +92,59 @@
|
|||
|
||||
passthru.pkcs11-path = "lib/x64-athena/libASEP11.so";
|
||||
};
|
||||
|
||||
scmiddleware = {
|
||||
autoPatchelfHook,
|
||||
dpkg,
|
||||
glib,
|
||||
gtk3,
|
||||
libappindicator-gtk3,
|
||||
libnotify,
|
||||
openssl,
|
||||
pcsclite,
|
||||
stdenv,
|
||||
unzip,
|
||||
webkitgtk_4_1,
|
||||
...
|
||||
}:
|
||||
moduleFromDeb "idopte-scmiddleware" {
|
||||
inherit dpkg stdenv unzip;
|
||||
srcPath = srcPaths.idopte;
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
gtk3
|
||||
libappindicator-gtk3
|
||||
libnotify
|
||||
openssl
|
||||
pcsclite
|
||||
stdenv.cc.cc.lib
|
||||
webkitgtk_4_1
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
];
|
||||
|
||||
outputs = ["out" "lib"];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -m755 -d $out/bin $lib/{etc,lib/SCMiddleware}
|
||||
install -m755 usr/lib/SCMiddleware/{idocachesrv,SCManager} $out/bin
|
||||
install -m755 usr/lib/SCMiddleware/*.so $lib/lib/SCMiddleware
|
||||
cp -r etc/id* $lib/etc
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
patchelf --set-rpath $lib/lib/SCMiddleware $lib/lib/SCMiddleware/* $out/bin/*
|
||||
'';
|
||||
|
||||
passthru.pkcs11-path = "lib/SCMiddleware/libidop11.so";
|
||||
};
|
||||
in
|
||||
{
|
||||
gaudi = {
|
||||
|
|
@ -230,3 +283,6 @@ in
|
|||
// lib.optionalAttrs (vendor == "athena") {
|
||||
card-driver = ase-idprotect;
|
||||
}
|
||||
// lib.optionalAttrs (vendor == "idopte") {
|
||||
card-driver = scmiddleware;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue