git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #6461 from henrytill/hsetroot

hsetroot: fix libX11 error

commitdb97a23be3c1acf340a6651ae908c51dd89af790 authorcillianderoiste <cillian.deroiste@gmail.com> dateSun 22 Feb 2015, 14:06 (12 years ago) parent7d719dda0830c9
1 file changed+23−7
pkgs/tools/X11/hsetroot/default.nix+23−7
pkgs/tools/X11/hsetroot/default.nix+23−7
@@ -1,19 +1,35 @@
1−{stdenv, fetchurl, imlib2, libX11, libXext }:
1+{ stdenv, fetchurl, autoconf, automake, imlib2, libtool, libX11, pkgconfig, xproto }:
22
3−stdenv.mkDerivation {
4− name = "hsetroot-1.0.2";
3+stdenv.mkDerivation rec {
4+ name = "hsetroot-${version}";
5+ version = "1.0.2";
56
67 # The primary download site seems to no longer exist; use Gentoo's mirror for now.
78 src = fetchurl {
8− url = "http://mirror.datapipe.net/gentoo/distfiles/hsetroot-1.0.2.tar.gz";
9+ url = "http://mirror.datapipe.net/gentoo/distfiles/hsetroot-${version}.tar.gz";
910 sha256 = "d6712d330b31122c077bfc712ec4e213abe1fe71ab24b9150ae2774ca3154fd7";
1011 };
1112
12− buildInputs = [ imlib2 libX11 libXext ];
13+ # See https://bugs.gentoo.org/show_bug.cgi?id=504056
14+ underlinkingPatch = fetchurl {
15+ url = http://www.gtlib.gatech.edu/pub/gentoo/gentoo-x86-portage/x11-misc/hsetroot/files/hsetroot-1.0.2-underlinking.patch;
16+ name = "hsetroot-1.0.2-underlinking.patch";
17+ sha256 = "1px1p3wz7ji725z9nlwb0x0h6lnnvnpz15sblzzq7zrijl3wz65x";
18+ };
19+
20+ buildInputs = [ autoconf automake imlib2 libtool libX11 pkgconfig xproto ];
21+
22+ patches = [ underlinkingPatch ];
23+
24+ patchFlags = "-p0";
25+
26+ preConfigure = "./autogen.sh";
1327
14− meta = {
28+ meta = with stdenv.lib; {
1529 description = "Allows you to compose wallpapers ('root pixmaps') for X";
1630 homepage = http://thegraveyard.org/hsetroot.html;
17− license = stdenv.lib.licenses.gpl2Plus;
31+ license = licenses.gpl2Plus;
32+ maintainers = [ maintainers.henrytill ];
33+ platforms = platforms.unix;
1834 };
1935}