From 3d8f6b61885bce149e2b2482ae3710f0ca48adca Mon Sep 17 00:00:00 2001 From: Luke Clifton Date: Sat, 22 Sep 2018 22:07:34 +0800 Subject: [PATCH] abduco: refactor (compile on darwin) (#47124) --- pkgs/tools/misc/abduco/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/misc/abduco/default.nix b/pkgs/tools/misc/abduco/default.nix index cdfb57fc5f0..4fc254b76b4 100644 --- a/pkgs/tools/misc/abduco/default.nix +++ b/pkgs/tools/misc/abduco/default.nix @@ -10,9 +10,11 @@ stdenv.mkDerivation rec { license = licenses.isc; description = "Allows programs to be run independently from its controlling terminal"; maintainers = with maintainers; [ pSub ]; - platforms = platforms.linux; + platforms = platforms.unix; }; + CFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-D_DARWIN_C_SOURCE"; + src = fetchurl { url = "http://www.brain-dump.org/projects/abduco/${name}.tar.gz"; sha256 = "1x1m58ckwsprljgmdy93mvgjyg9x3cqrzdf3mysp0mx97zhhj2f9";