git.iko.soy/typeable/nixpkgs
on master help sign in
pmccabe: darwin is supported too
commitca0493ff63c6b0e53aa1e99d487e779ac5bdc4d6 authorPeter Hoeg <peter@hoeg.com> dateThu 6 Apr 2017, 10:05 (10 years ago) parentb0d07aa
2 files changed+20−1
pkgs/development/tools/misc/pmccabe/default.nix+5−1 pkgs/development/tools/misc/pmccabe/getopt_on_darwin.patch+15
pkgs/development/tools/misc/pmccabe/default.nix+5−1
@@ -9,6 +9,10 @@ stdenv.mkDerivation rec {
99 sha256 = "0a3h1b9fb87c82d5fbql5lc4gp338pa5s9i66dhw7zk8jdygx474";
1010 };
1111
12+ patches = [
13+ ./getopt_on_darwin.patch
14+ ];
15+
1216 configurePhase = ''
1317 sed -i -r Makefile \
1418 -e 's,/usr/,/,g' \
@@ -38,7 +42,7 @@ stdenv.mkDerivation rec {
3842 trees or files; and vifn, to invoke vi given a function name rather
3943 than a file name.
4044 '';
41− platforms = platforms.linux;
4245 maintainers = with maintainers; [ peterhoeg ];
46+ platforms = platforms.unix;
4347 };
4448}
pkgs/development/tools/misc/pmccabe/getopt_on_darwin.patchnew file+15
@@ -0,0 +1,15 @@
1+diff --git a/decomment.c b/decomment.c
2+index 400707a..aea29fd 100644
3+--- a/decomment.c
4++++ b/decomment.c
5+@@ -11,6 +11,10 @@
6+ #include "getopt.h"
7+ #endif
8+
9++#ifdef __APPLE__
10++#include "getopt.h"
11++#endif
12++
13+ #ifdef NEED_OPTIND
14+ extern int optind;
15+ #endif