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
60
pkgs/development/libraries/geis/default.nix
Normal file
60
pkgs/development/libraries/geis/default.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{ lib, stdenv, fetchurl
|
||||
, pkg-config
|
||||
, python3Packages
|
||||
, wrapGAppsHook
|
||||
, atk
|
||||
, dbus
|
||||
, evemu
|
||||
, frame
|
||||
, gdk-pixbuf
|
||||
, gobject-introspection
|
||||
, grail
|
||||
, gtk3
|
||||
, libX11
|
||||
, libXext
|
||||
, libXi
|
||||
, libXtst
|
||||
, pango
|
||||
, xorgserver
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "geis";
|
||||
version = "2.2.17";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://launchpad.net/geis/trunk/${version}/+download/${pname}-${version}.tar.xz";
|
||||
sha256 = "1svhbjibm448ybq6gnjjzj0ak42srhihssafj0w402aj71lgaq4a";
|
||||
};
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=misleading-indentation -Wno-error=pointer-compare";
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
pythonPath = with python3Packages;
|
||||
[ pygobject3 ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config wrapGAppsHook python3Packages.wrapPython];
|
||||
buildInputs = [ atk dbus evemu frame gdk-pixbuf gobject-introspection grail
|
||||
gtk3 libX11 libXext libXi libXtst pango python3Packages.python xorgserver
|
||||
];
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace python/geis/geis_v2.py --replace \
|
||||
"ctypes.util.find_library(\"geis\")" "'$out/lib/libgeis.so'"
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
buildPythonPath "$out $pythonPath"
|
||||
gappsWrapperArgs+=(--set PYTHONPATH "$program_PYTHONPATH")
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A library for input gesture recognition";
|
||||
homepage = "https://launchpad.net/geis";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue