pcmanx-gtk2: fix build

It fails to build after automake updates to 1.16
because libtoolize generates hardcoded configure script
which uses automake 1.15
This commit is contained in:
mingchuan 2018-04-07 14:57:44 +08:00
parent 5eb88ec7f0
commit 209d455583
No known key found for this signature in database
GPG Key ID: 607CD25FA2D03651

View File

@ -1,10 +1,14 @@
{ stdenv, fetchurl, gtk2, libXft, intltool, automake, autoconf, libtool, pkgconfig }:
{ stdenv, fetchFromGitHub, gtk2, libXft, intltool, automake, autoconf, libtool, pkgconfig }:
stdenv.mkDerivation {
name = "pcmanx-gtk2-1.3";
src = fetchurl {
url = "https://github.com/pcman-bbs/pcmanx/archive/1.3.tar.gz";
sha256 = "2e5c59f6b568036f2ad6ac67ca2a41dfeeafa185451e507f9fb987d4ed9c4302";
stdenv.mkDerivation rec {
name = "pcmanx-gtk2-${version}";
version = "1.3";
src = fetchFromGitHub {
owner = "pcman-bbs";
repo = "pcmanx";
rev = version;
sha256 = "0fbwd149wny67rfhczz4cbh713a1qnswjiz7b6c2bxfcwh51f9rc";
};
nativeBuildInputs = [ pkgconfig ];
@ -12,6 +16,8 @@ stdenv.mkDerivation {
preConfigure = ''
./autogen.sh
# libtoolize generates configure script which uses older version of automake, we need to autoreconf it
cd libltdl; autoreconf; cd ..
'';
meta = with stdenv.lib; {