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-03 20:41:33 -04:00
parent 946774a4d1
commit af50c2cb27
No known key found for this signature in database
GPG Key ID: 794D748B8B8BF912

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;