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
66
pkgs/development/python-modules/pygobject/3.nix
Normal file
66
pkgs/development/python-modules/pygobject/3.nix
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, buildPythonPackage
|
||||
, pkg-config
|
||||
, glib
|
||||
, gobject-introspection
|
||||
, pycairo
|
||||
, cairo
|
||||
, ncurses
|
||||
, meson
|
||||
, ninja
|
||||
, isPy3k
|
||||
, gnome
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pygobject";
|
||||
version = "3.42.1";
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
format = "other";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "HzS192JN415E61p+tCg1MoW9AwBNVRMaX39/qbkPPMk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
meson
|
||||
ninja
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
gobject-introspection
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
ncurses
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pycairo
|
||||
cairo
|
||||
];
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome.updateScript {
|
||||
packageName = pname;
|
||||
attrPath = "python3.pkgs.${pname}3";
|
||||
versionPolicy = "odd-unstable";
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://pygobject.readthedocs.io/";
|
||||
description = "Python bindings for Glib";
|
||||
license = licenses.lgpl21Plus;
|
||||
maintainers = with maintainers; [ jtojnar ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
42
pkgs/development/python-modules/pygobject/default.nix
Normal file
42
pkgs/development/python-modules/pygobject/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, stdenv, fetchurl, python, buildPythonPackage, pkg-config, glib, isPy3k, pythonAtLeast }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pygobject";
|
||||
version = "2.28.7";
|
||||
format = "other";
|
||||
disabled = pythonAtLeast "3.9";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/pygobject/2.28/${pname}-${version}.tar.xz";
|
||||
sha256 = "0nkam61rsn7y3wik3vw46wk5q2cjfh2iph57hl9m39rc8jijb7dv";
|
||||
};
|
||||
|
||||
outputs = [ "out" "devdoc" ];
|
||||
|
||||
patches = lib.optionals stdenv.isDarwin [
|
||||
./pygobject-2.0-fix-darwin.patch
|
||||
];
|
||||
|
||||
configureFlags = [ "--disable-introspection" ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ glib ];
|
||||
|
||||
# in a "normal" setup, pygobject and pygtk are installed into the
|
||||
# same site-packages: we need a pth file for both. pygtk.py would be
|
||||
# used to select a specific version, in our setup it should have no
|
||||
# effect, but we leave it in case somebody expects and calls it.
|
||||
postInstall = lib.optionalString (!isPy3k) ''
|
||||
mv $out/lib/${python.libPrefix}/site-packages/{pygtk.pth,${pname}-${version}.pth}
|
||||
|
||||
# Prevent wrapping of codegen files as these are meant to be
|
||||
# executed by the python program
|
||||
chmod a-x $out/share/pygobject/*/codegen/*.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://pygobject.readthedocs.io/";
|
||||
description = "Python bindings for GLib";
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
--- a/gio/unix-types.defs
|
||||
+++ b/gio/unix-types.defs
|
||||
@@ -7,18 +7,6 @@
|
||||
(gtype-id "G_TYPE_UNIX_CONNECTION")
|
||||
)
|
||||
|
||||
-(define-object DesktopAppInfo
|
||||
- (docstring
|
||||
- "DesktopAppInfo(desktop_id) -> gio.unix.DesktopAppInfo\n\n"
|
||||
- "gio.Unix.DesktopAppInfo is an implementation of gio.AppInfo\n"
|
||||
- "based on desktop files."
|
||||
- )
|
||||
- (in-module "giounix")
|
||||
- (parent "GObject")
|
||||
- (c-name "GDesktopAppInfo")
|
||||
- (gtype-id "G_TYPE_DESKTOP_APP_INFO")
|
||||
-)
|
||||
-
|
||||
(define-object FDMessage
|
||||
(in-module "giounix")
|
||||
(parent "GSocketControlMessage")
|
||||
--- a/gio/unix.defs
|
||||
+++ b/gio/unix.defs
|
||||
@@ -32,54 +32,6 @@
|
||||
|
||||
|
||||
|
||||
-;; From gdesktopappinfo.h
|
||||
-
|
||||
-(define-function desktop_app_info_get_type
|
||||
- (c-name "g_desktop_app_info_get_type")
|
||||
- (return-type "GType")
|
||||
-)
|
||||
-
|
||||
-(define-function desktop_app_info_new_from_filename
|
||||
- (c-name "g_desktop_app_info_new_from_filename")
|
||||
- (return-type "GDesktopAppInfo*")
|
||||
- (parameters
|
||||
- '("const-char*" "filename")
|
||||
- )
|
||||
-)
|
||||
-
|
||||
-(define-function g_desktop_app_info_new_from_keyfile
|
||||
- (c-name "g_desktop_app_info_new_from_keyfile")
|
||||
- (return-type "GDesktopAppInfo*")
|
||||
- (parameters
|
||||
- '("GKeyFile*" "key_file")
|
||||
- )
|
||||
-)
|
||||
-
|
||||
-(define-function desktop_app_info_new
|
||||
- (c-name "g_desktop_app_info_new")
|
||||
- (is-constructor-of "GDesktopAppInfo")
|
||||
- (return-type "GDesktopAppInfo*")
|
||||
- (parameters
|
||||
- '("const-char*" "desktop_id")
|
||||
- )
|
||||
-)
|
||||
-
|
||||
-(define-method get_is_hidden
|
||||
- (of-object "GDesktopAppInfo")
|
||||
- (c-name "g_desktop_app_info_get_is_hidden")
|
||||
- (return-type "gboolean")
|
||||
-)
|
||||
-
|
||||
-(define-function desktop_app_info_set_desktop_env
|
||||
- (c-name "g_desktop_app_info_set_desktop_env")
|
||||
- (return-type "none")
|
||||
- (parameters
|
||||
- '("const-char*" "desktop_env")
|
||||
- )
|
||||
-)
|
||||
-
|
||||
-
|
||||
-
|
||||
;; From gunixfdmessage.h
|
||||
|
||||
(define-function g_unix_fd_message_get_type
|
||||
--- a/gio/unix.override
|
||||
+++ b/gio/unix.override
|
||||
@@ -24,7 +24,6 @@
|
||||
#define NO_IMPORT_PYGOBJECT
|
||||
#include <pygobject.h>
|
||||
#include <gio/gio.h>
|
||||
-#include <gio/gdesktopappinfo.h>
|
||||
#include <gio/gunixinputstream.h>
|
||||
#include <gio/gunixmounts.h>
|
||||
#include <gio/gunixoutputstream.h>
|
||||
Loading…
Add table
Add a link
Reference in a new issue