add bg variants

This commit is contained in:
tnichols217 2025-02-26 19:55:58 -05:00
parent a23d38c90f
commit 05dfbc1a45
20 changed files with 8 additions and 4 deletions

0
.envrc Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

10
build.nix Normal file → Executable file
View File

@ -1,15 +1,17 @@
{ stdenv, imagemagick, envsubst, python3Full, zip, nopng ? false, ... }: { stdenv, imagemagick, envsubst, python3Full, zip, util-linux, nopng ? false, bg ? "none", ... }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "BetaNuBranding"; pname = "BetaNuBranding";
version = "1.0.0"; version = "1.0.1";
src = ./src; src = ./src;
nativeBuildInputs = [ imagemagick envsubst python3Full zip ]; nativeBuildInputs = [ imagemagick envsubst python3Full zip util-linux ];
buildPhase = '' buildPhase = ''
python build.py python build.py
${if nopng then "" else "mogrify -format png -density 2500 -background none out/*.svg" } cd out
${if nopng then "" else "mogrify -format png -density 2500 -background ${bg} *.svg" }
cd ..
''; '';
installPhase = '' installPhase = ''

0
build.sh Normal file → Executable file
View File

0
deploy.nix Normal file → Executable file
View File

0
flake.lock generated Normal file → Executable file
View File

2
flake.nix Normal file → Executable file
View File

@ -46,6 +46,8 @@
packages = rec { packages = rec {
branding = pkgs.callPackage ./build.nix { }; branding = pkgs.callPackage ./build.nix { };
branding-nopng = pkgs.callPackage ./build.nix { nopng = true; }; branding-nopng = pkgs.callPackage ./build.nix { nopng = true; };
branding-white = pkgs.callPackage ./build.nix { bg = "white"; };
branding-black = pkgs.callPackage ./build.nix { bg = "black"; };
deploy = pkgs.callPackage ./deploy.nix { src = branding; }; deploy = pkgs.callPackage ./deploy.nix { src = branding; };
default = branding; default = branding;
}; };

0
src/_brand.yml Normal file → Executable file
View File

0
src/build.py Normal file → Executable file
View File

0
src/colors/black.sh Normal file → Executable file
View File

0
src/colors/color.sh Normal file → Executable file
View File

0
src/colors/red.sh Normal file → Executable file
View File

0
src/colors/white.sh Normal file → Executable file
View File

0
src/designs/OX.sh Normal file → Executable file
View File

0
src/designs/logo.sh Normal file → Executable file
View File

0
src/designs/logomark.sh Normal file → Executable file
View File

0
src/designs/stacked.sh Normal file → Executable file
View File

0
src/post.sh Normal file → Executable file
View File

0
src/style.sh Normal file → Executable file
View File

0
src/template.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 313 B

After

Width:  |  Height:  |  Size: 313 B