2009-04-01 05:42:07 +00:00
|
|
|
a :
|
|
|
|
let
|
|
|
|
fetchurl = a.fetchurl;
|
|
|
|
|
2009-07-07 10:02:53 +00:00
|
|
|
version = a.lib.attrByPath ["version"] "0.19" a;
|
2009-04-01 05:42:07 +00:00
|
|
|
buildInputs = with a; [
|
2009-08-11 22:29:03 +00:00
|
|
|
zlib libuuid acl
|
2009-04-01 05:42:07 +00:00
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.kernel.org/pub/linux/kernel/people/mason/btrfs/btrfs-progs-${version}.tar.bz2";
|
2009-07-07 10:02:53 +00:00
|
|
|
sha256 = "1z3hmfgv7h489gnh55abm0gzyf2cgjkybhfc2rnm0cvsx01xv8zq";
|
2009-04-01 05:42:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
inherit buildInputs;
|
|
|
|
configureFlags = [];
|
|
|
|
makeFlags = ["prefix=$out"];
|
|
|
|
|
2009-07-07 21:47:28 +00:00
|
|
|
phaseNames = ["doEnsureBtrfsImage" "doMakeInstall"];
|
2009-04-01 05:42:07 +00:00
|
|
|
|
2009-07-07 21:47:28 +00: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 05:42:07 +00:00
|
|
|
name = "btrfs-progs-" + version;
|
|
|
|
meta = {
|
|
|
|
description = "BTRFS utilities";
|
2009-08-04 07:49:16 +00:00
|
|
|
maintainers = [a.lib.maintainers.raskin];
|
2009-04-01 05:42:07 +00:00
|
|
|
};
|
|
|
|
}
|