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
70
pkgs/development/libraries/libunity/default.nix
Normal file
70
pkgs/development/libraries/libunity/default.nix
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchgit
|
||||
, pkg-config
|
||||
, glib
|
||||
, vala
|
||||
, dee
|
||||
, gobject-introspection
|
||||
, libdbusmenu
|
||||
, gtk3
|
||||
, intltool
|
||||
, python3
|
||||
, autoreconfHook
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "libunity";
|
||||
version = "unstable-2021-02-01";
|
||||
|
||||
outputs = [ "out" "dev" "py" ];
|
||||
|
||||
# Obtained from https://git.launchpad.net/ubuntu/+source/libunity/log/
|
||||
src = fetchgit {
|
||||
url = "https://git.launchpad.net/ubuntu/+source/libunity";
|
||||
rev = "import/7.1.4+19.04.20190319-5";
|
||||
sha256 = "LHUs6kl1srS6Xektx+jmm4SXLR47VuQ9IhYbBxf2Wc8=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix builf with latest Vala
|
||||
# https://code.launchpad.net/~jtojnar/libunity/libunity
|
||||
# Did not send upstream because Ubuntu is stuck on Vala 0.48.
|
||||
./fix-vala.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
gobject-introspection
|
||||
intltool
|
||||
pkg-config
|
||||
python3
|
||||
vala
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
gtk3
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dee
|
||||
libdbusmenu
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
intltoolize
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--with-pygi-overrides-dir=${placeholder "py"}/${python3.sitePackages}/gi/overrides"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A library for instrumenting and integrating with all aspects of the Unity shell";
|
||||
homepage = "https://launchpad.net/libunity";
|
||||
license = licenses.lgpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
12
pkgs/development/libraries/libunity/fix-vala.patch
Normal file
12
pkgs/development/libraries/libunity/fix-vala.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
--- a/protocol/protocol-icon.vala 2013-08-27 12:53:57 +0000
|
||||
+++ b/protocol/protocol-icon.vala 2021-04-13 22:34:41 +0000
|
||||
@@ -185,7 +185,7 @@
|
||||
}
|
||||
|
||||
/* Added to GIcon interface in 2.37 */
|
||||
- private Variant serialize ()
|
||||
+ private Variant? serialize ()
|
||||
{
|
||||
Variant? ret = null;
|
||||
return ret;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue