Unverified Commit af50c2cb authored by Cody P Schafer's avatar Cody P Schafer
Browse files

f3: fix build on darwin

 - parted is broken on darwin, but is not needed for the executables
   built on darwin anyway (f3read/f3write), so we can move it to the
   linux dep
 - argp.h is needed, include argp-standalone for it
parent 946774a4
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
{ stdenv, lib, fetchFromGitHub
, parted, systemd ? null
, parted, systemd, argp-standalone
}:

stdenv.mkDerivation rec {
@@ -22,10 +22,8 @@ stdenv.mkDerivation rec {
     done
  '';

  buildInputs = [
    parted
  ]
  ++ lib.optional stdenv.isLinux systemd;
  buildInputs = lib.optional stdenv.isLinux [ systemd parted ]
  ++ lib.optional stdenv.isDarwin [ argp-standalone ];

  enableParallelBuilding = true;