mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 08:36:41 +01:00
f1b7cb7ceb
This only contains static archives since xfsprogs is compiled with dynamic libraries disabled.
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ stdenv, fetchurl, libtool, gettext, libuuid }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "xfsprogs-3.1.11";
|
|
|
|
src = fetchurl {
|
|
urls = [ "ftp://oss.sgi.com/projects/xfs/cmd_tars/${name}.tar.gz" "ftp://oss.sgi.com/projects/xfs/previous/${name}.tar.gz" ];
|
|
sha256 = "1gnnyhy3khl08a24c5y0pyakz6nnwkiw1fc6rb0r1j5mfw0rix5d";
|
|
};
|
|
|
|
patchPhase = ''
|
|
sed -i s,/bin/bash,`type -P bash`, install-sh
|
|
'';
|
|
|
|
outputs = ["out" "lib"];
|
|
|
|
postInstall = ''
|
|
(cd include; make install-dev)
|
|
# The make install-dev target is broken when --disable-shared
|
|
mkdir -p $lib/lib $lib/include
|
|
cp ./libhandle/.libs/libhandle.a \
|
|
./libxcmd/.libs/libxcmd.a \
|
|
./libxlog/.libs/libxlog.a \
|
|
./libxfs/.libs/libxfs.a $lib/lib
|
|
mv $out/include/* $lib/include
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
buildInputs = [ libtool gettext libuuid ];
|
|
|
|
configureFlags = "MAKE=make MSGFMT=msgfmt MSGMERGE=msgmerge XGETTEXT=xgettext ZIP=gzip AWK=gawk --disable-shared";
|
|
preConfigure = ''
|
|
configureFlags="$configureFlags root_sbindir=$out/sbin root_libdir=$lib/lib"
|
|
'';
|
|
disableStatic = false;
|
|
|
|
meta = {
|
|
description = "SGI XFS utilities";
|
|
};
|
|
}
|