Skip to content

Commit

Permalink
xcursor-pro: init at 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
juuyokka committed Sep 28, 2024
1 parent 05ee2ec commit 4ac1f4c
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions pkgs/by-name/xc/xcursor-pro/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
stdenvNoCC,
lib,
fetchurl,
variants ? [
"Dark"
"Light"
"Red"
],
}:
stdenvNoCC.mkDerivation rec {
pname = "xcursor-pro";
version = "2.0.2";
srcs = map (
variant:
fetchurl {
url = "https://github.com/ful1e5/XCursor-pro/releases/download/v${version}/XCursor-Pro-${variant}.tar.xz";
hash =
{
Dark = "sha256-lqA7rt1+yqLRv99XccAcYhEMiFmmlgmmL1Sr57lYJ4s=";
Light = "sha256-irYZLu8E1VttcUXQ+7XfUKxKyT1MbesG/b03qRBubac=";
Red = "sha256-NWkWHTMbC6/AD5P19d65F3sTqxD+5ZLmtsN/5ljFMAM=";
}
.${variant};
}
) variants;

sourceRoot = ".";

installPhase = ''
for theme in XCursor-Pro-{${lib.concatStringsSep "," variants}}; do
mkdir -p $out/share/icons/$theme/cursors
cp -a $theme/cursors/* $out/share/icons/$theme/cursors/
install -m644 $theme/index.theme $out/share/icons/$theme/index.theme
done
'';

meta = with lib; {
homepage = "https://github.com/ful1e5/XCursor-pro";
description = "Modern XCursors";
license = licenses.gpl3;
platforms = platforms.unix;
maintainers = with maintainers; [
lactose
midirhee12
];
};
}

0 comments on commit 4ac1f4c

Please sign in to comment.