From f5db61e34dde4cc36b0cdaa33ed1b6e23e9ad776 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 24 Apr 2018 19:55:23 +0200 Subject: Add oomox-archdroid-icon-theme derivation --- home.nix | 9 +++++++++ pkgs/oomox-archdroid-icon-theme.nix | 29 +++++++++++++++++++++++++++++ pkgs/oomox-gtk-theme.nix | 2 +- 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 pkgs/oomox-archdroid-icon-theme.nix diff --git a/home.nix b/home.nix index 39e6e83..e7ae7cd 100644 --- a/home.nix +++ b/home.nix @@ -111,6 +111,15 @@ package = oomox-gtk-theme; }; + iconTheme = let + oomox-archdroid-icon-theme = pkgs.callPackage ./pkgs/oomox-archdroid-icon-theme.nix { + color = "909737"; + }; + in { + name = "oomox-archdroid"; + package = oomox-archdroid-icon-theme; + }; + gtk2.extraConfig = '' style "vimfix" { bg[NORMAL] = "#161616" } widget "vim-main-window.*GtkForm" style "vimfix" diff --git a/pkgs/oomox-archdroid-icon-theme.nix b/pkgs/oomox-archdroid-icon-theme.nix new file mode 100644 index 0000000..764bf2f --- /dev/null +++ b/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/pkgs/oomox-gtk-theme.nix b/pkgs/oomox-gtk-theme.nix index 237c11a..aa393a9 100644 --- a/pkgs/oomox-gtk-theme.nix +++ b/pkgs/oomox-gtk-theme.nix @@ -49,7 +49,7 @@ stdenv.mkDerivation rec { ''; meta = { - description = "oomox-gtk-theme is a customizable fork of Numix-gtk-theme."; + 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; -- cgit v1.2.3