diff options
author | Adrian Kummerlaender | 2018-05-05 13:02:04 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2018-05-05 13:02:04 +0200 |
commit | dea9a66fccca94ed27387246e384f3dcb20501f6 (patch) | |
tree | 06ed6657b0d014d5e8faa0a20b267bf6a9f34472 /gui/pkgs | |
parent | 74951f7eb0d8914201a5a4fa1b534abfe0ecfa0d (diff) | |
download | nixos_home-dea9a66fccca94ed27387246e384f3dcb20501f6.tar nixos_home-dea9a66fccca94ed27387246e384f3dcb20501f6.tar.gz nixos_home-dea9a66fccca94ed27387246e384f3dcb20501f6.tar.bz2 nixos_home-dea9a66fccca94ed27387246e384f3dcb20501f6.tar.lz nixos_home-dea9a66fccca94ed27387246e384f3dcb20501f6.tar.xz nixos_home-dea9a66fccca94ed27387246e384f3dcb20501f6.tar.zst nixos_home-dea9a66fccca94ed27387246e384f3dcb20501f6.zip |
Basic attempt at a better structure
Diffstat (limited to 'gui/pkgs')
-rw-r--r-- | gui/pkgs/oomox-archdroid-icon-theme.nix | 29 | ||||
-rw-r--r-- | gui/pkgs/oomox-gtk-theme.nix | 60 |
2 files changed, 89 insertions, 0 deletions
diff --git a/gui/pkgs/oomox-archdroid-icon-theme.nix b/gui/pkgs/oomox-archdroid-icon-theme.nix new file mode 100644 index 0000000..764bf2f --- /dev/null +++ b/gui/pkgs/oomox-archdroid-icon-theme.nix @@ -0,0 +1,29 @@ +{ stdenv, pkgs, color, ... }: + +stdenv.mkDerivation rec { + name = "oomox-archdroid-icon-theme"; + + src = pkgs.fetchFromGitHub { + repo = "archdroid-icon-theme"; + owner = "themix-project"; + rev = "6dc4c92689ea2ce99534d6f461283efdf8ffd270"; + sha256 = "073iwaamzrmj0l6h4gzmbnmazq16lgpc027mr3l778b35qwwraq5"; + }; + + postPatch = '' + patchShebangs . + ''; + + installPhase = '' + HOME="$out/share/icons" + sed -i "66s/\.icons\///" change_color.sh + ./change_color.sh --output oomox-archdroid --color ${color} + ''; + + meta = { + description = "oomox-archdroid-icon-theme is a customizable fork of archdroid-icon-theme"; + homepage = https://github.com/themix-project/archdroid-icon-theme; + license = stdenv.lib.licenses.gpl3; + platforms = stdenv.lib.platforms.all; + }; +} diff --git a/gui/pkgs/oomox-gtk-theme.nix b/gui/pkgs/oomox-gtk-theme.nix new file mode 100644 index 0000000..6e217dd --- /dev/null +++ b/gui/pkgs/oomox-gtk-theme.nix @@ -0,0 +1,60 @@ +{ stdenv, pkgs, pkgs-unstable, theme, ... }: + +stdenv.mkDerivation rec { + name = "oomox-gtk-theme"; + + src = pkgs.fetchFromGitHub { + repo = "oomox-gtk-theme"; + owner = "themix-project"; + rev = "aa9081b2899d7e8ba8ae47543173d2d9f0f13921"; + sha256 = "1yxhd6d61npx43qwa6gyvrwmivv42k3d6qn54q276aihwxlbgj4r"; + }; + + nativeBuildInputs = with pkgs; [ librsvg glib libxml2 gdk_pixbuf bc pkgs-unstable.sass pkgs-unstable.sassc ]; + propagatedUserEnvPkgs = with pkgs; [ gtk-engine-murrine ]; + + config = with theme; '' + ACCENT_BG=${accent_bg} + BG=${bg} + FG=${fg} + BTN_BG=${btn_bg} + BTN_FG=${btn_fg} + CARET1_FG=${caret1_fg} + CARET2_FG=${caret2_fg} + HDR_BTN_BG=${hdr_btn_bg} + HDR_BTN_FG=${hdr_btn_fg} + MENU_BG=${menu_bg} + MENU_FG=${menu_fg} + SEL_BG=${sel_bg} + SEL_FG=${sel_fg} + TXT_BG=${txt_bg} + TXT_FG=${txt_fg} + WM_BORDER_FOCUS=${wm_border_focus} + WM_BORDER_UNFOCUS=${wm_border_unfocus} + GTK3_GENERATE_DARK=${if gtk3_generate_dark then "True" else "False"} + CARET_SIZE=${toString caret_size} + GRADIENT=${toString gradient} + ROUNDNESS=${toString roundness} + SPACING=${toString spacing} + ''; + + postPatch = '' + patchShebangs . + ''; + + buildPhase = '' + HOME="$out/share/themes/oomox" + ./change_color.sh --make-opts all --target-dir "$out/share/themes" --output oomox <(echo -e "${config}") + ''; + + installPhase = '' + cd oomox-gtk-theme-* + ''; + + meta = { + description = "oomox-gtk-theme is a customizable fork of numix-gtk-theme."; + homepage = https://github.com/themix-project/oomox-gtk-theme; + license = stdenv.lib.licenses.gpl3; + platforms = stdenv.lib.platforms.all; + }; +} |