blob: d52b123f6480a08dab919a3adfa5ced2a9edd1fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{
lib,
stdenvNoCC,
fetchFromGitLab,
imagemagick,
inkscape,
jq,
xcursorgen,
}:
stdenvNoCC.mkDerivation rec {
pname = "hackneyed";
version = "0.9.3";
src = fetchFromGitLab {
owner = "Enthymeme";
repo = "hackneyed-x11-cursors";
rev = version;
hash = "sha256-gq+qBYm15satH/XXK1QYDVu2L2DvZ+2aYg/wDqncwmA=";
};
nativeBuildInputs = [
imagemagick
inkscape
jq
xcursorgen
];
postPatch = ''
patchShebangs *.sh
'';
enableParallelBuilding = true;
makeFlags = [
"INKSCAPE=inkscape"
"INSTALL=install"
"JQ=jq"
"PREFIX=$(out)"
"VERBOSE=1"
"XCURSORGEN=xcursorgen"
];
buildFlags = [
"theme"
"theme.left"
];
# The Makefile declares a dependency on the value of $(INKSCAPE) for some reason;
# it's unnecessary for building though.
prePatch = ''
substituteInPlace GNUmakefile \
--replace 'inkscape-version: $(INKSCAPE)' 'inkscape-version:'
'';
meta = {
homepage = "https://gitlab.com/Enthymeme/hackneyed-x11-cursors";
description = "Scalable cursor theme that resembles Windows 3.x/NT 3.x cursors";
platforms = lib.platforms.all;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ somasis ];
};
}
|