1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/filesystems/bcachefs-tools/default.nix

31 lines
989 B
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 {
name = "bcachefs-tools-unstable-2018-10-12";
2017-05-07 17:53:12 +01:00
src = fetchgit {
url = "https://evilpiepirate.org/git/bcachefs-tools.git";
rev = "55fbb25501330038e1714905b9ddeb25d875c11c";
sha256 = "0cwzbyf133jc0fkc8nmjcvv3wmglqhyxda1hh10hgxrbq5vm39wx";
2017-05-07 17:53:12 +01:00
};
enableParallelBuilding = true;
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ attr libuuid libscrypt libsodium keyutils liburcu zlib libaio zstd lz4 ];
2017-05-07 17:53:12 +01:00
installFlags = [ "PREFIX=$(out)" ];
preInstall = ''
sed -i \
"s,INITRAMFS_DIR=/etc/initramfs-tools,INITRAMFS_DIR=$out/etc/initramfs-tools,g" Makefile
'';
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;
};
}