2018-08-06 14:58:12 +01:00
|
|
|
{ stdenv, fetchgit, pkgconfig, attr, libuuid, libscrypt, libsodium, keyutils
|
|
|
|
, liburcu, zlib, libaio, zstd, lz4 }:
|
2017-05-07 17:53:12 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-01-14 02:24:53 +00:00
|
|
|
pname = "bcachefs-tools";
|
2019-08-24 03:38:00 +01:00
|
|
|
version = "2019-08-21";
|
2017-05-07 17:53:12 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://evilpiepirate.org/git/bcachefs-tools.git";
|
2019-08-24 03:38:00 +01:00
|
|
|
rev = "72a408f84846fe702b8db4f158b678ee20bbf835";
|
|
|
|
sha256 = "0y5700afv1x1i3wnp3g71i3zhyhkwmx79j0irxr63fmg47n0ys1i";
|
2017-05-07 17:53:12 +01:00
|
|
|
};
|
|
|
|
|
2018-03-27 10:40:44 +01:00
|
|
|
enableParallelBuilding = true;
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-08-06 14:58:12 +01:00
|
|
|
buildInputs = [ attr libuuid libscrypt libsodium keyutils liburcu zlib libaio zstd lz4 ];
|
2019-01-14 02:24:53 +00:00
|
|
|
installFlags = [ "PREFIX=${placeholder "out"}" ];
|
2019-01-28 01:47:24 +00:00
|
|
|
|
2018-08-06 14:58:12 +01:00
|
|
|
preInstall = ''
|
2019-01-14 02:24:53 +00:00
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "INITRAMFS_DIR=/etc/initramfs-tools" \
|
|
|
|
"INITRAMFS_DIR=${placeholder "out"}/etc/initramfs-tools"
|
2018-08-06 14:58:12 +01:00
|
|
|
'';
|
2017-05-07 17:53:12 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Tool for managing bcachefs filesystems";
|
2018-02-09 22:34:42 +00:00
|
|
|
homepage = https://bcachefs.org/;
|
2017-05-07 17:53:12 +01:00
|
|
|
license = licenses.gpl2;
|
2018-08-06 14:58:12 +01:00
|
|
|
maintainers = with maintainers; [ davidak chiiruno ];
|
2017-05-07 17:53:12 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|