File tree Expand file tree Collapse file tree 2 files changed +83
-3
lines changed
pkgs/by-name/ly/lyra-cursors Expand file tree Collapse file tree 2 files changed +83
-3
lines changed Original file line number Diff line number Diff line change 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";
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments