parent
2318223380
commit
41e0d4b68d
@ -6,26 +6,27 @@ stdenv.mkDerivation rec {
|
|||||||
version = "0.8";
|
version = "0.8";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
name = "${name}.tar.bz2";
|
||||||
url = "mirror://sourceforge/project/${pname}/${version}/${name}-src.tbz";
|
url = "mirror://sourceforge/project/${pname}/${version}/${name}-src.tbz";
|
||||||
sha256 = "14y9nflcyq486vvw0na0fkfmg5dac004qb332v4m5a0vaz8059nw";
|
sha256 = "14y9nflcyq486vvw0na0fkfmg5dac004qb332v4m5a0vaz8059nw";
|
||||||
};
|
};
|
||||||
|
|
||||||
unpackCmd = "tar -xjf $src";
|
patches = [ ./vpcs-0.8-glibc-2.26.patch ];
|
||||||
|
|
||||||
buildInputs = [ glibc.static ];
|
buildInputs = [ glibc.static ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''(
|
||||||
cd src
|
cd src
|
||||||
./mk.sh ${buildPlatform.platform.kernelArch}
|
./mk.sh ${buildPlatform.platform.kernelArch}
|
||||||
'';
|
)'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
cd ..
|
|
||||||
|
|
||||||
install -D -m555 src/vpcs $out/bin/vpcs;
|
install -D -m555 src/vpcs $out/bin/vpcs;
|
||||||
install -D -m444 man/vpcs.1 $out/share/man/man1/vpcs.1;
|
install -D -m444 man/vpcs.1 $out/share/man/man1/vpcs.1;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Virtual PC simulator";
|
description = "Virtual PC simulator";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
diff --git a/src/getopt.h b/src/getopt.h
|
||||||
|
index 4394aa2..bf59e10 100644
|
||||||
|
--- a/src/getopt.h
|
||||||
|
+++ b/src/getopt.h
|
||||||
|
@@ -49,9 +49,6 @@ extern int optind;
|
||||||
|
extern int opterr;
|
||||||
|
extern int optopt;
|
||||||
|
|
||||||
|
-#ifndef FreeBSD
|
||||||
|
-int getopt(int argc, char** argv, char* optstr);
|
||||||
|
-#endif
|
||||||
|
int arg_to_int(const char* arg, int min, int max, int defalt);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
Loading…
x
Reference in New Issue
Block a user