2014-09-19 23:18:33 +02:00
|
|
|
{ stdenv, fetchurl, gettext, libuuid, readline }:
|
2009-10-08 15:07:56 +02:00
|
|
|
|
2009-12-08 17:58:22 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-08-08 15:45:56 +02:00
|
|
|
name = "xfsprogs-4.5.0";
|
2009-10-08 15:07:56 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-09-19 23:18:33 +02:00
|
|
|
urls = map (dir: "ftp://oss.sgi.com/projects/xfs/${dir}/${name}.tar.gz")
|
|
|
|
[ "cmd_tars" "previous" ];
|
2016-08-08 15:45:56 +02:00
|
|
|
sha256 = "1y49rwvbbvqdq2a1x7p5i05bcfyv6xhmrfwafl6vvvw494qyp6z4";
|
2009-10-08 15:07:56 +02:00
|
|
|
};
|
|
|
|
|
2014-09-19 23:18:33 +02:00
|
|
|
prePatch = ''
|
2015-09-18 22:19:59 +02:00
|
|
|
sed -i "s,/bin/bash,$(type -P bash),g" install-sh
|
|
|
|
sed -i "s,ldconfig,$(type -P ldconfig),g" configure m4/libtool.m4
|
2014-09-19 23:18:33 +02:00
|
|
|
|
|
|
|
# Fixes from gentoo 3.2.1 ebuild
|
|
|
|
sed -i "/^PKG_DOC_DIR/s:@pkg_name@:${name}:" include/builddefs.in
|
2015-09-18 22:19:59 +02:00
|
|
|
sed -i "/LLDFLAGS.*libtool-libs/d" $(find -name Makefile)
|
2014-09-19 23:18:33 +02:00
|
|
|
sed -i '/LIB_SUBDIRS/s:libdisk::' Makefile
|
2012-06-10 16:41:22 +02:00
|
|
|
'';
|
|
|
|
|
2014-09-19 23:18:33 +02:00
|
|
|
patches = [
|
2015-09-18 22:19:59 +02:00
|
|
|
# This patch fixes shared libs installation, still not fixed in 4.2.0
|
2016-08-08 15:45:56 +02:00
|
|
|
./4.3.0-sharedlibs.patch
|
2014-09-19 23:18:33 +02:00
|
|
|
];
|
2014-04-16 23:41:50 +02:00
|
|
|
|
2014-09-19 23:18:33 +02:00
|
|
|
buildInputs = [ gettext libuuid readline ];
|
2014-04-16 23:41:50 +02:00
|
|
|
|
2015-05-05 11:41:37 +02:00
|
|
|
outputs = [ "dev" "out" "bin" ]; # TODO: review xfs
|
2014-04-16 23:41:50 +02:00
|
|
|
|
2014-09-20 01:14:50 +02:00
|
|
|
preConfigure = ''
|
|
|
|
NIX_LDFLAGS="$(echo $NIX_LDFLAGS | sed "s,$out,$lib,g")"
|
|
|
|
'';
|
|
|
|
|
2014-09-19 23:18:33 +02:00
|
|
|
configureFlags = [
|
|
|
|
"MAKE=make"
|
|
|
|
"MSGFMT=msgfmt"
|
|
|
|
"MSGMERGE=msgmerge"
|
|
|
|
"XGETTEXT=xgettext"
|
|
|
|
"--disable-lib64"
|
|
|
|
"--enable-readline"
|
|
|
|
];
|
2009-10-08 15:07:56 +02:00
|
|
|
|
2014-09-19 23:18:33 +02:00
|
|
|
installFlags = [ "install-dev" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://xfs.org/;
|
2009-10-08 15:07:56 +02:00
|
|
|
description = "SGI XFS utilities";
|
2014-09-19 23:18:33 +02:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
2009-10-08 15:07:56 +02:00
|
|
|
};
|
|
|
|
}
|