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