summary refs log tree commit diff
path: root/pkgs/tools/filesystems/bcachefs-tools/default.nix
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2019-01-13 20:24:53 -0600
committerWill Dietz <w@wdtz.org>2019-01-13 20:45:01 -0600
commitc6c38b61a8293b2127ceda0bbf754755cd22ba61 (patch)
tree14b7a1c60a1824a7e75e5f17c052e3ed782babe9 /pkgs/tools/filesystems/bcachefs-tools/default.nix
parentd79e351079039b4bb36b5363f45582b6dfafec1d (diff)
downloadnixpkgs-c6c38b61a8293b2127ceda0bbf754755cd22ba61.tar
nixpkgs-c6c38b61a8293b2127ceda0bbf754755cd22ba61.tar.gz
nixpkgs-c6c38b61a8293b2127ceda0bbf754755cd22ba61.tar.bz2
nixpkgs-c6c38b61a8293b2127ceda0bbf754755cd22ba61.tar.lz
nixpkgs-c6c38b61a8293b2127ceda0bbf754755cd22ba61.tar.xz
nixpkgs-c6c38b61a8293b2127ceda0bbf754755cd22ba61.tar.zst
nixpkgs-c6c38b61a8293b2127ceda0bbf754755cd22ba61.zip
bcachefs-tools: 2018-10-12 -> 2019-01-13 (fix w/attr bump, touchups)
Diffstat (limited to 'pkgs/tools/filesystems/bcachefs-tools/default.nix')
-rw-r--r--pkgs/tools/filesystems/bcachefs-tools/default.nix14
1 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/tools/filesystems/bcachefs-tools/default.nix b/pkgs/tools/filesystems/bcachefs-tools/default.nix
index 75737e2da7f..9f81db43713 100644
--- a/pkgs/tools/filesystems/bcachefs-tools/default.nix
+++ b/pkgs/tools/filesystems/bcachefs-tools/default.nix
@@ -2,22 +2,24 @@
 , liburcu, zlib, libaio, zstd, lz4 }:
 
 stdenv.mkDerivation rec {
-  name = "bcachefs-tools-unstable-2018-10-12";
+  pname = "bcachefs-tools";
+  version = "2019-01-13";
 
   src = fetchgit {
     url = "https://evilpiepirate.org/git/bcachefs-tools.git";
-    rev = "55fbb25501330038e1714905b9ddeb25d875c11c";
-    sha256 = "0cwzbyf133jc0fkc8nmjcvv3wmglqhyxda1hh10hgxrbq5vm39wx";
+    rev = "47bd483d27ec13418978b24ec5951661d564ba35";
+    sha256 = "0h0mi68f8hxjplh0f8yw9h1ax9y6cz9c9hlvl95nqhs352lkdrfj";
   };
 
   enableParallelBuilding = true;
   nativeBuildInputs = [ pkgconfig ];
   buildInputs = [ attr libuuid libscrypt libsodium keyutils liburcu zlib libaio zstd lz4 ];
-  installFlags = [ "PREFIX=$(out)" ];
+  installFlags = [ "PREFIX=${placeholder "out"}" ];
   
   preInstall = ''
-    sed -i \
-      "s,INITRAMFS_DIR=/etc/initramfs-tools,INITRAMFS_DIR=$out/etc/initramfs-tools,g" Makefile
+    substituteInPlace Makefile \
+      --replace "INITRAMFS_DIR=/etc/initramfs-tools" \
+                "INITRAMFS_DIR=${placeholder "out"}/etc/initramfs-tools"
   '';
 
   meta = with stdenv.lib; {