mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
foremost: unbreak on Darwin
Support darwin build and add jiegec as maintainer.
This commit is contained in:
parent
7b5ac19d7b
commit
a04107a0af
@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
|
||||
# ld: api.o:(.bss+0xbdba0): multiple definition of `wildcard'; main.o:(.bss+0xbd760): first defined here
|
||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
makeFlags = [ "PREFIX=$(out)" ] ++ lib.optionals stdenv.isDarwin [ "mac" ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
@ -39,6 +39,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
homepage = "http://foremost.sourceforge.net/";
|
||||
license = licenses.publicDomain;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.jiegec ];
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
}
|
||||
|
@ -1,6 +1,15 @@
|
||||
--- a/Makefile 2015-04-21 00:40:46.949266581 +0200
|
||||
+++ b/Makefile 2015-04-21 00:41:38.637165883 +0200
|
||||
@@ -24,9 +24,9 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 1a20f4f..077acdb 100755
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
-RAW_CC = gcc
|
||||
+RAW_CC := $(CC)
|
||||
RAW_FLAGS = -Wall -O2
|
||||
LINK_OPT =
|
||||
VERSION = 1.5.7
|
||||
@@ -24,9 +24,9 @@ MAN_PAGES = $(NAME).8.gz
|
||||
RAW_FLAGS += -DVERSION=\"$(VERSION)\"
|
||||
|
||||
# Where we get installed
|
||||
@ -13,7 +22,7 @@
|
||||
# Setup for compiling and cross-compiling for Windows
|
||||
# The CR_ prefix refers to cross compiling from OSX to Windows
|
||||
CR_CC = $(CR_BASE)/gcc
|
||||
@@ -120,7 +120,6 @@
|
||||
@@ -120,7 +120,6 @@ foremost: $(OBJ)
|
||||
install: goals
|
||||
install -m 755 $(NAME) $(BIN)
|
||||
install -m 444 $(MAN_PAGES) $(MAN)
|
||||
|
Loading…
Reference in New Issue
Block a user