2017-05-07 17:53:12 +01:00
|
|
|
{ stdenv, pkgs, fetchgit, pkgconfig, attr, libuuid, libscrypt, libsodium, keyutils, liburcu, zlib, libaio }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-05-19 13:24:50 +01:00
|
|
|
name = "bcachefs-tools-unstable-2016-05-13";
|
2017-05-07 17:53:12 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://evilpiepirate.org/git/bcachefs-tools.git";
|
2017-05-19 13:24:50 +01:00
|
|
|
rev = "565b4a74d6c25c78b0d2b82d9529595fc6269308";
|
|
|
|
sha256 = "1wnis26hq67vxqkxzck6wm6caq4c1rfmy9blmmgkzlhdd2nzisbx";
|
2017-05-07 17:53:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pkgconfig attr libuuid libscrypt libsodium keyutils liburcu zlib libaio ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace cmd_migrate.c --replace /usr/include/dirent.h ${stdenv.glibc.dev}/include/dirent.h
|
|
|
|
'';
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Tool for managing bcachefs filesystems";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://bcachefs.org/;
|
2017-05-07 17:53:12 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ davidak ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|