Package sweet-cursors and use it in the greeter
This commit is contained in:
@@ -26,6 +26,10 @@
|
||||
url = "git+https://gitea.moonarch.de/nevaforget/moonset.git?ref=refs/tags/v0.9.1";
|
||||
flake = false;
|
||||
};
|
||||
sweet-cursors = {
|
||||
url = "git+https://gitea.moonarch.de/nevaforget/Sweet-cursors.git";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, ... }@inputs:
|
||||
@@ -48,6 +52,11 @@
|
||||
src = inputs.moonset;
|
||||
version = "0.9.1";
|
||||
};
|
||||
|
||||
sweet-cursors = pkgs.callPackage ./pkgs/sweet-cursors.nix {
|
||||
src = inputs.sweet-cursors;
|
||||
version = "0-unstable";
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
|
||||
@@ -112,6 +112,7 @@ in
|
||||
# Moonarch's own programs
|
||||
moonarchPkgs.moonlock
|
||||
moonarchPkgs.moonset
|
||||
moonarchPkgs.sweet-cursors
|
||||
moonarch-scripts
|
||||
|
||||
# Compositor extras
|
||||
|
||||
@@ -12,6 +12,7 @@ let
|
||||
moongreetConfig = pkgs.writeText "moongreet.toml" ''
|
||||
[appearance]
|
||||
background = "${wallpaper}"
|
||||
cursor-theme = "Sweet-cursors"
|
||||
cursor-size = 24
|
||||
'';
|
||||
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
# ABOUTME: Nix build recipe for the Sweet cursor theme.
|
||||
# ABOUTME: Counterpart to moonarch-pkgbuilds/sweet-cursors-git/PKGBUILD.
|
||||
|
||||
{ lib, stdenvNoCC, src, version }:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "sweet-cursors";
|
||||
inherit version src;
|
||||
|
||||
dontBuild = true;
|
||||
dontConfigure = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -dm755 "$out/share/icons"
|
||||
cp -r . "$out/share/icons/Sweet-cursors"
|
||||
rm -rf "$out/share/icons/Sweet-cursors/.git"
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Sweet cursor theme";
|
||||
homepage = "https://gitea.moonarch.de/nevaforget/Sweet-cursors";
|
||||
license = lib.licenses.gpl3Only;
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user