forked from mirrors/nixpkgs
33 lines
1 KiB
Nix
33 lines
1 KiB
Nix
{ stdenv, fetchgit, pkgconfig, attr, libuuid, libscrypt, libsodium, keyutils
|
|
, liburcu, zlib, libaio, zstd, lz4 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bcachefs-tools";
|
|
version = "2019-07-11";
|
|
|
|
src = fetchgit {
|
|
url = "https://evilpiepirate.org/git/bcachefs-tools.git";
|
|
rev = "33c91e2ff4e228cb618ca22d642a34ec1c2cf0ef";
|
|
sha256 = "0glldbnda61xwf7309mk48qmxqnipjmcgsibab77nr6v3bg13ip1";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ attr libuuid libscrypt libsodium keyutils liburcu zlib libaio zstd lz4 ];
|
|
installFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
preInstall = ''
|
|
substituteInPlace Makefile \
|
|
--replace "INITRAMFS_DIR=/etc/initramfs-tools" \
|
|
"INITRAMFS_DIR=${placeholder "out"}/etc/initramfs-tools"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Tool for managing bcachefs filesystems";
|
|
homepage = https://bcachefs.org/;
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ davidak chiiruno ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|