6 lib.makeScope newScope (self: rec {
7 akkuDerivation = self.callPackage ./akkuDerivation.nix { };
8 akku = self.callPackage ./akku.nix { };
12 overrides = self.callPackage ./overrides.nix { };
28 pname = "akku-${pname}";
33 buildInputs = builtins.map (x: akkuself.${x}) dependencies;
34 r7rs = source == "snow-fort";
35 nativeBuildInputs = builtins.map (x: akkuself.${x}) dev-dependencies;
36 unpackPhase = "tar xf $src";
38 meta.homepage = homepage;
39 meta.description = synopsis;
46 // (with lib.licenses; {
48 "artistic" = artistic2;
50 "bsd-1-clause" = bsd1;
51 "bsd-2-clause" = bsd2;
52 "bsd-3-clause" = bsd3;
61 "lgpl-2.0+" = lgpl2Plus;
62 "lgpl-2.1" = lgpl21Only;
63 "lgpl-2.1-or-later" = lgpl21Plus;
66 "public-domain" = publicDomain;
69 "zlib-acknowledgement" = zlib;
73 if builtins.isList license then map stringToLicense license else stringToLicense license;
75 ({ "${pname}" = lib.id; } // overrides)."${pname}";
76 deps = lib.importTOML ./deps.toml;
77 packages = lib.makeScope self.newScope (akkuself: lib.mapAttrs (makeAkkuPackage akkuself) deps);
79 lib.recurseIntoAttrs packages;