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
74
pkgs/desktops/gnome/misc/metacity/default.nix
Normal file
74
pkgs/desktops/gnome/misc/metacity/default.nix
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
{ lib, stdenv
|
||||
, fetchurl
|
||||
, gettext
|
||||
, glib
|
||||
, gnome
|
||||
, gsettings-desktop-schemas
|
||||
, gtk3
|
||||
, xorg
|
||||
, libcanberra-gtk3
|
||||
, libgtop
|
||||
, libstartup_notification
|
||||
, libxml2
|
||||
, pkg-config
|
||||
, substituteAll
|
||||
, wrapGAppsHook
|
||||
, zenity
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "metacity";
|
||||
version = "3.44.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "GcPF150hcfRbqg9jLMiZX4YHvxIxoWAUQ5usm6Flp8A=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./fix-paths.patch;
|
||||
inherit zenity;
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
gettext
|
||||
libxml2
|
||||
pkg-config
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
xorg.libXres
|
||||
xorg.libXpresent
|
||||
xorg.libXdamage
|
||||
glib
|
||||
gsettings-desktop-schemas
|
||||
gtk3
|
||||
libcanberra-gtk3
|
||||
libgtop
|
||||
libstartup_notification
|
||||
zenity
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome.updateScript {
|
||||
packageName = pname;
|
||||
attrPath = "gnome.${pname}";
|
||||
versionPolicy = "odd-unstable";
|
||||
};
|
||||
};
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Window manager used in Gnome Flashback";
|
||||
homepage = "https://wiki.gnome.org/Projects/Metacity";
|
||||
license = licenses.gpl2;
|
||||
maintainers = teams.gnome.members;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
11
pkgs/desktops/gnome/misc/metacity/fix-paths.patch
Normal file
11
pkgs/desktops/gnome/misc/metacity/fix-paths.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- a/src/core/util.c
|
||||
+++ b/src/core/util.c
|
||||
@@ -424,7 +424,7 @@
|
||||
g_slist_length (columns)*2 +
|
||||
g_slist_length (entries)));
|
||||
|
||||
- argvl[i++] = "zenity";
|
||||
+ argvl[i++] = "@zenity@/bin/zenity";
|
||||
argvl[i++] = type;
|
||||
argvl[i++] = "--display";
|
||||
argvl[i++] = display;
|
||||
Loading…
Add table
Add a link
Reference in a new issue