From 2522f58b0ec9029622bcecafbdb0bf8de2ecd9a6 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Mon, 22 Apr 2019 23:02:49 -0400 Subject: [PATCH] e2fsprogs: check if e2scrub_all_cron exists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit doesn’t exist on macos --- pkgs/tools/filesystems/e2fsprogs/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/filesystems/e2fsprogs/default.nix b/pkgs/tools/filesystems/e2fsprogs/default.nix index e601a12e6e6f..11f107e994f9 100644 --- a/pkgs/tools/filesystems/e2fsprogs/default.nix +++ b/pkgs/tools/filesystems/e2fsprogs/default.nix @@ -39,7 +39,9 @@ stdenv.mkDerivation rec { postInstall = '' # avoid cycle between outputs - mv $out/lib/${pname}/e2scrub_all_cron $bin/bin/ + if [ -f $out/lib/${pname}/e2scrub_all_cron ]; then + mv $out/lib/${pname}/e2scrub_all_cron $bin/bin/ + fi ''; enableParallelBuilding = true;