bcachefs-tools: 2019-10-12 -> 2020-03-25
This commit is contained in:
parent
e003ae1874
commit
3752bfd219
@ -1,27 +1,55 @@
|
|||||||
{ stdenv, fetchgit, pkgconfig, attr, libuuid, libscrypt, libsodium, keyutils
|
{ stdenv, fetchgit, pkgconfig, attr, libuuid, libscrypt, libsodium, keyutils
|
||||||
, liburcu, zlib, libaio, zstd, lz4 }:
|
, liburcu, zlib, libaio, zstd, lz4, valgrind, python3Packages
|
||||||
|
, fuseSupport ? false, fuse3 ? null }:
|
||||||
|
|
||||||
|
assert fuseSupport -> fuse3 != null;
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "bcachefs-tools";
|
pname = "bcachefs-tools";
|
||||||
version = "2019-10-12";
|
version = "2020-03-25";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "https://evilpiepirate.org/git/bcachefs-tools.git";
|
url = "https://evilpiepirate.org/git/bcachefs-tools.git";
|
||||||
rev = "6e696ea08703eecd0d1c7b8c520b6f62f06f4f26";
|
rev = "2aed686c235a7d08adf601f147f823eb62e697a1";
|
||||||
sha256 = "0m3valm68vc73b4kydlga17fglxa9bldrjaszlladzl5bd0zb967";
|
sha256 = "0prr8m6lwsabflslvi9j906wlm6m052zgi480y3gbkdm1sqcfjcs";
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
postPatch = ''
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
|
||||||
buildInputs = [ attr libuuid libscrypt libsodium keyutils liburcu zlib libaio zstd lz4 ];
|
|
||||||
installFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
||||||
|
|
||||||
preInstall = ''
|
|
||||||
substituteInPlace Makefile \
|
substituteInPlace Makefile \
|
||||||
|
--replace "pytest-3" "pytest --verbose" \
|
||||||
--replace "INITRAMFS_DIR=/etc/initramfs-tools" \
|
--replace "INITRAMFS_DIR=/etc/initramfs-tools" \
|
||||||
"INITRAMFS_DIR=${placeholder "out"}/etc/initramfs-tools"
|
"INITRAMFS_DIR=${placeholder "out"}/etc/initramfs-tools"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkgconfig
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
libuuid libscrypt libsodium keyutils liburcu zlib libaio
|
||||||
|
zstd lz4 python3Packages.pytest
|
||||||
|
] ++ stdenv.lib.optional fuseSupport fuse3;
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
checkFlags = [
|
||||||
|
"BCACHEFS_TEST_USE_VALGRIND=no"
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
valgrind
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = stdenv.lib.optionalString fuseSupport ''
|
||||||
|
rm tests/test_fuse.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
installFlags = [
|
||||||
|
"PREFIX=${placeholder "out"}"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Tool for managing bcachefs filesystems";
|
description = "Tool for managing bcachefs filesystems";
|
||||||
homepage = https://bcachefs.org/;
|
homepage = https://bcachefs.org/;
|
||||||
|
Loading…
Reference in New Issue
Block a user