nixos-configs/homeManagerModules/firefox/custom-css/default.nix
matt1432 b402f01d49
All checks were successful
Discord / discord commits (push) Has been skipped
feat(firefox): write custom-css in scss
2024-12-10 16:40:51 -05:00

26 lines
402 B
Nix

{
stdenv,
dart-sass,
firefox-gx,
rounding,
...
}:
stdenv.mkDerivation {
pname = "custom-css";
inherit (firefox-gx) version;
src = ./.;
nativeBuildInputs = [dart-sass];
buildPhase = ''
substituteInPlace ./style.scss --replace-fail \
'$rounding' '${toString rounding}px'
sass ./style.scss ./style.css
'';
installPhase = ''
cp -rf ./style.css $out
'';
}