Skip to content

Commit aadaa13

Browse files
committed
lyra-cursors: init at 0-unstable-2021-12-04
1 parent 31193fa commit aadaa13

File tree

2 files changed

+83
-3
lines changed

2 files changed

+83
-3
lines changed

maintainers/maintainer-list.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11643,9 +11643,7 @@
1164311643
matrix = "@lordmzte:mzte.de";
1164411644
github = "LordMZTE";
1164511645
githubId = 28735087;
11646-
keys = [{
11647-
fingerprint = "AB47 3D70 53D2 74CA DC2C 230C B648 02DC 33A6 4FF6";
11648-
}];
11646+
keys = [ { fingerprint = "AB47 3D70 53D2 74CA DC2C 230C B648 02DC 33A6 4FF6"; } ];
1164911647
};
1165011648
lord-valen = {
1165111649
name = "Lord Valen";
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)