clickgen: fix build after update to 2.1.3

This commit is contained in:
Alexander Sieg 2023-01-18 12:16:38 +01:00
parent 9d0588e8a5
commit ea60004785
No known key found for this signature in database

View File

@ -4,9 +4,8 @@
, pythonOlder
, fetchFromGitHub
, pillow
, libX11
, libXcursor
, libpng
, toml
, numpy
, python
, pytestCheckHook
}:
@ -25,21 +24,11 @@ buildPythonPackage rec {
sha256 = "sha256-qDaSfIeKCbyl3C2iKz9DYQc1oNwTe5xDlGg/yYhakSw=";
};
buildInputs = [ libXcursor libX11 libpng ];
propagatedBuildInputs = [ pillow ];
propagatedBuildInputs = [ pillow toml numpy ];
checkInputs = [ pytestCheckHook ];
postBuild = ''
# Needs to build xcursorgen.so
cd src/xcursorgen
make
cd ../..
'';
postInstall = ''
install -m644 src/xcursorgen/xcursorgen.so $out/${python.sitePackages}/clickgen/xcursorgen.so
# Copying scripts directory needed by clickgen script at $out/bin/
cp -R src/clickgen/scripts $out/${python.sitePackages}/clickgen/scripts
'';