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
This commit is contained in:
Cody P Schafer
2022-10-16 20:07:31 -04:00
parent 946774a4d1
commit af50c2cb27
+3 -5
View File
@@ -1,5 +1,5 @@
{ 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;