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
75
pkgs/desktops/gnome/misc/nautilus-python/default.nix
Normal file
75
pkgs/desktops/gnome/misc/nautilus-python/default.nix
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, substituteAll
|
||||
, fetchurl
|
||||
, pkg-config
|
||||
, which
|
||||
, gtk-doc
|
||||
, docbook_xsl
|
||||
, docbook_xml_dtd_412
|
||||
, python3
|
||||
, ncurses
|
||||
, nautilus
|
||||
, gtk3
|
||||
, gnome
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nautilus-python";
|
||||
version = "1.2.3";
|
||||
|
||||
outputs = [ "out" "dev" "doc" ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "161050sx3sdxqcpjkjcpf6wl4kx0jydihga7mcvrj9c2f8ly0g07";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Make PyGObject’s gi library available.
|
||||
(substituteAll {
|
||||
src = ./fix-paths.patch;
|
||||
pythonPaths = lib.concatMapStringsSep ", " (pkg: "'${pkg}/${python3.sitePackages}'") [
|
||||
python3.pkgs.pygobject3
|
||||
];
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
which
|
||||
gtk-doc
|
||||
docbook_xsl
|
||||
docbook_xml_dtd_412
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
python3
|
||||
ncurses # required by python3
|
||||
python3.pkgs.pygobject3
|
||||
nautilus
|
||||
gtk3 # required by libnautilus-extension
|
||||
];
|
||||
|
||||
makeFlags = [
|
||||
"PYTHON_LIB_LOC=${python3}/lib"
|
||||
];
|
||||
|
||||
PKG_CONFIG_LIBNAUTILUS_EXTENSION_EXTENSIONDIR = "${placeholder "out"}/lib/nautilus/extensions-3.0";
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome.updateScript {
|
||||
packageName = pname;
|
||||
attrPath = "gnome.${pname}";
|
||||
versionPolicy = "odd-unstable";
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python bindings for the Nautilus Extension API";
|
||||
homepage = "https://wiki.gnome.org/Projects/NautilusPython";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = teams.gnome.members;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
14
pkgs/desktops/gnome/misc/nautilus-python/fix-paths.patch
Normal file
14
pkgs/desktops/gnome/misc/nautilus-python/fix-paths.patch
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
diff --git a/src/nautilus-python.c b/src/nautilus-python.c
|
||||
index 843e3c6..466a513 100644
|
||||
--- a/src/nautilus-python.c
|
||||
+++ b/src/nautilus-python.c
|
||||
@@ -184,6 +184,9 @@ nautilus_python_init_python (void) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
+ debug("Add PyGObject to path");
|
||||
+ PyRun_SimpleString("import site;import functools; functools.reduce(lambda k, p: site.addsitedir(p, k), [@pythonPaths@], site._init_pathinfo())");
|
||||
+
|
||||
/* import gobject */
|
||||
debug("init_pygobject");
|
||||
if (!np_init_pygobject()) {
|
||||
Loading…
Add table
Add a link
Reference in a new issue