hackneyed: 0.8.2 -> 0.9.1

Co-authored-by: Arne Keller <2012gdwu+github@posteo.de>
This commit is contained in:
Kylie McClain 2023-04-07 16:57:28 -04:00
parent c95728ce72
commit 562376398d
No known key found for this signature in database

View file

@ -1,29 +1,41 @@
{ lib, fetchzip, stdenvNoCC, fetchFromGitLab, xcursorgen, imagemagick6, inkscape }: { lib, stdenvNoCC, fetchFromGitLab, imagemagick, inkscape, xcursorgen }:
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "hackneyed"; pname = "hackneyed";
version = "0.8.2"; version = "0.9.1";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "Enthymeme"; owner = "Enthymeme";
repo = "hackneyed-x11-cursors"; repo = "hackneyed-x11-cursors";
rev = version; rev = version;
sha256 = "sha256-Wtrw/EzxCj4cAyfdBp0OJE4+c6FouW7+b6nFTLxdXNY="; hash = "sha256-+7QtHgBuhJtQejiHeZ+QoedJo24LqSY51XRVLv9Ho2g=";
}; };
buildInputs = [ imagemagick6 inkscape xcursorgen ]; nativeBuildInputs = [ imagemagick inkscape xcursorgen ];
postPatch = '' postPatch = ''
patchShebangs *.sh patchShebangs *.sh
substituteInPlace make-png.sh \
--replace /usr/bin/inkscape ${inkscape}/bin/inkscape
''; '';
enableParallelBuilding = true; enableParallelBuilding = true;
makeFlags = [ "PREFIX=$(out)" ]; makeFlags = [
"INKSCAPE=inkscape"
"INSTALL=install"
"PREFIX=$(out)"
"VERBOSE=1"
"XCURSORGEN=xcursorgen"
];
buildFlags = [ "theme" "theme.left" ]; 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; { meta = with lib; {
homepage = "https://gitlab.com/Enthymeme/hackneyed-x11-cursors"; homepage = "https://gitlab.com/Enthymeme/hackneyed-x11-cursors";
description = "A scalable cursor theme that resembles Windows 3.x/NT 3.x cursors"; description = "A scalable cursor theme that resembles Windows 3.x/NT 3.x cursors";