mirror of
https://github.com/beta-nu-theta-chi/branding.git
synced 2025-12-07 11:04:46 +00:00
add bg variants
This commit is contained in:
parent
a23d38c90f
commit
05dfbc1a45
10
build.nix
Normal file → Executable file
10
build.nix
Normal file → Executable 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
deploy.nix
Normal file → Executable file
0
deploy.nix
Normal file → Executable file
0
flake.lock
generated
Normal file → Executable file
0
flake.lock
generated
Normal file → Executable file
2
flake.nix
Normal file → Executable file
2
flake.nix
Normal file → Executable 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
0
src/_brand.yml
Normal file → Executable file
0
src/build.py
Normal file → Executable file
0
src/build.py
Normal file → Executable file
0
src/colors/black.sh
Normal file → Executable file
0
src/colors/black.sh
Normal file → Executable file
0
src/colors/color.sh
Normal file → Executable file
0
src/colors/color.sh
Normal file → Executable file
0
src/colors/red.sh
Normal file → Executable file
0
src/colors/red.sh
Normal file → Executable file
0
src/colors/white.sh
Normal file → Executable file
0
src/colors/white.sh
Normal file → Executable file
0
src/designs/OX.sh
Normal file → Executable file
0
src/designs/OX.sh
Normal file → Executable file
0
src/designs/logo.sh
Normal file → Executable file
0
src/designs/logo.sh
Normal file → Executable file
0
src/designs/logomark.sh
Normal file → Executable file
0
src/designs/logomark.sh
Normal file → Executable file
0
src/designs/stacked.sh
Normal file → Executable file
0
src/designs/stacked.sh
Normal file → Executable file
0
src/post.sh
Normal file → Executable file
0
src/post.sh
Normal file → Executable file
0
src/style.sh
Normal file → Executable file
0
src/style.sh
Normal file → Executable file
0
src/template.svg
Normal file → Executable file
0
src/template.svg
Normal file → Executable file
|
Before Width: | Height: | Size: 313 B After Width: | Height: | Size: 313 B |
Loading…
Reference in New Issue
Block a user