2012-07-18 15:21:33 +02:00
|
|
|
{ stdenv, fetchgit, zlib, libuuid, acl, attr, e2fsprogs }:
|
2009-04-01 07:42:07 +02:00
|
|
|
|
2012-10-09 14:08:17 +02:00
|
|
|
let version = "0.20pre20121005"; in
|
2009-10-02 17:06:07 +02:00
|
|
|
|
2012-07-18 15:21:33 +02:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "btrfs-progs-${version}";
|
2009-10-02 17:06:07 +02:00
|
|
|
|
2012-07-18 15:21:33 +02:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git";
|
2012-10-09 14:08:17 +02:00
|
|
|
rev = "91d9eec1ff044394f2b98ee7fcb76713dd33b994";
|
|
|
|
sha256 = "72d4cd4fb23d876a17146d6231ad40a2151fa47c648485c54cf7478239b43764";
|
2009-04-01 07:42:07 +02:00
|
|
|
};
|
|
|
|
|
2012-12-30 12:46:27 +01:00
|
|
|
patches = [
|
|
|
|
./subvol-listing.patch
|
|
|
|
./btrfs-receive-help-text.patch
|
|
|
|
./btrfs-progs-Fix-the-receive-code-pathing.patch
|
|
|
|
./btrfs-receive-lchown.patch
|
|
|
|
];
|
2012-12-30 12:14:20 +01:00
|
|
|
|
2012-07-18 15:21:33 +02:00
|
|
|
buildInputs = [ zlib libuuid acl attr e2fsprogs ];
|
2011-12-13 05:30:49 +01:00
|
|
|
|
2012-12-30 13:56:12 +01:00
|
|
|
postPatch = ''
|
|
|
|
cp ${./btrfs-set-received-uuid.c} btrfs-set-received-uuid.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
gcc -O2 -luuid -o btrfs-set-received-uuid send-utils.o rbtree.o btrfs-list.o btrfs-set-received-uuid.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cp btrfs-set-received-uuid $out/bin
|
|
|
|
'';
|
|
|
|
|
2012-07-18 15:21:33 +02:00
|
|
|
makeFlags = "prefix=$(out)";
|
2009-04-01 07:42:07 +02:00
|
|
|
|
|
|
|
meta = {
|
2012-07-18 15:21:33 +02:00
|
|
|
description = "Utilities for the btrfs filesystem";
|
|
|
|
homepage = https://btrfs.wiki.kernel.org/;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-04-01 07:42:07 +02:00
|
|
|
};
|
|
|
|
}
|