{ lib, stdenvNoCC, sass, src }: let colors = { base00 = "18191f"; base01 = "17171b"; base02 = "c9cdd7"; base03 = "6b7089"; base04 = "090a10"; base05 = "c6c8d1"; base06 = "d0d2db"; base07 = "27282e"; base08 = "e27878"; base09 = "e2a478"; base0A = "e9b189"; base0B = "b4be82"; base0C = "89b8c2"; base0D = "84a0c6"; base0E = "a093c7"; base0F = "a0a0d3"; }; in stdenvNoCC.mkDerivation rec { pname = "phocus"; version = "unstable-2021-05-05"; inherit src; patchPhase = with colors; '' runHook prePatch substituteInPlace scss/gtk-3.0/_colors.scss \ --replace 16161c ${base01} \ --replace 232530 ${base00} \ --replace 2e303e ${base02} \ --replace e95678 ${base08} \ --replace f09383 ${base0A} \ --replace fab795 ${base0A} \ --replace 29d398 ${base0B} \ --replace 1eb980 ${base0B} \ --replace 26bbd9 ${base0D} \ --replace ee64ae ${base0E} \ --replace ec6a88 ${base08} \ --replace fdf0ed ${base05} \ --replace aabbcc ${base0B} \ --replace ccbbaa ${base08} runHook postPatch ''; nativeBuildInputs = [ sass ]; installFlags = [ "DESTDIR=$(out)" "PREFIX=" ]; meta = with lib; { description = "phocus with nightlamp (iceberg variant) theme"; homepage = "https://git.sr.ht/~boppy/phocus"; license = [ licenses.mit ]; maintainers = with maintainers; [ boppyt ]; }; }