Compare commits

..

2 Commits

Author SHA1 Message Date
30c99f8d8d
packages.bonfire-docs: fix license generation for multiple licenses
Some checks failed
nix / check (push) Failing after 3m17s
2024-08-09 16:56:27 +05:00
464d0e848a
new: packages.blender: pass for cache
new: packages.wezterm: pass for cache
2024-08-09 16:55:07 +05:00
5 changed files with 63 additions and 4 deletions

View File

@ -0,0 +1,13 @@
{
bonLib,
lib,
pkgs,
...
}:
(pkgs.blender.override {cudaSupport = true;}).overrideAttrs (old: {
meta =
old.meta
// {
description = old.meta.description + " (CUDA enabled)";
};
})

View File

@ -53,15 +53,18 @@ in
dontConfigure = true; dontConfigure = true;
doCheck = false; doCheck = false;
buildPhase = '' buildPhase = let
nixosModulesDocsList = map (module_: "ln -s ${module_.commonMarkdown} src/nixosModules/${module_.name}.md") nixosModulesDoc.documentation;
packageDocsList = map (package_: "ln -s ${package_.commonMarkdown} src/packages/${package_.name}.md") packagesDoc.documentation;
in ''
runHook preBuild runHook preBuild
ln -s ${../../README.md} src/README.md ln -s ${../../README.md} src/README.md
${lib.concatStringsSep "\n" (map (module_: "ln -s ${module_.commonMarkdown} src/nixosModules/${module_.name}.md") nixosModulesDoc.documentation)} ${lib.concatStringsSep "\n" nixosModulesDocsList}
substituteInPlace src/SUMMARY.md --replace '{{nixosModulesSummary}}' '${lib.concatStringsSep "\n" nixosModulesDoc.summary}' substituteInPlace src/SUMMARY.md --replace '{{nixosModulesSummary}}' '${lib.concatStringsSep "\n" nixosModulesDoc.summary}'
${lib.concatStringsSep "\n" (map (package_: "ln -s ${package_.commonMarkdown} src/packages/${package_.name}.md") packagesDoc.documentation)} ${lib.concatStringsSep "\n" packageDocsList}
substituteInPlace src/SUMMARY.md --replace '{{packagesSummary}}' '${lib.concatStringsSep "\n" packagesDoc.summary}' substituteInPlace src/SUMMARY.md --replace '{{packagesSummary}}' '${lib.concatStringsSep "\n" packagesDoc.summary}'
mdbook build mdbook build

View File

@ -46,7 +46,19 @@
license = lib.optionalString (drv.meta ? license) "License: ${ license = lib.optionalString (drv.meta ? license) "License: ${
if lib.isList drv.meta.license if lib.isList drv.meta.license
then (map (license: "[${drv.meta.license.fullName}](${drv.meta.license.url})") drv.meta.license) then
lib.concatStringsSep ", " (map (license: let
licenseName =
if license.free
then license.fullName
else if license ? shortName
then license.shortName
else license.fullName;
in
if license ? url
then "[${licenseName}](${license.url})"
else licenseName)
drv.meta.license)
else "[${drv.meta.license.fullName}](${drv.meta.license.url})" else "[${drv.meta.license.fullName}](${drv.meta.license.url})"
}"; }";

View File

@ -18,6 +18,7 @@
craneLib = inputs.crane.mkLib pkgs; craneLib = inputs.crane.mkLib pkgs;
fenixPkgs = inputs.fenix.packages.${system}; fenixPkgs = inputs.fenix.packages.${system};
nixvimPkgs = inputs.nixvim.legacyPackages.${system}; nixvimPkgs = inputs.nixvim.legacyPackages.${system};
weztermPkgs = inputs.wezterm.packages.${system};
}; };
in in
bonLib.collectPackages platformInputs { bonLib.collectPackages platformInputs {
@ -76,6 +77,20 @@ in
builder = {pkgs, ...}: pkgs.callPackage; builder = {pkgs, ...}: pkgs.callPackage;
}; };
# Pass for cache
blender = {
source = ./blender;
platforms = ["x86_64-linux"];
builder = {...}: import;
};
wezterm = {
source = ./wezterm;
platforms = ["x86_64-linux"];
builder = {...}: import;
};
# Container images # Container images
nix-minimal = { nix-minimal = {

View File

@ -0,0 +1,16 @@
{
lib,
weztermPkgs,
...
}:
weztermPkgs.default.overrideAttrs (old: {
pname = "wezterm";
meta =
old.meta
// {
homepage = "https://github.com/wez/wezterm";
description = "A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust";
license = lib.licenses.mit;
};
})