Skip to content

Commit e931a9c

Browse files
authored
lyra-cursors: init at 0-unstable-2021-12-04 (#308515)
2 parents 4c79ccf + aadaa13 commit e931a9c

File tree

2 files changed

+90
-0
lines changed

2 files changed

+90
-0
lines changed

maintainers/maintainer-list.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12746,6 +12746,14 @@
1274612746
githubId = 5624721;
1274712747
name = "Ben Wolsieffer";
1274812748
};
12749+
lordmzte = {
12750+
name = "Moritz Thomae";
12751+
email = "[email protected]";
12752+
matrix = "@lordmzte:mzte.de";
12753+
github = "LordMZTE";
12754+
githubId = 28735087;
12755+
keys = [ { fingerprint = "AB47 3D70 53D2 74CA DC2C 230C B648 02DC 33A6 4FF6"; } ];
12756+
};
1274912757
lord-valen = {
1275012758
name = "Lord Valen";
1275112759
matrix = "@lord-valen:matrix.org";
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
lib,
3+
stdenvNoCC,
4+
inkscape,
5+
xcursorgen,
6+
fetchFromGitHub,
7+
fetchpatch2,
8+
}:
9+
let
10+
styles = [
11+
"LyraB"
12+
"LyraF"
13+
"LyraG"
14+
"LyraP"
15+
"LyraQ"
16+
"LyraR"
17+
"LyraS"
18+
"LyraX"
19+
"LyraY"
20+
];
21+
22+
# This is a patch from a fork of the upstream repository which addresses several issues with the
23+
# build script such as the fact that the style to build isn't hardcoded. We don't simply use this
24+
# fork as source, as the upstream repository is what we want to track.
25+
buildScriptPatch = fetchpatch2 {
26+
name = "use-more-flexible-build-script.patch";
27+
url = "https://github.com/KiranWells/Lyra-Cursors/commit/2735acb37a51792388497c666cc28370660217cb.patch?full_index=1";
28+
hash = "sha256-KCT4zNdep1TB7Oa4qrPw374ahT30o9/QrNTEgobp8zM=";
29+
};
30+
in
31+
stdenvNoCC.mkDerivation {
32+
pname = "lyra-cursors";
33+
version = "0-unstable-2021-12-04";
34+
35+
src = fetchFromGitHub {
36+
owner = "yeyushengfan258";
37+
repo = "Lyra-Cursors";
38+
rev = "c096c54034f95bd35699b3226250e5c5ec015d9a";
39+
hash = "sha256-lfaX8ouE0JaQwVBpAGsrLIExQZ2rCSFKPs3cch17eYg=";
40+
};
41+
42+
nativeBuildInputs = [
43+
inkscape
44+
xcursorgen
45+
];
46+
47+
patches = [ buildScriptPatch ];
48+
49+
dontConfigure = true;
50+
51+
postPatch = ''
52+
patchShebangs build.sh
53+
'';
54+
55+
buildPhase = ''
56+
runHook preBuild
57+
58+
rm -r dist
59+
for THEME in ${lib.escapeShellArgs styles}; do
60+
./build.sh "$THEME"
61+
done
62+
63+
runHook postBuild
64+
'';
65+
66+
installPhase = ''
67+
runHook preInstall
68+
69+
mkdir -p $out/share/icons
70+
mv dist/*-cursors $out/share/icons
71+
72+
runHook postInstall
73+
'';
74+
75+
meta = {
76+
description = "A cursor theme inspired by macOS and based on capitaine-cursors";
77+
homepage = "https://github.com/yeyushengfan258/Lyra-Cursors";
78+
license = lib.licenses.gpl3Only;
79+
platforms = lib.platforms.all;
80+
maintainers = with lib.maintainers; [ lordmzte ];
81+
};
82+
}

0 commit comments

Comments
 (0)