Unverified Commit ea600047 authored by Alexander Sieg's avatar Alexander Sieg
Browse files

clickgen: fix build after update to 2.1.3

parent 9d0588e8
Loading
Loading
Loading
Loading
+3 −14
Original line number Diff line number Diff line
@@ -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
  '';