gruppled-{black,white}-lite-cursors: refactor & move to pkgs/by-name
since this changes the pname this unfortunately creates 2 rebuilds
This commit is contained in:
+11
-6
@@ -1,12 +1,17 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
theme,
|
||||
lib,
|
||||
theme ? "black",
|
||||
}:
|
||||
|
||||
assert lib.asserts.assertOneOf "theme" theme [
|
||||
"black"
|
||||
"white"
|
||||
];
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "gruppled-lite-cursors";
|
||||
pname = "gruppled-${theme}-lite-cursors";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
@@ -17,12 +22,12 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/icons/${theme}
|
||||
cp -r ${theme}/{cursors,index.theme} $out/share/icons/${theme}
|
||||
mkdir -p $out/share/icons/gruppled_${theme}_lite
|
||||
cp -r gruppled_${theme}_lite/{cursors,index.theme} $out/share/icons/gruppled_${theme}_lite
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Gruppled Lite Cursors theme";
|
||||
description = "Gruppled ${lib.toSentenceCase theme} Lite Cursors theme";
|
||||
homepage = "https://github.com/nim65s/gruppled-lite-cursors";
|
||||
license = lib.licenses.gpl2Only;
|
||||
maintainers = with lib.maintainers; [ nim65s ];
|
||||
@@ -9656,20 +9656,8 @@ with pkgs;
|
||||
|
||||
spacx-gtk-theme = callPackage ../data/themes/gtk-theme-framework { theme = "spacx"; };
|
||||
|
||||
inherit
|
||||
({
|
||||
gruppled-black-lite-cursors = callPackage ../data/icons/gruppled-lite-cursors {
|
||||
theme = "gruppled_black_lite";
|
||||
};
|
||||
gruppled-white-lite-cursors = callPackage ../data/icons/gruppled-lite-cursors {
|
||||
theme = "gruppled_white_lite";
|
||||
};
|
||||
})
|
||||
gruppled-black-lite-cursors
|
||||
gruppled-white-lite-cursors
|
||||
;
|
||||
|
||||
gruppled-white-cursors = gruppled-black-cursors.override { theme = "white"; };
|
||||
gruppled-white-lite-cursors = gruppled-black-lite-cursors.override { theme = "white"; };
|
||||
|
||||
iosevka-comfy = recurseIntoAttrs (callPackages ../data/fonts/iosevka/comfy.nix { });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user