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