3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/filesystems/bcachefs-tools/default.nix
2019-05-30 16:25:32 -04:00

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-05-29";
src = fetchgit {
url = "https://evilpiepirate.org/git/bcachefs-tools.git";
rev = "34b93747051055c1076add36f4730c7715e27f07";
sha256 = "1z6ih0mssa9y9yr3v0dzrflliqz8qfdkjb29p9nqbpg8iqi45fa8";
};
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;
};
}