summary refs log tree commit diff
path: root/pkgs/tools/filesystems/bcachefs-tools
diff options
context:
space:
mode:
authorOkina Matara <okinan@protonmail.com>2018-03-27 04:40:44 -0500
committerOkina Matara <okinan@protonmail.com>2018-03-27 04:40:44 -0500
commit1b8d2a311904ef2f83819bc2039bf734028316aa (patch)
treed05acf94d91401a8baaddaa2f8e270fcea289612 /pkgs/tools/filesystems/bcachefs-tools
parent00a43001d44b48ca239aeb4292a8609cdc228118 (diff)
downloadnixpkgs-1b8d2a311904ef2f83819bc2039bf734028316aa.tar
nixpkgs-1b8d2a311904ef2f83819bc2039bf734028316aa.tar.gz
nixpkgs-1b8d2a311904ef2f83819bc2039bf734028316aa.tar.bz2
nixpkgs-1b8d2a311904ef2f83819bc2039bf734028316aa.tar.lz
nixpkgs-1b8d2a311904ef2f83819bc2039bf734028316aa.tar.xz
nixpkgs-1b8d2a311904ef2f83819bc2039bf734028316aa.tar.zst
nixpkgs-1b8d2a311904ef2f83819bc2039bf734028316aa.zip
bcachefs-tools: 2018-02-08 -> 2018-03-20
Diffstat (limited to 'pkgs/tools/filesystems/bcachefs-tools')
-rw-r--r--pkgs/tools/filesystems/bcachefs-tools/Makefile.patch13
-rw-r--r--pkgs/tools/filesystems/bcachefs-tools/default.nix14
2 files changed, 21 insertions, 6 deletions
diff --git a/pkgs/tools/filesystems/bcachefs-tools/Makefile.patch b/pkgs/tools/filesystems/bcachefs-tools/Makefile.patch
new file mode 100644
index 00000000000..812f9954cf2
--- /dev/null
+++ b/pkgs/tools/filesystems/bcachefs-tools/Makefile.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile b/Makefile
+index af7a206..553ac70 100644
+--- a/Makefile
++++ b/Makefile
+@@ -47,7 +47,7 @@ ifeq ($(PREFIX),/usr)
+ 	INITRAMFS_DIR=$(PREFIX)/share/initramfs-tools
+ else
+ 	ROOT_SBINDIR=$(PREFIX)/sbin
+-	INITRAMFS_DIR=/etc/initramfs-tools
++	INITRAMFS_DIR=$(PREFIX)/etc/initramfs-tools
+ endif
+ 
+ .PHONY: all
diff --git a/pkgs/tools/filesystems/bcachefs-tools/default.nix b/pkgs/tools/filesystems/bcachefs-tools/default.nix
index 0a5017de53c..3684b216cd7 100644
--- a/pkgs/tools/filesystems/bcachefs-tools/default.nix
+++ b/pkgs/tools/filesystems/bcachefs-tools/default.nix
@@ -1,17 +1,19 @@
 { stdenv, pkgs, fetchgit, pkgconfig, attr, libuuid, libscrypt, libsodium
-, keyutils, liburcu, zlib, libaio }:
+, keyutils, liburcu, zlib, libaio, zstd }:
 
 stdenv.mkDerivation rec {
-  name = "bcachefs-tools-unstable-2018-02-08";
+  name = "bcachefs-tools-unstable-2018-03-20";
 
   src = fetchgit {
     url = "https://evilpiepirate.org/git/bcachefs-tools.git";
-    rev = "fc96071b58c28ea492103e7649c0efd5bab50ead";
-    sha256 = "0a2sxkz0mkmvb5g4k2v8g2c89dj29haw9bd3bpwk0dsfkjif92vy";
+    rev = "ff5e165532a2eed87700649d03f91a612a58e92a";
+    sha256 = "1mikhffkr4a1yhy36yh70dhgcimcpvdm5mjl5fyni0bpgqrw67dn";
   };
 
+  enableParallelBuilding = true;
   nativeBuildInputs = [ pkgconfig ];
-  buildInputs = [ attr libuuid libscrypt libsodium keyutils liburcu zlib libaio ];
+  buildInputs = [ attr libuuid libscrypt libsodium keyutils liburcu zlib libaio zstd ];
+  patches = [ ./Makefile.patch ];
 
   installFlags = [ "PREFIX=$(out)" ];
 
@@ -19,7 +21,7 @@ stdenv.mkDerivation rec {
     description = "Tool for managing bcachefs filesystems";
     homepage = https://bcachefs.org/;
     license = licenses.gpl2;
-    maintainers = with maintainers; [ davidak ];
+    maintainers = with maintainers; [ davidak chiiruno];
     platforms = platforms.linux;
   };
 }