2007-06-05 16:57:26 +01:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2008-03-06 13:06:32 +00:00
|
|
|
name = "libvolume_id-0.81.0";
|
2007-06-05 16:57:26 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-03-06 13:06:32 +00:00
|
|
|
url = http://www.marcuscom.com/downloads/libvolume_id-0.81.0.tar.bz2;
|
|
|
|
sha256 = "1dpmp1kb40kb1jxj6flpi37wy789wf91dm4bax6jspd1jdc6hsrg";
|
2007-06-05 16:57:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = "
|
|
|
|
makeFlagsArray=(prefix=$out E=echo RANLIB=ranlib INSTALL='install -c')
|
|
|
|
";
|
|
|
|
|
|
|
|
# Work around a broken Makefile.
|
|
|
|
postInstall = "
|
|
|
|
rm $out/lib/libvolume_id.so.0
|
|
|
|
cp -f libvolume_id.so.0 $out/lib/
|
|
|
|
";
|
|
|
|
}
|