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