2021-01-15 22:18:51 +00:00
|
|
|
{lib, stdenv, fetchurl}:
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libvolume_id";
|
|
|
|
version = "0.81.1";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2021-09-26 12:46:18 +00:00
|
|
|
url = "https://www.marcuscom.com/downloads/libvolume_id-${version}.tar.bz2";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "029z04vdxxsl8gycm9whcljhv6dy4b12ybsxdb99jr251gl1ifs5";
|
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = "
|
2021-02-19 19:06:45 +00:00
|
|
|
makeFlagsArray=(prefix=$out E=echo RANLIB=${stdenv.cc.targetPrefix}ranlib INSTALL='install -c')
|
2020-04-24 23:36:52 +00:00
|
|
|
";
|
|
|
|
|
|
|
|
# Work around a broken Makefile.
|
|
|
|
postInstall = "
|
|
|
|
rm $out/lib/libvolume_id.so.0
|
|
|
|
cp -f libvolume_id.so.0 $out/lib/
|
|
|
|
";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-07-18 16:06:22 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
2021-09-26 12:46:18 +00:00
|
|
|
homepage = "http://www.marcuscom.com/downloads/";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|