nixos-configs/homeManagerModules/firefox/custom-css/default.nix

27 lines
402 B
Nix
Raw Normal View History

{
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
'';
}