summaryrefslogtreecommitdiff
path: root/pkgs/athena-bccr/default.nix
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2025-07-06 15:14:43 -0600
committerAlejandro Soto <alejandro@34project.org>2025-07-06 16:29:43 -0600
commitc839b6adb914e8af57317389ceb8eb68c31f3e22 (patch)
tree55f6db5e632ce39e085e47bbbd17c208399ffeb9 /pkgs/athena-bccr/default.nix
parent8d81cc1edb68363502315a848d7074435da1e963 (diff)
pkgs/athena-bccr: initial commit
Diffstat (limited to 'pkgs/athena-bccr/default.nix')
-rw-r--r--pkgs/athena-bccr/default.nix23
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}; })