2009-04-01 07:42:07 +02:00
|
|
|
a :
|
|
|
|
let
|
|
|
|
fetchurl = a.fetchurl;
|
|
|
|
|
2009-07-07 12:02:53 +02:00
|
|
|
version = a.lib.attrByPath ["version"] "0.19" a;
|
2009-04-01 07:42:07 +02:00
|
|
|
buildInputs = with a; [
|
2009-08-12 00:29:03 +02:00
|
|
|
zlib libuuid acl
|
2009-04-01 07:42:07 +02:00
|
|
|
];
|
|
|
|
in
|
2009-10-02 17:06:07 +02:00
|
|
|
|
2009-10-02 17:15:18 +02:00
|
|
|
assert a.libuuid != null;
|
2009-10-02 17:06:07 +02:00
|
|
|
|
2009-04-01 07:42:07 +02:00
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.kernel.org/pub/linux/kernel/people/mason/btrfs/btrfs-progs-${version}.tar.bz2";
|
2009-07-07 12:02:53 +02:00
|
|
|
sha256 = "1z3hmfgv7h489gnh55abm0gzyf2cgjkybhfc2rnm0cvsx01xv8zq";
|
2009-04-01 07:42:07 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
inherit buildInputs;
|
|
|
|
configureFlags = [];
|
|
|
|
makeFlags = ["prefix=$out"];
|
|
|
|
|
2010-09-09 19:07:28 +02:00
|
|
|
patches = [ ./glibc212.patch ];
|
|
|
|
phaseNames = ["doPatch" "doEnsureBtrfsImage" "doMakeInstall"];
|
2009-04-01 07:42:07 +02:00
|
|
|
|
2009-07-07 23:47:28 +02:00
|
|
|
doEnsureBtrfsImage = a.fullDepEntry (''
|
|
|
|
if ! grep 'progs = ' Makefile | grep btrfs-image; then
|
|
|
|
sed -e 's/progs = .*/& btrfs-image/' -i Makefile
|
|
|
|
fi
|
|
|
|
'') ["minInit" "doUnpack"];
|
|
|
|
|
2009-04-01 07:42:07 +02:00
|
|
|
name = "btrfs-progs-" + version;
|
|
|
|
meta = {
|
|
|
|
description = "BTRFS utilities";
|
2009-08-04 09:49:16 +02:00
|
|
|
maintainers = [a.lib.maintainers.raskin];
|
2009-04-01 07:42:07 +02:00
|
|
|
};
|
|
|
|
}
|