2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{ lib, stdenvNoCC, fetchFromGitLab, imagemagick, inkscape, xcursorgen }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "hackneyed";
|
|
version = "0.9.1";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "Enthymeme";
|
|
repo = "hackneyed-x11-cursors";
|
|
rev = version;
|
|
hash = "sha256-+7QtHgBuhJtQejiHeZ+QoedJo24LqSY51XRVLv9Ho2g=";
|
|
};
|
|
|
|
nativeBuildInputs = [ imagemagick inkscape xcursorgen ];
|
|
|
|
postPatch = ''
|
|
patchShebangs *.sh
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
makeFlags = [
|
|
"INKSCAPE=inkscape"
|
|
"INSTALL=install"
|
|
"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 = with lib; {
|
|
homepage = "https://gitlab.com/Enthymeme/hackneyed-x11-cursors";
|
|
description = "A scalable cursor theme that resembles Windows 3.x/NT 3.x cursors";
|
|
platforms = platforms.all;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ somasis ];
|
|
};
|
|
}
|