diff options
| author | Alejandro Soto <alejandro@34project.org> | 2025-07-06 15:14:43 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2025-07-06 16:29:43 -0600 |
| commit | c839b6adb914e8af57317389ceb8eb68c31f3e22 (patch) | |
| tree | 55f6db5e632ce39e085e47bbbd17c208399ffeb9 /pkgs/athena-bccr/default.nix | |
| parent | 8d81cc1edb68363502315a848d7074435da1e963 (diff) | |
pkgs/athena-bccr: initial commit
Diffstat (limited to 'pkgs/athena-bccr/default.nix')
| -rw-r--r-- | pkgs/athena-bccr/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/athena-bccr/default.nix b/pkgs/athena-bccr/default.nix new file mode 100644 index 0000000..16e2e36 --- /dev/null +++ b/pkgs/athena-bccr/default.nix @@ -0,0 +1,23 @@ +{ callPackage +, lib +}: +let + latest = "deb64-rev26"; + + releases = lib.mapAttrs (name: release: release // { name = name; }) (import ./releases.nix); + unwrappedFor = release: lib.mapAttrs (_: pkg: callPackage pkg { }) (callPackage ./unwrapped.nix { inherit release; }); + + pkgsForRelease = release: + let + libasep11 = "${unwrapped.ase-idprotect}/lib/x64-athena/libASEP11.so"; + unwrapped = unwrappedFor release; + in + { + inherit libasep11; + inherit (unwrapped) ase-idprotect; + + shell = callPackage ./fhs-env.nix { inherit unwrapped; }; + firmador = callPackage ./firmador.nix { inherit libasep11; }; + }; +in +lib.mapAttrs (_: pkgsForRelease) (releases // { latest = releases.${latest}; }) |
