pmccabe: darwin is supported too
This commit is contained in:
parent
b0d07aa894
commit
ca0493ff63
@ -9,6 +9,10 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0a3h1b9fb87c82d5fbql5lc4gp338pa5s9i66dhw7zk8jdygx474";
|
sha256 = "0a3h1b9fb87c82d5fbql5lc4gp338pa5s9i66dhw7zk8jdygx474";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./getopt_on_darwin.patch
|
||||||
|
];
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
sed -i -r Makefile \
|
sed -i -r Makefile \
|
||||||
-e 's,/usr/,/,g' \
|
-e 's,/usr/,/,g' \
|
||||||
@ -38,7 +42,7 @@ stdenv.mkDerivation rec {
|
|||||||
trees or files; and vifn, to invoke vi given a function name rather
|
trees or files; and vifn, to invoke vi given a function name rather
|
||||||
than a file name.
|
than a file name.
|
||||||
'';
|
'';
|
||||||
platforms = platforms.linux;
|
|
||||||
maintainers = with maintainers; [ peterhoeg ];
|
maintainers = with maintainers; [ peterhoeg ];
|
||||||
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
15
pkgs/development/tools/misc/pmccabe/getopt_on_darwin.patch
Normal file
15
pkgs/development/tools/misc/pmccabe/getopt_on_darwin.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
diff --git a/decomment.c b/decomment.c
|
||||||
|
index 400707a..aea29fd 100644
|
||||||
|
--- a/decomment.c
|
||||||
|
+++ b/decomment.c
|
||||||
|
@@ -11,6 +11,10 @@
|
||||||
|
#include "getopt.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#ifdef __APPLE__
|
||||||
|
+#include "getopt.h"
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#ifdef NEED_OPTIND
|
||||||
|
extern int optind;
|
||||||
|
#endif
|
Loading…
x
Reference in New Issue
Block a user