From 4dae1769aaf420643f99685c420197239f6b8755 Mon Sep 17 00:00:00 2001 From: sefidel Date: Fri, 31 Dec 2021 21:36:32 +0900 Subject: *: fix minor designs --- packages/phocus/default.nix | 59 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 packages/phocus/default.nix (limited to 'packages/phocus') diff --git a/packages/phocus/default.nix b/packages/phocus/default.nix new file mode 100644 index 0000000..a1a9014 --- /dev/null +++ b/packages/phocus/default.nix @@ -0,0 +1,59 @@ +{ 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 ]; + }; +} -- cgit 1.4.1