trivionomicon: athena-bccr: patch hard-coded FHS paths in idopte driver
This commit is contained in:
parent
913b3acec3
commit
dd366aa20e
2 changed files with 31 additions and 6 deletions
|
|
@ -7,6 +7,9 @@
|
|||
}: let
|
||||
athena = pkgs.${doctrine.prefix}.athena-bccr.${cfg.release};
|
||||
inherit (athena) vendor;
|
||||
|
||||
driver = athena.card-driver.lib;
|
||||
scmiddleware = "${driver}/lib/SCMiddleware";
|
||||
in {
|
||||
environment = {
|
||||
etc =
|
||||
|
|
@ -16,11 +19,12 @@ in {
|
|||
'';
|
||||
}
|
||||
// lib.optionalAttrs (vendor == "athena") {
|
||||
"Athena".source = "${athena.card-driver.lib}/etc/Athena";
|
||||
"Athena".source = "${driver}/etc/Athena";
|
||||
}
|
||||
// lib.optionalAttrs (vendor == "idopte") {
|
||||
"idoss.conf".source = "${athena.card-driver.lib}/etc/idoss.conf";
|
||||
"idoss.lic".source = "${athena.card-driver.lib}/etc/idoss.lic";
|
||||
"idoss.conf".source = "${driver}/etc/idoss.conf";
|
||||
"idoss.lic".source = "${driver}/etc/idoss.lic";
|
||||
"SCMiddleware".source = scmiddleware;
|
||||
};
|
||||
|
||||
systemPackages = [athena.card-driver];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue