Rename project to FeDIY and update related configurations and documentation

This commit is contained in:
2026-05-23 09:53:29 -05:00
parent d61a91aac8
commit 6a825d1e83
6 changed files with 30 additions and 29 deletions
+8 -8
View File
@@ -1,28 +1,28 @@
{ pkgs }:
let
lib = pkgs.lib;
templateName = builtins.baseNameOf (toString ./.);
projectName = builtins.baseNameOf (toString ./.);
in
{
${templateName} = pkgs.stdenvNoCC.mkDerivation {
pname = templateName;
${projectName} = pkgs.stdenvNoCC.mkDerivation {
pname = projectName;
version = "0.1.0";
src = ./.;
dontBuild = true;
installPhase = ''
mkdir -p $out/share/${templateName}
mkdir -p $out/share/${projectName}
if [ -d src ]; then
cp -r src $out/share/${templateName}/
cp -r src $out/share/${projectName}/
fi
for f in README.md project.toml flake.nix default.nix shell.nix Makefile .editorconfig .gitignore; do
if [ -f "$f" ]; then
cp "$f" $out/share/${templateName}/
cp "$f" $out/share/${projectName}/
fi
done
'';
meta = with lib; {
description = "Template project: ${templateName}";
license = licenses.unfreeRedistributable;
description = "FeDIY project source bundle: ${projectName}";
license = licenses.cc-by-sa-40;
platforms = platforms.all;
};
};