Build custom SCSS as part of nix package
This vendors-in the latest Bootstrap release SCSS files from version 5.3.8.
This commit is contained in:
parent
20eda6a1d8
commit
2dab6bcaf0
109 changed files with 11295 additions and 42 deletions
15
default.nix
15
default.nix
|
|
@ -9,5 +9,18 @@ pkgs.buildGoModule rec {
|
|||
subPackages = [];
|
||||
version = "0.0.11";
|
||||
# Needs to be updated after every modification of go.mod/go.sum
|
||||
vendorHash = "sha256-HJg9c+ZUWxQgu5FBgcc0BMUWkkK6YyFVVBrFF0oUz/8=";
|
||||
vendorHash = "sha256-8OxBra5YoqaFXj5oZEZfoCS4Om8rWkP1WD99eT9UjMg=";
|
||||
|
||||
nativeBuildInputs = [ pkgs.sass ];
|
||||
|
||||
preBuild = ''
|
||||
|
||||
SASS_SRC_DIR="./scss"
|
||||
CSS_OUTPUT_DIR="./htmlpage/static/css/"
|
||||
|
||||
mkdir -p "$CSS_OUTPUT_DIR"
|
||||
|
||||
echo "Compiling $SASS_SRC_DIR/custom.scss to $CSS_OUTPUT_DIR/bootstrap.css..."
|
||||
sass --style=compressed --trace "$SASS_SRC_DIR/custom.scss":"$CSS_OUTPUT_DIR/bootstrap.css"
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue