git.iko.soy/typeable/nixpkgs
on master help sign in
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

commit209d455583c33756ea5c56148985b8e038c6b0af authormingchuan <ming@culpring.com> dateSat 7 Apr 2018, 14:57 (9 years ago) parent5eb88ec
1 file changed+12−6
pkgs/applications/misc/pcmanx-gtk2/default.nix+12−6
pkgs/applications/misc/pcmanx-gtk2/default.nix+12−6
@@ -1,10 +1,14 @@
1−{ stdenv, fetchurl, gtk2, libXft, intltool, automake, autoconf, libtool, pkgconfig }:
1+{ stdenv, fetchFromGitHub, gtk2, libXft, intltool, automake, autoconf, libtool, pkgconfig }:
22
3−stdenv.mkDerivation {
4− name = "pcmanx-gtk2-1.3";
5− src = fetchurl {
6− url = "https://github.com/pcman-bbs/pcmanx/archive/1.3.tar.gz";
7− sha256 = "2e5c59f6b568036f2ad6ac67ca2a41dfeeafa185451e507f9fb987d4ed9c4302";
3+stdenv.mkDerivation rec {
4+ name = "pcmanx-gtk2-${version}";
5+ version = "1.3";
6+
7+ src = fetchFromGitHub {
8+ owner = "pcman-bbs";
9+ repo = "pcmanx";
10+ rev = version;
11+ sha256 = "0fbwd149wny67rfhczz4cbh713a1qnswjiz7b6c2bxfcwh51f9rc";
812 };
913
1014 nativeBuildInputs = [ pkgconfig ];
@@ -12,6 +16,8 @@ stdenv.mkDerivation {
1216
1317 preConfigure = ''
1418 ./autogen.sh
19+ # libtoolize generates configure script which uses older version of automake, we need to autoreconf it
20+ cd libltdl; autoreconf; cd ..
1521 '';
1622
1723 meta = with stdenv.lib; {