summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/X11/hsetroot
diff options
context:
space:
mode:
authorHenry Till <henrytill@gmail.com>2015-02-20 20:49:33 -0500
committerHenry Till <henrytill@gmail.com>2015-02-20 20:49:33 -0500
commita0830c90396d5e8ab5fe6186af115fc73224fbcd (patch)
tree9bebba9d37f29c3d13403cd7051acea051f6cffd /pkgs/tools/X11/hsetroot
parent1aed33f68b055180d0d52ff04699b0ca0ab05257 (diff)
hsetroot: fix libX11 error
Diffstat (limited to 'pkgs/tools/X11/hsetroot')
-rw-r--r--pkgs/tools/X11/hsetroot/default.nix30
1 files changed, 23 insertions, 7 deletions
diff --git a/pkgs/tools/X11/hsetroot/default.nix b/pkgs/tools/X11/hsetroot/default.nix
index e226f1f93c43..eeaf5dac7c6a 100644
--- a/pkgs/tools/X11/hsetroot/default.nix
+++ b/pkgs/tools/X11/hsetroot/default.nix
@@ -1,19 +1,35 @@
-{stdenv, fetchurl, imlib2, libX11, libXext }:
+{ stdenv, fetchurl, autoconf, automake, imlib2, libtool, libX11, pkgconfig, xproto }:
-stdenv.mkDerivation {
- name = "hsetroot-1.0.2";
+stdenv.mkDerivation rec {
+ name = "hsetroot-${version}";
+ version = "1.0.2";
# The primary download site seems to no longer exist; use Gentoo's mirror for now.
src = fetchurl {
- url = "http://mirror.datapipe.net/gentoo/distfiles/hsetroot-1.0.2.tar.gz";
+ url = "http://mirror.datapipe.net/gentoo/distfiles/hsetroot-${version}.tar.gz";
sha256 = "d6712d330b31122c077bfc712ec4e213abe1fe71ab24b9150ae2774ca3154fd7";
};
- buildInputs = [ imlib2 libX11 libXext ];
+ # See https://bugs.gentoo.org/show_bug.cgi?id=504056
+ underlinkingPatch = fetchurl {
+ url = http://www.gtlib.gatech.edu/pub/gentoo/gentoo-x86-portage/x11-misc/hsetroot/files/hsetroot-1.0.2-underlinking.patch;
+ name = "hsetroot-1.0.2-underlinking.patch";
+ sha256 = "1px1p3wz7ji725z9nlwb0x0h6lnnvnpz15sblzzq7zrijl3wz65x";
+ };
+
+ buildInputs = [ autoconf automake imlib2 libtool libX11 pkgconfig xproto ];
+
+ patches = [ underlinkingPatch ];
+
+ patchFlags = "-p0";
+
+ preConfigure = "./autogen.sh";
- meta = {
+ meta = with stdenv.lib; {
description = "Allows you to compose wallpapers ('root pixmaps') for X";
homepage = http://thegraveyard.org/hsetroot.html;
- license = stdenv.lib.licenses.gpl2Plus;
+ license = licenses.gpl2Plus;
+ maintainers = [ maintainers.henrytill ];
+ platforms = platforms.unix;
};
}