uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
63
pkgs/development/python-modules/clickgen/default.nix
Normal file
63
pkgs/development/python-modules/clickgen/default.nix
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, pythonAtLeast
|
||||
, fetchFromGitHub
|
||||
, pillow
|
||||
, libX11
|
||||
, libXcursor
|
||||
, libpng
|
||||
, python
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "clickgen";
|
||||
version = "1.2.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.8" || pythonAtLeast "3.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ful1e5";
|
||||
repo = "clickgen";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-01c8SVy+J004dq5KCUe62w7i/xUTxTfl/IpvUtGQgw0=";
|
||||
};
|
||||
|
||||
buildInputs = [ libXcursor libX11 libpng ];
|
||||
|
||||
propagatedBuildInputs = [ pillow ];
|
||||
|
||||
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
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "clickgen" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/ful1e5/clickgen";
|
||||
description = "The hassle-free cursor building toolbox";
|
||||
longDescription = ''
|
||||
clickgen is API for building X11 and Windows Cursors from
|
||||
.png files. clickgen is using anicursorgen and xcursorgen under the hood.
|
||||
'';
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ AdsonCicilioti ];
|
||||
# fails with:
|
||||
# ld: unknown option: -zdefs
|
||||
broken = stdenv.isDarwin;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue