nix/pkgs/win7-cursors.nix

36 lines
1.1 KiB
Nix
Raw Normal View History

2024-07-04 01:14:24 +02:00
{
lib,
stdenv,
fetchzip,
}:
2024-06-15 21:59:32 +02:00
stdenv.mkDerivation rec {
2024-06-13 15:38:40 +02:00
pname = "win7-cursors";
version = "1";
2024-06-15 21:59:32 +02:00
src = fetchzip {
2024-10-16 11:40:24 +02:00
# todo: find out how to extract local tar file
url = "https://gitgud.io/wackyideas/aerothemeplasma/-/raw/master/misc/cursors/aero-drop.tar.gz?ref_type=heads&inline=false";
2024-06-15 21:59:32 +02:00
hash = "sha256-4IY6ZE/nSLJ3HGfzEp2rxBah8Z9lUNQdGncRTjv2Jtg=";
2024-06-13 15:38:40 +02:00
};
installPhase = ''
2024-06-15 21:59:32 +02:00
thedir="$out/share/icons/aero-drop"
mkdir -p $thedir/cursors
for f in $(find $src \( -type f -or -type l \) -and -not -name "*move" -and -not -name "*fleur" -and -not -name "*.theme"); do
cp $f $thedir/cursors
done
cp $src/index.theme $thedir/index.theme
cp $src/cursors/fleur_actual $thedir/cursors/move
cp $src/cursors/fleur_actual $thedir/cursors/fleur
cp $src/cursors/crosshair $thedir/cursors/kill
cp $src/cursors/crosshair $thedir/cursors/pirate
2024-06-13 15:38:40 +02:00
'';
meta = with lib; {
description = "Windows 7 Cursors";
2024-06-15 21:59:32 +02:00
homepage = "https://gitgud.io/wackyideas/aerothemeplasma";
license = licenses.agpl3Plus;
2024-06-13 15:38:40 +02:00
platforms = platforms.linux;
};
}