mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
33 lines
1.0 KiB
Nix
33 lines
1.0 KiB
Nix
{ stdenv, fetchgit, pkgconfig, attr, libuuid, libscrypt, libsodium, keyutils
|
|
, liburcu, zlib, libaio, zstd, lz4 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bcachefs-tools";
|
|
version = "2019-01-23";
|
|
|
|
src = fetchgit {
|
|
url = "https://evilpiepirate.org/git/bcachefs-tools.git";
|
|
rev = "35fca2f044d375b1590f499cfd34bef38ca0f8f1";
|
|
sha256 = "1mmpwksszdi4n7zv3fm7qnmfk94m56d65lfw30553bnfm3yaz3k7";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|