nixpkgs/pkgs/tools/filesystems/bcachefs-tools/default.nix

33 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv, fetchgit, pkgconfig, attr, libuuid, libscrypt, libsodium, keyutils
, liburcu, zlib, libaio, zstd, lz4 }:
2017-05-07 17:53:12 +01:00
stdenv.mkDerivation rec {
pname = "bcachefs-tools";
version = "2019-07-13";
2017-05-07 17:53:12 +01:00
src = fetchgit {
url = "https://evilpiepirate.org/git/bcachefs-tools.git";
rev = "692eadd6ca9b45f12971126b326b6a89d7117e67";
sha256 = "0d2kqy5p89qjrk38iqfk9zsh14c2x40d21kic9kcybdhalfq5q31";
2017-05-07 17:53:12 +01:00
};
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"
'';
2017-05-07 17:53:12 +01:00
meta = with stdenv.lib; {
description = "Tool for managing bcachefs filesystems";
homepage = https://bcachefs.org/;
2017-05-07 17:53:12 +01:00
license = licenses.gpl2;
maintainers = with maintainers; [ davidak chiiruno ];
2017-05-07 17:53:12 +01:00
platforms = platforms.linux;
};
}