diff options
author | sefidel <contact@sefidel.net> | 2021-12-31 21:36:32 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2021-12-31 21:42:28 +0900 |
commit | 4dae1769aaf420643f99685c420197239f6b8755 (patch) | |
tree | 0a177f703b12147950d6d1a5bb66a24d5ae05b5a /packages | |
parent | 729d0b0dec6453bc69571c0e142e77170fa30fad (diff) | |
download | nixrc-4dae1769aaf420643f99685c420197239f6b8755.tar.gz nixrc-4dae1769aaf420643f99685c420197239f6b8755.zip |
*: fix minor designs
Diffstat (limited to 'packages')
-rw-r--r-- | packages/default.nix | 2 | ||||
-rw-r--r-- | packages/phocus/default.nix | 59 |
2 files changed, 61 insertions, 0 deletions
diff --git a/packages/default.nix b/packages/default.nix index d2f8dc9..dac720b 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -1,5 +1,6 @@ { self, neovim, ... } @ inputs: let + pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux; extra = inputs.nixpkgs-extra.packages.x86_64-linux; in { @@ -8,5 +9,6 @@ in "iosevka-pure-bin" = extra.iosevka-pure-bin; "sf-mono-bin" = extra.sf-mono-bin; "sf-mono-liga-bin" = extra.sf-mono-liga-bin; + "phocus" = pkgs.callPackage ./phocus { src = inputs.phocus; }; "wallpapers" = inputs.wallpapers; } 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 ]; + }; +} |