3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/icons/qogir-icon-theme/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

69 lines
1.6 KiB
Nix
Raw Normal View History

{ lib
, stdenvNoCC
, fetchFromGitHub
, gitUpdater
, gtk3
, hicolor-icon-theme
, jdupes
, colorVariants ? [] # default is all
, themeVariants ? [] # default is all
}:
let
2019-09-15 20:36:32 +01:00
pname = "qogir-icon-theme";
in
lib.checkListOfEnum "${pname}: color variants" [ "standard" "dark" "all" ] colorVariants
lib.checkListOfEnum "${pname}: theme variants" [ "default" "manjaro" "ubuntu" "all" ] themeVariants
stdenvNoCC.mkDerivation rec {
inherit pname;
version = "2022-11-05";
2019-09-15 20:36:32 +01:00
src = fetchFromGitHub {
owner = "vinceliuice";
repo = pname;
rev = version;
sha256 = "sha256-KQ3NmxNtJTURjH15hyZzngJ6aVTwlze28xQbRTlQmPE=";
2019-09-15 20:36:32 +01:00
};
nativeBuildInputs = [ gtk3 jdupes ];
2019-09-15 20:36:32 +01:00
propagatedBuildInputs = [ hicolor-icon-theme ];
dontDropIconThemeCache = true;
# These fixup steps are slow and unnecessary.
dontPatchELF = true;
dontRewriteSymlinks = true;
postPatch = ''
patchShebangs install.sh
'';
2019-09-15 20:36:32 +01:00
installPhase = ''
runHook preInstall
2019-09-15 20:36:32 +01:00
mkdir -p $out/share/icons
name= ./install.sh \
${lib.optionalString (themeVariants != []) ("--theme " + builtins.toString themeVariants)} \
${lib.optionalString (colorVariants != []) ("--color " + builtins.toString colorVariants)} \
--dest $out/share/icons
jdupes --quiet --link-soft --recurse $out/share
runHook postInstall
2019-09-15 20:36:32 +01:00
'';
passthru.updateScript = gitUpdater { };
meta = with lib; {
description = "Flat colorful design icon theme";
homepage = "https://github.com/vinceliuice/Qogir-icon-theme";
2021-07-14 15:30:47 +01:00
license = with licenses; [ gpl3Only ];
2019-09-15 20:36:32 +01:00
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}