Merge remote-tracking branch 'origin/master' into staging-next
This commit is contained in:
commit
0546e68ef7
@ -121,15 +121,20 @@ rec {
|
|||||||
js = { bits = 32; significantByte = littleEndian; family = "js"; };
|
js = { bits = 32; significantByte = littleEndian; family = "js"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
# Determine where two CPUs are compatible with each other. That is,
|
# Determine when two CPUs are compatible with each other. That is,
|
||||||
# can we run code built for system b on system a? For that to
|
# can code built for system B run on system A? For that to happen,
|
||||||
# happen, then the set of all possible possible programs that system
|
# the programs that system B accepts must be a subset of the
|
||||||
# b accepts must be a subset of the set of all programs that system
|
# programs that system A accepts.
|
||||||
# a accepts. This compatibility relation forms a category where each
|
#
|
||||||
# CPU is an object and each arrow from a to b represents
|
# We have the following properties of the compatibility relation,
|
||||||
# compatibility. CPUs with multiple modes of Endianness are
|
# which must be preserved when adding compatibility information for
|
||||||
# isomorphic while all CPUs are endomorphic because any program
|
# additional CPUs.
|
||||||
# built for a CPU can run on that CPU.
|
# - (reflexivity)
|
||||||
|
# Every CPU is compatible with itself.
|
||||||
|
# - (transitivity)
|
||||||
|
# If A is compatible with B and B is compatible with C then A is compatible with C.
|
||||||
|
# - (compatible under multiple endianness)
|
||||||
|
# CPUs with multiple modes of endianness are pairwise compatible.
|
||||||
isCompatible = a: b: with cpuTypes; lib.any lib.id [
|
isCompatible = a: b: with cpuTypes; lib.any lib.id [
|
||||||
# x86
|
# x86
|
||||||
(b == i386 && isCompatible a i486)
|
(b == i386 && isCompatible a i486)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, pkg-config, libtool
|
{ lib, stdenv, fetchFromGitHub, pkg-config, libtool
|
||||||
, bzip2, zlib, libX11, libXext, libXt, fontconfig, freetype, ghostscript, libjpeg, djvulibre
|
, bzip2, zlib, libX11, libXext, libXt, fontconfig, freetype, ghostscript, libjpeg, djvulibre
|
||||||
, lcms2, openexr, libpng, librsvg, libtiff, libxml2, openjpeg, libwebp, fftw, libheif, libde265
|
, lcms2, openexr, libpng, librsvg, libtiff, libxml2, openjpeg, libwebp, fftw, libheif, libde265
|
||||||
, ApplicationServices
|
, ApplicationServices, Foundation
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -50,7 +50,8 @@ stdenv.mkDerivation rec {
|
|||||||
]
|
]
|
||||||
++ lib.optionals (!stdenv.hostPlatform.isMinGW)
|
++ lib.optionals (!stdenv.hostPlatform.isMinGW)
|
||||||
[ openexr librsvg openjpeg ]
|
[ openexr librsvg openjpeg ]
|
||||||
++ lib.optional stdenv.isDarwin ApplicationServices;
|
++ lib.optionals stdenv.isDarwin
|
||||||
|
[ ApplicationServices Foundation ];
|
||||||
|
|
||||||
propagatedBuildInputs =
|
propagatedBuildInputs =
|
||||||
[ bzip2 freetype libjpeg lcms2 fftw ]
|
[ bzip2 freetype libjpeg lcms2 fftw ]
|
||||||
|
@ -20,13 +20,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "kubernetes";
|
pname = "kubernetes";
|
||||||
version = "1.21.0";
|
version = "1.21.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "kubernetes";
|
owner = "kubernetes";
|
||||||
repo = "kubernetes";
|
repo = "kubernetes";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-5IUcKVbHxL5qb7M087sZSsd50t5zSaeWATnyLHkVsRU=";
|
sha256 = "sha256-gJjCw28SqU49kIiRH+MZgeYN4VBgKVEaRPr5A/2c5Pc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ removeReferencesTo makeWrapper which go rsync installShellFiles ];
|
nativeBuildInputs = [ removeReferencesTo makeWrapper which go rsync installShellFiles ];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, makeWrapper, zlib, perl, perlPackages }:
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, zlib, perl, perlPackages, openmp }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "4.8.1";
|
version = "4.8.1";
|
||||||
@ -14,8 +14,12 @@ stdenv.mkDerivation rec {
|
|||||||
propagatedBuildInputs = [ perl perlPackages.TextNSP perlPackages.PerlMagick ];
|
propagatedBuildInputs = [ perl perlPackages.TextNSP perlPackages.PerlMagick ];
|
||||||
|
|
||||||
nativeBuildInputs = [ zlib makeWrapper ];
|
nativeBuildInputs = [ zlib makeWrapper ];
|
||||||
|
buildInputs = lib.optional stdenv.cc.isClang openmp;
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=$(out)/bin" ];
|
makeFlags = [
|
||||||
|
"CC=${stdenv.cc.targetPrefix}c++" # remove once https://github.com/weizhongli/cdhit/pull/114 is merged
|
||||||
|
"PREFIX=$(out)/bin"
|
||||||
|
];
|
||||||
|
|
||||||
preInstall = "mkdir -p $out/bin";
|
preInstall = "mkdir -p $out/bin";
|
||||||
|
|
||||||
|
@ -28,5 +28,6 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = "https://tibleiz.net/copper/";
|
homepage = "https://tibleiz.net/copper/";
|
||||||
license = licenses.bsd2;
|
license = licenses.bsd2;
|
||||||
platforms = platforms.x86_64;
|
platforms = platforms.x86_64;
|
||||||
|
broken = stdenv.isDarwin;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
48
pkgs/development/interpreters/lua-5/5.4.darwin.patch
Normal file
48
pkgs/development/interpreters/lua-5/5.4.darwin.patch
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
--- a/Makefile 2021-05-14 22:39:14.407200562 +0300
|
||||||
|
+++ b/Makefile 2021-05-14 22:36:23.828513407 +0300
|
||||||
|
@@ -41,7 +41,7 @@
|
||||||
|
# What to install.
|
||||||
|
TO_BIN= lua luac
|
||||||
|
TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp
|
||||||
|
-TO_LIB= liblua.a
|
||||||
|
+TO_LIB= liblua.${version}.dylib
|
||||||
|
TO_MAN= lua.1 luac.1
|
||||||
|
|
||||||
|
# Lua version and release.
|
||||||
|
@@ -60,6 +60,8 @@
|
||||||
|
cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
|
||||||
|
cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
|
||||||
|
cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
|
||||||
|
+ ln -s -f liblua.${version}.dylib $(INSTALL_LIB)/liblua.${luaversion}.dylib
|
||||||
|
+ ln -s -f liblua.${luaversion}.dylib $(INSTALL_LIB)/liblua.dylib
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
cd src && cd $(INSTALL_BIN) && $(RM) $(TO_BIN)
|
||||||
|
--- a/src/Makefile 2021-05-14 22:35:38.575051882 +0300
|
||||||
|
+++ b/src/Makefile 2021-05-14 22:35:33.584631206 +0300
|
||||||
|
@@ -32,7 +32,7 @@
|
||||||
|
|
||||||
|
PLATS= guess aix bsd c89 freebsd generic linux linux-readline macosx mingw posix solaris
|
||||||
|
|
||||||
|
-LUA_A= liblua.a
|
||||||
|
+LUA_A= liblua.${version}.dylib
|
||||||
|
CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o
|
||||||
|
LIB_O= lauxlib.o lbaselib.o lcorolib.o ldblib.o liolib.o lmathlib.o loadlib.o loslib.o lstrlib.o ltablib.o lutf8lib.o linit.o
|
||||||
|
BASE_O= $(CORE_O) $(LIB_O) $(MYOBJS)
|
||||||
|
@@ -57,11 +57,13 @@
|
||||||
|
a: $(ALL_A)
|
||||||
|
|
||||||
|
$(LUA_A): $(BASE_O)
|
||||||
|
- $(AR) $@ $(BASE_O)
|
||||||
|
- $(RANLIB) $@
|
||||||
|
+ $(CC) -dynamiclib -install_name $(out)/lib/liblua.${version}.dylib \
|
||||||
|
+ -compatibility_version ${version} -current_version ${version} \
|
||||||
|
+ -o liblua.${version}.dylib $^
|
||||||
|
|
||||||
|
$(LUA_T): $(LUA_O) $(LUA_A)
|
||||||
|
- $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
|
||||||
|
+ $(CC) -fno-common $(MYLDFLAGS) \
|
||||||
|
+ -o $@ $(LUA_O) $(LUA_A) -L. -llua.${version} $(LIBS)
|
||||||
|
|
||||||
|
$(LUAC_T): $(LUAC_O) $(LUA_A)
|
||||||
|
$(CC) -o $@ $(LDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
|
@ -5,6 +5,12 @@ rec {
|
|||||||
lua5_4 = callPackage ./interpreter.nix {
|
lua5_4 = callPackage ./interpreter.nix {
|
||||||
sourceVersion = { major = "5"; minor = "4"; patch = "2"; };
|
sourceVersion = { major = "5"; minor = "4"; patch = "2"; };
|
||||||
hash = "0ksj5zpj74n0jkamy3di1p6l10v4gjnd2zjnb453qc6px6bhsmqi";
|
hash = "0ksj5zpj74n0jkamy3di1p6l10v4gjnd2zjnb453qc6px6bhsmqi";
|
||||||
|
|
||||||
|
patches = if stdenv.isDarwin then [ ./5.4.darwin.patch ] else [
|
||||||
|
# build lua as a shared library as well, MIT-licensed from
|
||||||
|
# https://github.com/archlinux/svntogit-packages/tree/packages/lua/trunk
|
||||||
|
./liblua.so.patch
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
lua5_4_compat = lua5_4.override({
|
lua5_4_compat = lua5_4.override({
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, fetchFromGitHub, rustPlatform, pkg-config, libusb1 }:
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, libusb1, AppKit }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "ecpdap";
|
pname = "ecpdap";
|
||||||
@ -15,7 +15,8 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
buildInputs = [ libusb1 ];
|
buildInputs = [ libusb1 ]
|
||||||
|
++ lib.optional stdenv.isDarwin AppKit;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/etc/udev/rules.d
|
mkdir -p $out/etc/udev/rules.d
|
||||||
|
@ -142,13 +142,13 @@ in
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "inspircd";
|
pname = "inspircd";
|
||||||
version = "3.9.0";
|
version = "3.10.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = pname;
|
owner = pname;
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0x3paasf4ynx4ddky2nq613vyirbhfnxzkjq148k7154pz3q426s";
|
sha256 = "1817gmxk4v7k5398d2fb6qkwadg0fd980gqmr80wdnppx450ikn7";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "bin" "lib" "man" "doc" "out" ];
|
outputs = [ "bin" "lib" "man" "doc" "out" ];
|
||||||
@ -160,6 +160,8 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = extraInputs;
|
buildInputs = extraInputs;
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
|
runHook preConfigure
|
||||||
|
|
||||||
patchShebangs configure make/*.pl
|
patchShebangs configure make/*.pl
|
||||||
|
|
||||||
# configure is executed twice, once to set the extras
|
# configure is executed twice, once to set the extras
|
||||||
@ -183,6 +185,8 @@ stdenv.mkDerivation rec {
|
|||||||
--module-dir ${placeholder "lib"}/lib/inspircd \
|
--module-dir ${placeholder "lib"}/lib/inspircd \
|
||||||
--runtime-dir /var/run \
|
--runtime-dir /var/run \
|
||||||
--script-dir ${placeholder "bin"}/share/inspircd \
|
--script-dir ${placeholder "bin"}/share/inspircd \
|
||||||
|
|
||||||
|
runHook postConfigure
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
, pkg-config
|
, pkg-config
|
||||||
, libdmtx
|
, libdmtx
|
||||||
, imagemagick
|
, imagemagick
|
||||||
|
, Foundation
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -20,7 +21,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||||
|
|
||||||
buildInputs = [ libdmtx imagemagick ];
|
buildInputs = [ libdmtx imagemagick ]
|
||||||
|
++ lib.optional stdenv.isDarwin Foundation;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Data matrix command-line utilities";
|
description = "Data matrix command-line utilities";
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
{ lib
|
{ lib
|
||||||
|
, stdenv
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, libiconv
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
@ -16,6 +18,8 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
cargoSha256 = "sha256-87aRZC4OE3UTVToHi5XDBxVqEH4oFeFR4REf69OBkIw=";
|
cargoSha256 = "sha256-87aRZC4OE3UTVToHi5XDBxVqEH4oFeFR4REf69OBkIw=";
|
||||||
|
|
||||||
|
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A high performance code minimap render";
|
description = "A high performance code minimap render";
|
||||||
homepage = "https://github.com/wfxr/code-minimap";
|
homepage = "https://github.com/wfxr/code-minimap";
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
, rustPlatform
|
, rustPlatform
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
, perl
|
, perl
|
||||||
|
, libiconv
|
||||||
, Security
|
, Security
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -21,7 +22,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
cargoSha256 = "sha256-FDiIM1LlWEFmiIvebdCsznkB7egspNKhY6xUXB838g8=";
|
cargoSha256 = "sha256-FDiIM1LlWEFmiIvebdCsznkB7egspNKhY6xUXB838g8=";
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles perl ];
|
nativeBuildInputs = [ installShellFiles perl ];
|
||||||
buildInputs = lib.optional stdenv.isDarwin Security;
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
installManPage ${pname}.1
|
installManPage ${pname}.1
|
||||||
|
@ -22805,7 +22805,8 @@ in
|
|||||||
|
|
||||||
dmrconfig = callPackage ../applications/radio/dmrconfig { };
|
dmrconfig = callPackage ../applications/radio/dmrconfig { };
|
||||||
|
|
||||||
dmtx-utils = callPackage (callPackage ../tools/graphics/dmtx-utils) {
|
dmtx-utils = callPackage ../tools/graphics/dmtx-utils {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Foundation;
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit (callPackage ../applications/virtualization/docker {})
|
inherit (callPackage ../applications/virtualization/docker {})
|
||||||
@ -22907,7 +22908,9 @@ in
|
|||||||
jdk = jdk11;
|
jdk = jdk11;
|
||||||
});
|
});
|
||||||
|
|
||||||
ecpdap = callPackage ../development/tools/ecpdap { };
|
ecpdap = callPackage ../development/tools/ecpdap {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) AppKit;
|
||||||
|
};
|
||||||
|
|
||||||
ecs-agent = callPackage ../applications/virtualization/ecs-agent { };
|
ecs-agent = callPackage ../applications/virtualization/ecs-agent { };
|
||||||
|
|
||||||
@ -24121,7 +24124,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
imagemagick6 = callPackage ../applications/graphics/ImageMagick/6.x.nix {
|
imagemagick6 = callPackage ../applications/graphics/ImageMagick/6.x.nix {
|
||||||
inherit (darwin.apple_sdk.frameworks) ApplicationServices;
|
inherit (darwin.apple_sdk.frameworks) ApplicationServices Foundation;
|
||||||
ghostscript = null;
|
ghostscript = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -28952,7 +28955,9 @@ in
|
|||||||
|
|
||||||
bppsuite = callPackage ../applications/science/biology/bppsuite { };
|
bppsuite = callPackage ../applications/science/biology/bppsuite { };
|
||||||
|
|
||||||
cd-hit = callPackage ../applications/science/biology/cd-hit { };
|
cd-hit = callPackage ../applications/science/biology/cd-hit {
|
||||||
|
inherit (llvmPackages) openmp;
|
||||||
|
};
|
||||||
|
|
||||||
cmtk = callPackage ../applications/science/biology/cmtk { };
|
cmtk = callPackage ../applications/science/biology/cmtk { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user