summary refs log tree commit diff
path: root/pkgs/tools/filesystems/bcachefs-tools
diff options
context:
space:
mode:
authordavidak <git@davidak.de>2017-05-07 18:53:12 +0200
committerdavidak <git@davidak.de>2017-05-10 00:22:33 +0200
commit26294f40c34188e088ca49eeee175b96e93b5ae7 (patch)
tree593858c86353f1c59bdc097b26a024a029605199 /pkgs/tools/filesystems/bcachefs-tools
parent63841d159e5f2e20c56948df84b004a03f236c47 (diff)
downloadnixpkgs-26294f40c34188e088ca49eeee175b96e93b5ae7.tar
nixpkgs-26294f40c34188e088ca49eeee175b96e93b5ae7.tar.gz
nixpkgs-26294f40c34188e088ca49eeee175b96e93b5ae7.tar.bz2
nixpkgs-26294f40c34188e088ca49eeee175b96e93b5ae7.tar.lz
nixpkgs-26294f40c34188e088ca49eeee175b96e93b5ae7.tar.xz
nixpkgs-26294f40c34188e088ca49eeee175b96e93b5ae7.tar.zst
nixpkgs-26294f40c34188e088ca49eeee175b96e93b5ae7.zip
bcachefs-tools: init at a588eb0
Diffstat (limited to 'pkgs/tools/filesystems/bcachefs-tools')
-rw-r--r--pkgs/tools/filesystems/bcachefs-tools/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/bcachefs-tools/default.nix b/pkgs/tools/filesystems/bcachefs-tools/default.nix
new file mode 100644
index 00000000000..75fb00f6fb7
--- /dev/null
+++ b/pkgs/tools/filesystems/bcachefs-tools/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, pkgs, fetchgit, pkgconfig, attr, libuuid, libscrypt, libsodium, keyutils, liburcu, zlib, libaio }:
+
+stdenv.mkDerivation rec {
+  name = "bcachefs-tools-${version}";
+  version = "git";
+
+  src = fetchgit {
+    url = "https://evilpiepirate.org/git/bcachefs-tools.git";
+    rev = "a588eb0d9e30dffa4b319a4715c1454ee1d911f1 ";
+    sha256 = "1xpiwp6n6jp3zc70i648xpp54cd5yay4si28czn350bxwljbwpsy";
+  };
+
+  buildInputs = [ pkgconfig attr libuuid libscrypt libsodium keyutils liburcu zlib libaio ];
+
+  preConfigure = ''
+    substituteInPlace cmd_migrate.c --replace /usr/include/dirent.h ${stdenv.glibc.dev}/include/dirent.h
+  '';
+
+  installFlags = [ "PREFIX=$(out)" ];
+
+  meta = with stdenv.lib; {
+    description = "Tool for managing bcachefs filesystems";
+    homepage = "http://bcachefs.org/";
+    license = licenses.gpl2;
+    maintainers = with maintainers; [ davidak ];
+    platforms = platforms.linux;
+  };
+}
+