From 4bc4426ef0f46460a3631837f1fcb3faa202e501 Mon Sep 17 00:00:00 2001 From: Liam-Weitzel Date: Sat, 12 Jul 2025 15:24:38 +0200 Subject: [PATCH] maplestory-cursor: init at 1.0.0 --- pkgs/by-name/ma/maplestory-cursor/package.nix | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 pkgs/by-name/ma/maplestory-cursor/package.nix diff --git a/pkgs/by-name/ma/maplestory-cursor/package.nix b/pkgs/by-name/ma/maplestory-cursor/package.nix new file mode 100644 index 000000000000..256946615833 --- /dev/null +++ b/pkgs/by-name/ma/maplestory-cursor/package.nix @@ -0,0 +1,51 @@ +{ + fetchFromGitHub, + lib, + stdenvNoCC, + + # build deps + clickgen, + python3Packages, +}: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "maplestory-cursor"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "Liam-Weitzel"; + repo = "maplestory-cursor"; + tag = "v${finalAttrs.version}"; + hash = "sha256-doUnd0XyA7Nk078eDEIrRltj3zBODHpGn8Rqx2rl5/o="; + }; + + nativeBuildInputs = [ + clickgen + python3Packages.attrs + ]; + + buildPhase = '' + runHook preBuild + + ctgen build.toml -p x11 -o $out + + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + + mkdir -p $out/share/icons + mv $out/Maple $out/share/icons + + runHook postInstall + ''; + + meta = { + description = "Maplestory cursor theme for x11 & wayland"; + homepage = "https://github.com/Liam-Weitzel/maplestory-cursor"; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ liam-w ]; + platforms = lib.platforms.linux; + }; +})