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
34
pkgs/applications/graphics/gcolor2/default.nix
Normal file
34
pkgs/applications/graphics/gcolor2/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{lib, stdenv, fetchurl, gtk2, perlPackages, pkg-config } :
|
||||
|
||||
let version = "0.4"; in
|
||||
stdenv.mkDerivation {
|
||||
pname = "gcolor2";
|
||||
inherit version;
|
||||
arch = if stdenv.hostPlatform.system == "x86_64-linux" then "amd64" else "386";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/project/gcolor2/gcolor2/${version}/gcolor2-${version}.tar.bz2";
|
||||
sha256 = "1siv54vwx9dbfcflklvf7pkp5lk6h3nn63flg6jzifz9wp0c84q6";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
sed -i 's/\[:space:\]/[&]/g' configure
|
||||
'';
|
||||
|
||||
# from https://github.com/PhantomX/slackbuilds/tree/master/gcolor2/patches
|
||||
patches = if stdenv.hostPlatform.system == "x86_64-linux" then
|
||||
[ ./gcolor2-amd64.patch ] else
|
||||
[ ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ gtk2 ]
|
||||
++ (with perlPackages; [ perl XMLParser ]);
|
||||
|
||||
meta = {
|
||||
description = "Simple GTK 2 color selector";
|
||||
homepage = "http://gcolor2.sourceforge.net/";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
maintainers = with lib.maintainers; [ notthemessiah ];
|
||||
platforms = with lib.platforms; unix;
|
||||
};
|
||||
}
|
||||
46
pkgs/applications/graphics/gcolor2/gcolor2-amd64.patch
Normal file
46
pkgs/applications/graphics/gcolor2/gcolor2-amd64.patch
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
diff --exclude-from=/home/dang/bin/scripts/diffrc -up -ruN gcolor2-0.4.orig/src/callbacks.c gcolor2-0.4/src/callbacks.c
|
||||
--- gcolor2-0.4.orig/src/callbacks.c 2005-07-12 14:06:12.000000000 -0400
|
||||
+++ gcolor2-0.4/src/callbacks.c 2007-02-17 19:19:38.000000000 -0500
|
||||
@@ -4,6 +4,9 @@
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <stdio.h>
|
||||
+#include <string.h>
|
||||
+#include <glib.h>
|
||||
+#include <glib/gprintf.h>
|
||||
|
||||
#include "callbacks.h"
|
||||
#include "interface.h"
|
||||
@@ -172,6 +175,9 @@ void on_copy_color_to_clipboard_activate
|
||||
gtk_clipboard_set_text (cb, hex, strlen (hex));
|
||||
}
|
||||
|
||||
+void add_rgb_file (gchar *filename, gchar *type);
|
||||
+gchar* get_system_file (void);
|
||||
+
|
||||
void on_show_system_colors_activate (GtkMenuItem *menuitem, gpointer user_data)
|
||||
{
|
||||
if (gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (menuitem)))
|
||||
@@ -266,6 +272,8 @@ void on_save_button_clicked (GtkButton *
|
||||
gtk_widget_destroy (savedialog);
|
||||
}
|
||||
|
||||
+void add_list_color (gchar *spec, gchar *name, gchar *type, gboolean is_new_color);
|
||||
+
|
||||
void add_color_to_treeview ()
|
||||
{
|
||||
GtkTreeView *treeview;
|
||||
diff --exclude-from=/home/dang/bin/scripts/diffrc -up -ruN gcolor2-0.4.orig/src/main.c gcolor2-0.4/src/main.c
|
||||
--- gcolor2-0.4.orig/src/main.c 2005-07-11 10:55:49.000000000 -0400
|
||||
+++ gcolor2-0.4/src/main.c 2007-02-17 19:18:23.000000000 -0500
|
||||
@@ -4,6 +4,10 @@
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
+#include <glib.h>
|
||||
+#include <glib/gprintf.h>
|
||||
|
||||
#include "interface.h"
|
||||
#include "support.h"
|
||||
Loading…
Add table
Add a link
Reference in a new issue