akkuPackages.*: add an 'akku-' prefix to the package names (#346987)

This commit is contained in:
Weijia Wang 2024-11-22 10:49:13 +01:00 committed by GitHub
commit cbccc5f195
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,11 +1,5 @@
{ lib, newScope, stdenv, fetchurl }:
{ lib, newScope, fetchurl }:
lib.makeScope newScope (self: rec {
fetchAkku = { name, url, sha256, ... }:
fetchurl {
inherit url sha256;
};
akkuDerivation = self.callPackage ./akkuDerivation.nix { };
akku = self.callPackage ./akku.nix { };
@ -14,11 +8,11 @@ lib.makeScope newScope (self: rec {
overrides = self.callPackage ./overrides.nix { };
makeAkkuPackage = akkuself: pname:
{ version, dependencies, dev-dependencies, license, url, sha256, source, synopsis ? "", homepage ? "", ... }:
(akkuDerivation rec {
inherit version pname;
src = fetchAkku {
(akkuDerivation {
pname = "akku-${pname}";
inherit version;
src = fetchurl {
inherit url sha256;
name = pname;
};
buildInputs = builtins.map (x: akkuself.${x}) dependencies;
r7rs = source == "snow-fort";