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:
parent
946774a4d1
commit
af50c2cb27
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue