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

30 lines
946 B
Nix
Raw Normal View History

2017-05-07 17:53:12 +01:00
{ stdenv, pkgs, fetchgit, pkgconfig, attr, libuuid, libscrypt, libsodium, keyutils, liburcu, zlib, libaio }:
stdenv.mkDerivation rec {
name = "bcachefs-tools-unstable-2017-08-28";
2017-05-07 17:53:12 +01:00
src = fetchgit {
url = "https://evilpiepirate.org/git/bcachefs-tools.git";
rev = "b1814f2dd0c6b61a12a2ebb67a13d406d126b227";
sha256 = "05ba1h09rrqj6vjr3q37ybca3nbrmnifmffdyk83622l28fpv350";
2017-05-07 17:53:12 +01:00
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ attr libuuid libscrypt libsodium keyutils liburcu zlib libaio ];
2017-05-07 17:53:12 +01:00
preConfigure = ''
substituteInPlace cmd_migrate.c --replace /usr/include/dirent.h ${stdenv.lib.getDev stdenv.cc.libc}/include/dirent.h
2017-05-07 17:53:12 +01:00
'';
installFlags = [ "PREFIX=$(out)" ];
meta = with stdenv.lib; {
description = "Tool for managing bcachefs filesystems";
homepage = http://bcachefs.org/;
2017-05-07 17:53:12 +01:00
license = licenses.gpl2;
maintainers = with maintainers; [ davidak ];
platforms = platforms.linux;
};
}