commit
3e2fe0127b
19
pkgs/development/compilers/pakcs/case-insensitive.patch
Normal file
19
pkgs/development/compilers/pakcs/case-insensitive.patch
Normal file
@ -0,0 +1,19 @@
|
||||
--- www/Makefile.orig 2016-10-10 21:04:36.000000000 +0300
|
||||
+++ pakcs-1.14.0/www/Makefile 2016-10-10 21:07:56.000000000 +0300
|
||||
@@ -6,7 +6,7 @@ all: submitform Registry
|
||||
submitform: SubmitForm.curry $(LIBDIR)/HtmlCgi.curry \
|
||||
$(LIBDIR)/NamedSocket.curry $(LIBDIR)/CPNS.curry
|
||||
$(REPL) $(REPL_OPTS) :load SubmitForm :save :q
|
||||
- mv SubmitForm submitform
|
||||
+ mv SubmitForm submitform.orig && mv submitform.orig submitform
|
||||
|
||||
Registry: Registry.curry $(LIBDIR)/HtmlCgi.curry
|
||||
$(REPL) $(REPL_OPTS) :load Registry :save :q
|
||||
--- currytools/erd2curry/Makefile.orig 2016-10-10 21:13:49.000000000 +0300
|
||||
+++ pakcs-1.14.0/currytools/erd2curry/Makefile 2016-10-10 21:21:14.000000000 +0300
|
||||
@@ -32,4 +32,4 @@ uninstall: clean
|
||||
erd2curry: $(DEPS)
|
||||
# create saved state for top-level function "main":
|
||||
$(REPL) $(REPL_OPTS) :load ERD2Curry :save "main \"$(CURDIR)\"" :q
|
||||
- mv ERD2Curry $@
|
||||
+ mv ERD2Curry $@.orig && mv $@.orig $@
|
@ -82,7 +82,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ swiPrologLocked makeWrapper glibcLocales rlwrap tk which ];
|
||||
|
||||
patches = [ ./adjust-buildsystem.patch ];
|
||||
patches = [
|
||||
./adjust-buildsystem.patch
|
||||
./case-insensitive.patch
|
||||
];
|
||||
|
||||
configurePhase = ''
|
||||
# Phony HOME.
|
||||
@ -151,6 +154,6 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
maintainers = [ stdenv.lib.maintainers.gnidorah ];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchurl, gmp, readline, openssl, libjpeg, unixODBC, zlib
|
||||
, libXinerama, libXft, libXpm, libSM, libXt, freetype, pkgconfig
|
||||
, fontconfig
|
||||
, fontconfig, makeWrapper ? stdenv.isDarwin
|
||||
}:
|
||||
|
||||
let
|
||||
@ -15,7 +15,8 @@ stdenv.mkDerivation {
|
||||
};
|
||||
|
||||
buildInputs = [ gmp readline openssl libjpeg unixODBC libXinerama
|
||||
libXft libXpm libSM libXt zlib freetype pkgconfig fontconfig ];
|
||||
libXft libXpm libSM libXt zlib freetype pkgconfig fontconfig ]
|
||||
++ stdenv.lib.optional stdenv.isDarwin makeWrapper;
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
@ -23,12 +24,24 @@ stdenv.mkDerivation {
|
||||
|
||||
buildFlags = "world";
|
||||
|
||||
# For macOS: still not fixed in upstream: "abort trap 6" when called
|
||||
# through symlink, so wrap binary.
|
||||
# We reinvent wrapProgram here but omit argv0 pass in order to not
|
||||
# break PAKCS package build. This is also safe for SWI-Prolog, since
|
||||
# there is no wrapping environment and hence no need to spoof $0
|
||||
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
local prog="$out/bin/swipl"
|
||||
local hidden="$(dirname "$prog")/.$(basename "$prog")"-wrapped
|
||||
mv $prog $hidden
|
||||
makeWrapper $hidden $prog
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://www.swi-prolog.org/;
|
||||
description = "A Prolog compiler and interpreter";
|
||||
license = "LGPL";
|
||||
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
maintainers = [ stdenv.lib.maintainers.peti ];
|
||||
};
|
||||
}
|
||||
|
@ -15,6 +15,6 @@ stdenv.mkDerivation rec {
|
||||
description = "ODBC driver manager for Unix";
|
||||
homepage = http://www.unixodbc.org/;
|
||||
license = licenses.lgpl2;
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
@ -5287,7 +5287,10 @@ in
|
||||
erlangR16 = callPackage ../development/interpreters/erlang/R16.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
|
||||
};
|
||||
erlangR16_odbc = callPackage ../development/interpreters/erlang/R16.nix { odbcSupport = true; };
|
||||
erlangR16_odbc = callPackage ../development/interpreters/erlang/R16.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
|
||||
odbcSupport = true;
|
||||
};
|
||||
erlangR17 = callPackage ../development/interpreters/erlang/R17.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user