libunique: fix build, make the package unique

The one in gnome2 was failing to build,
but all there is likely in a desolate state anyway.

In gmpc it also seemed without any reason to have a duplicate.
This commit is contained in:
Vladimír Čunát 2013-11-17 22:21:56 +01:00
parent 4aa1dff1d6
commit 747e757500
4 changed files with 3 additions and 34 deletions

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, libtool, intltool, pkgconfig, glib
, gtk, curl, mpd_clientlib, libsoup, gob2, vala
, gtk, curl, mpd_clientlib, libsoup, gob2, vala, libunique
}:
stdenv.mkDerivation rec {
@ -15,22 +15,6 @@ stdenv.mkDerivation rec {
buildInputs = [ pkgconfig glib ];
};
libunique = stdenv.mkDerivation {
name = "libunique-1.1.6";
src = fetchurl {
url = http://ftp.gnome.org/pub/GNOME/sources/libunique/1.1/libunique-1.1.6.tar.gz;
sha256 = "2cb918dde3554228a211925ba6165a661fd782394bd74dfe15e3853dc9c573ea";
};
buildInputs = [ pkgconfig glib gtk ];
patches = [
(fetchurl {
url = "https://projects.archlinux.org/svntogit/packages.git/plain/trunk/remove_G_CONST_RETURN.patch?h=packages/libunique";
sha256 = "0da2qi7cyyax4rr1p25drlhk360h8d3lapgypi5w95wj9k6bykhr";
})
];
};
src = fetchurl {
url = "http://download.sarine.nl/Programs/gmpc/11.8/gmpc-11.8.16.tar.gz";
sha256 = "0b3bnxf98i5lhjyljvgxgx9xmb6p46cn3a9cccrng14nagri9556";

View File

@ -1,4 +1,4 @@
{ callPackage, self, stdenv, gettext, gvfs, overrides ? {} }:
{ callPackage, self, stdenv, gettext, gvfs, libunique, overrides ? {} }:
{
__overrides = overrides;
@ -67,7 +67,7 @@
startup_notification = callPackage ./platform/startup-notification { };
# Required for nautilus
libunique = callPackage ./platform/libunique { };
inherit (libunique);
gtkglext = callPackage ./platform/gtkglext { };

View File

@ -1,14 +0,0 @@
{stdenv, fetchurl_gnome, pkgconfig, gtk}:
stdenv.mkDerivation rec {
name = src.pkgname;
src = fetchurl_gnome {
project = "libunique";
major = "1"; minor = "1"; patchlevel = "6";
sha256 = "1fsgvmncd9caw552lyfg8swmsd6bh4ijjsph69bwacwfxwf09j75";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gtk ];
}

View File

@ -18,7 +18,6 @@ stdenv.mkDerivation rec {
buildInputs = [ pkgconfig glib gtk dbus_glib ];
# don't make deprecated usages hard errors
preBuildPhases = "preBuild";
preBuild = ''substituteInPlace unique/dbus/Makefile --replace -Werror ""'';
doCheck = true;