Merge master into staging-next
This commit is contained in:
@@ -17,7 +17,7 @@ pythonPackages.buildPythonApplication rec {
|
||||
sha256 = "15461174037d87af93dd59a236d4275c5abf71cea0670ffff24a7d0399a8a2e4";
|
||||
};
|
||||
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
env.LC_ALL = "en_US.UTF-8";
|
||||
buildInputs = [ glibcLocales ];
|
||||
|
||||
build-system = [ pythonPackages.setuptools ];
|
||||
|
||||
@@ -116,12 +116,18 @@ stdenv.mkDerivation rec {
|
||||
"-DCMAKE_OSX_DEPLOYMENT_TARGET=${stdenv.hostPlatform.darwinMinVersion}"
|
||||
];
|
||||
|
||||
CMAKE_CXX_FLAGS = toString [
|
||||
"-std=c++11"
|
||||
"-Wno-deprecated-declarations"
|
||||
"-Wno-unused-result"
|
||||
];
|
||||
env.CXXFLAGS = "-include cstdint"; # needed at least with gcc13 on aarch64-linux
|
||||
env = {
|
||||
CMAKE_CXX_FLAGS = toString [
|
||||
"-std=c++11"
|
||||
"-Wno-deprecated-declarations"
|
||||
"-Wno-unused-result"
|
||||
];
|
||||
# needed at least with gcc13 on aarch64-linux
|
||||
CXXFLAGS = toString [
|
||||
"-include"
|
||||
"cstdint"
|
||||
];
|
||||
};
|
||||
|
||||
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
mkdir -p $out/Applications/RawTherapee.app $out/bin
|
||||
|
||||
@@ -106,7 +106,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
doCheck = true;
|
||||
|
||||
LC_ALL = "en_US.utf8";
|
||||
env.LC_ALL = "en_US.utf8";
|
||||
|
||||
meta = {
|
||||
homepage = "https://profanity-im.github.io";
|
||||
|
||||
@@ -42,140 +42,139 @@ let
|
||||
sha256,
|
||||
extraPatches ? [ ],
|
||||
}:
|
||||
stdenv.mkDerivation (
|
||||
rec {
|
||||
inherit version;
|
||||
pname = "subversion${lib.optionalString (!bdbSupport && perlBindings && pythonBindings) "-client"}";
|
||||
stdenv.mkDerivation rec {
|
||||
inherit version;
|
||||
pname = "subversion${lib.optionalString (!bdbSupport && perlBindings && pythonBindings) "-client"}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://apache/subversion/subversion-${version}.tar.bz2";
|
||||
inherit sha256;
|
||||
};
|
||||
src = fetchurl {
|
||||
url = "mirror://apache/subversion/subversion-${version}.tar.bz2";
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
# Can't do separate $lib and $bin, as libs reference bins
|
||||
outputs = [
|
||||
"out"
|
||||
"dev"
|
||||
"man"
|
||||
];
|
||||
# Can't do separate $lib and $bin, as libs reference bins
|
||||
outputs = [
|
||||
"out"
|
||||
"dev"
|
||||
"man"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoconf
|
||||
libtool
|
||||
python3
|
||||
];
|
||||
nativeBuildInputs = [
|
||||
autoconf
|
||||
libtool
|
||||
python3
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
zlib
|
||||
apr
|
||||
aprutil
|
||||
sqlite
|
||||
openssl
|
||||
lz4
|
||||
utf8proc
|
||||
]
|
||||
++ lib.optional httpSupport serf
|
||||
++ lib.optionals pythonBindings [
|
||||
python3
|
||||
py3c
|
||||
]
|
||||
++ lib.optional perlBindings perl
|
||||
++ lib.optional saslSupport sasl;
|
||||
buildInputs = [
|
||||
zlib
|
||||
apr
|
||||
aprutil
|
||||
sqlite
|
||||
openssl
|
||||
lz4
|
||||
utf8proc
|
||||
]
|
||||
++ lib.optional httpSupport serf
|
||||
++ lib.optionals pythonBindings [
|
||||
python3
|
||||
py3c
|
||||
]
|
||||
++ lib.optional perlBindings perl
|
||||
++ lib.optional saslSupport sasl;
|
||||
|
||||
patches = [ ./apr-1.patch ] ++ extraPatches;
|
||||
patches = [ ./apr-1.patch ] ++ extraPatches;
|
||||
|
||||
# remove vendored swig-3 files as these will shadow the swig provided
|
||||
# ones and result in compile errors
|
||||
postPatch = ''
|
||||
rm subversion/bindings/swig/proxy/{perlrun.swg,pyrun.swg,python.swg,rubydef.swg,rubyhead.swg,rubytracking.swg,runtime.swg,swigrun.swg}
|
||||
'';
|
||||
# remove vendored swig-3 files as these will shadow the swig provided
|
||||
# ones and result in compile errors
|
||||
postPatch = ''
|
||||
rm subversion/bindings/swig/proxy/{perlrun.swg,pyrun.swg,python.swg,rubydef.swg,rubyhead.swg,rubytracking.swg,runtime.swg,swigrun.swg}
|
||||
'';
|
||||
|
||||
env = {
|
||||
# We are hitting the following issue even with APR 1.6.x
|
||||
# -> https://issues.apache.org/jira/browse/SVN-4813
|
||||
# "-P" CPPFLAG is needed to build Python bindings and subversionClient
|
||||
CPPFLAGS = [ "-P" ];
|
||||
|
||||
preConfigure = ''
|
||||
./autogen.sh
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
(lib.withFeature bdbSupport "berkeley-db")
|
||||
(lib.withFeatureAs httpServer "apxs" "${apacheHttpd.dev}/bin/apxs")
|
||||
(lib.withFeatureAs (pythonBindings || perlBindings) "swig" swig)
|
||||
(lib.withFeatureAs saslSupport "sasl" sasl)
|
||||
(lib.withFeatureAs httpSupport "serf" serf)
|
||||
"--with-zlib=${zlib.dev}"
|
||||
"--with-sqlite=${sqlite.dev}"
|
||||
"--with-apr=${apr.dev}"
|
||||
"--with-apr-util=${aprutil.dev}"
|
||||
]
|
||||
++ lib.optionals javahlBindings [
|
||||
"--enable-javahl"
|
||||
"--with-jdk=${jdk}"
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
makeFlagsArray=(APACHE_LIBEXECDIR=$out/modules)
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
if test -n "$pythonBindings"; then
|
||||
make swig-py swig_pydir=$(toPythonPath $out)/libsvn swig_pydir_extra=$(toPythonPath $out)/svn
|
||||
make install-swig-py swig_pydir=$(toPythonPath $out)/libsvn swig_pydir_extra=$(toPythonPath $out)/svn
|
||||
fi
|
||||
|
||||
if test -n "$perlBindings"; then
|
||||
make swig-pl-lib
|
||||
make install-swig-pl-lib
|
||||
cd subversion/bindings/swig/perl/native
|
||||
perl Makefile.PL PREFIX=$out
|
||||
make install
|
||||
cd -
|
||||
fi
|
||||
|
||||
mkdir -p $out/share/bash-completion/completions
|
||||
cp tools/client-side/bash_completion $out/share/bash-completion/completions/subversion
|
||||
|
||||
for f in $out/lib/*.la $out/lib/python*/site-packages/*/*.la; do
|
||||
substituteInPlace $f \
|
||||
--replace "${expat.dev}/lib" "${expat.out}/lib" \
|
||||
--replace "${zlib.dev}/lib" "${zlib.out}/lib" \
|
||||
--replace "${sqlite.dev}/lib" "${sqlite.out}/lib" \
|
||||
--replace "${openssl.dev}/lib" "${lib.getLib openssl}/lib"
|
||||
done
|
||||
'';
|
||||
|
||||
inherit perlBindings pythonBindings;
|
||||
|
||||
enableParallelBuilding = true;
|
||||
# Missing install dependencies:
|
||||
# libtool: error: error: relink 'libsvn_ra_serf-1.la' with the above command before installing it
|
||||
# make: *** [build-outputs.mk:1316: install-serf-lib] Error 1
|
||||
enableParallelInstalling = false;
|
||||
|
||||
nativeCheckInputs = [ python3 ];
|
||||
doCheck = false; # fails 10 out of ~2300 tests
|
||||
|
||||
passthru.tests = { inherit (nixosTests) svnserve; };
|
||||
|
||||
meta = {
|
||||
description = "Version control system intended to be a compelling replacement for CVS in the open source community";
|
||||
license = lib.licenses.asl20;
|
||||
homepage = "https://subversion.apache.org/";
|
||||
mainProgram = "svn";
|
||||
maintainers = with lib.maintainers; [ lovek323 ];
|
||||
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
||||
};
|
||||
|
||||
CPPFLAGS = toString [ "-P" ];
|
||||
}
|
||||
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
|
||||
CXX = "clang++";
|
||||
CC = "clang";
|
||||
CPP = "clang -E";
|
||||
CXXCPP = "clang++ -E";
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
./autogen.sh
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
(lib.withFeature bdbSupport "berkeley-db")
|
||||
(lib.withFeatureAs httpServer "apxs" "${apacheHttpd.dev}/bin/apxs")
|
||||
(lib.withFeatureAs (pythonBindings || perlBindings) "swig" swig)
|
||||
(lib.withFeatureAs saslSupport "sasl" sasl)
|
||||
(lib.withFeatureAs httpSupport "serf" serf)
|
||||
"--with-zlib=${zlib.dev}"
|
||||
"--with-sqlite=${sqlite.dev}"
|
||||
"--with-apr=${apr.dev}"
|
||||
"--with-apr-util=${aprutil.dev}"
|
||||
]
|
||||
++ lib.optionals javahlBindings [
|
||||
"--enable-javahl"
|
||||
"--with-jdk=${jdk}"
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
makeFlagsArray=(APACHE_LIBEXECDIR=$out/modules)
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
if test -n "$pythonBindings"; then
|
||||
make swig-py swig_pydir=$(toPythonPath $out)/libsvn swig_pydir_extra=$(toPythonPath $out)/svn
|
||||
make install-swig-py swig_pydir=$(toPythonPath $out)/libsvn swig_pydir_extra=$(toPythonPath $out)/svn
|
||||
fi
|
||||
|
||||
if test -n "$perlBindings"; then
|
||||
make swig-pl-lib
|
||||
make install-swig-pl-lib
|
||||
cd subversion/bindings/swig/perl/native
|
||||
perl Makefile.PL PREFIX=$out
|
||||
make install
|
||||
cd -
|
||||
fi
|
||||
|
||||
mkdir -p $out/share/bash-completion/completions
|
||||
cp tools/client-side/bash_completion $out/share/bash-completion/completions/subversion
|
||||
|
||||
for f in $out/lib/*.la $out/lib/python*/site-packages/*/*.la; do
|
||||
substituteInPlace $f \
|
||||
--replace "${expat.dev}/lib" "${expat.out}/lib" \
|
||||
--replace "${zlib.dev}/lib" "${zlib.out}/lib" \
|
||||
--replace "${sqlite.dev}/lib" "${sqlite.out}/lib" \
|
||||
--replace "${openssl.dev}/lib" "${lib.getLib openssl}/lib"
|
||||
done
|
||||
'';
|
||||
|
||||
inherit perlBindings pythonBindings;
|
||||
|
||||
enableParallelBuilding = true;
|
||||
# Missing install dependencies:
|
||||
# libtool: error: error: relink 'libsvn_ra_serf-1.la' with the above command before installing it
|
||||
# make: *** [build-outputs.mk:1316: install-serf-lib] Error 1
|
||||
enableParallelInstalling = false;
|
||||
|
||||
nativeCheckInputs = [ python3 ];
|
||||
doCheck = false; # fails 10 out of ~2300 tests
|
||||
|
||||
passthru.tests = { inherit (nixosTests) svnserve; };
|
||||
|
||||
meta = {
|
||||
description = "Version control system intended to be a compelling replacement for CVS in the open source community";
|
||||
license = lib.licenses.asl20;
|
||||
homepage = "https://subversion.apache.org/";
|
||||
mainProgram = "svn";
|
||||
maintainers = with lib.maintainers; [ lovek323 ];
|
||||
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
||||
};
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
|
||||
@@ -6,16 +6,16 @@
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "adrs";
|
||||
version = "0.6.2";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "joshrotenberg";
|
||||
repo = "adrs";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-dHiXnLARzviShnih1gkMehMpsztaofFXToDStd3GWkY=";
|
||||
hash = "sha256-D1Tg5ep9ri6fj0fLmKqQeMdlAe/Nc38wKTF5dsWxK3k=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-RThX4n4qn/0cPm8GZLnzbNt5VrMWf0wMXz0G9Im9CHk=";
|
||||
cargoHash = "sha256-jrKDOLPps/ExGnREQy1yz8Say1bAcvJXHrkLivux4Vg=";
|
||||
|
||||
meta = {
|
||||
description = "Command-line tool for managing Architectural Decision Records";
|
||||
|
||||
@@ -144,7 +144,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
useBwrap = false;
|
||||
};
|
||||
|
||||
env.JAVA_HOME = jetbrains.jdk;
|
||||
env = {
|
||||
JAVA_HOME = jetbrains.jdk;
|
||||
ANDROID_SDK_HOME = "$(pwd)";
|
||||
};
|
||||
|
||||
gradleFlags = [
|
||||
"-Dorg.gradle.java.home=${jetbrains.jdk}"
|
||||
@@ -257,8 +260,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
ln -sf ${libvlc}/lib $out/lib/app/resources/
|
||||
'';
|
||||
|
||||
ANDROID_SDK_HOME = "$(pwd)";
|
||||
|
||||
passthru.updateScript = writeShellScript "update-animeko" ''
|
||||
${lib.getExe nix-update} animeko
|
||||
$(nix-build -A animeko.mitmCache.updateScript)
|
||||
|
||||
@@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
# Fontconfig error: Cannot load default config file: No such file: (null)
|
||||
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
|
||||
env.FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
|
||||
|
||||
mesonFlags = [
|
||||
# "-Dthemes=cinnamon,gnome-shell,gtk2,gtk3,plank,xfwm,metacity"
|
||||
|
||||
@@ -216,7 +216,7 @@ stdenv.mkDerivation (
|
||||
}"
|
||||
'';
|
||||
|
||||
LINKFLAGS = "-lpthread";
|
||||
env.LINKFLAGS = "-lpthread";
|
||||
|
||||
meta = {
|
||||
description = "Multi-track hard disk recording software";
|
||||
|
||||
@@ -105,12 +105,18 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"-DCTL_INCLUDE_DIR=${color-transformation-language}/include/CTL"
|
||||
];
|
||||
|
||||
CMAKE_CXX_FLAGS = toString [
|
||||
"-std=c++11"
|
||||
"-Wno-deprecated-declarations"
|
||||
"-Wno-unused-result"
|
||||
];
|
||||
env.CXXFLAGS = "-include cstdint"; # needed at least with gcc13 on aarch64-linux
|
||||
env = {
|
||||
CMAKE_CXX_FLAGS = toString [
|
||||
"-std=c++11"
|
||||
"-Wno-deprecated-declarations"
|
||||
"-Wno-unused-result"
|
||||
];
|
||||
# needed at least with gcc13 on aarch64-linux
|
||||
CXXFLAGS = toString [
|
||||
"-include"
|
||||
"cstdint"
|
||||
];
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Raw converter based on RawTherapee";
|
||||
|
||||
@@ -26,10 +26,12 @@ buildGoModule (finalAttrs: {
|
||||
proxyVendor = true;
|
||||
vendorHash = "sha256-0+YwlCHjiU46y333RSuaha4pLKFTYlj+M9+TFAALamY=";
|
||||
|
||||
# Fix error: 'Caught SIGILL in blst_cgo_init'
|
||||
# https://github.com/bnb-chain/bsc/issues/1521
|
||||
CGO_CFLAGS = "-O -D__BLST_PORTABLE__";
|
||||
CGO_CFLAGS_ALLOW = "-O -D__BLST_PORTABLE__";
|
||||
env = {
|
||||
# Fix error: 'Caught SIGILL in blst_cgo_init'
|
||||
# https://github.com/bnb-chain/bsc/issues/1521
|
||||
CGO_CFLAGS = "-O -D__BLST_PORTABLE__";
|
||||
CGO_CFLAGS_ALLOW = "-O -D__BLST_PORTABLE__";
|
||||
};
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
|
||||
@@ -17,7 +17,7 @@ python3Packages.buildPythonApplication (finalAttrs: {
|
||||
hash = "sha256-lm9YANYckyHDoNbB1wytBm55iyBmUuxFPmZupfpReqc=";
|
||||
};
|
||||
|
||||
AWSUME_SKIP_ALIAS_SETUP = 1;
|
||||
env.AWSUME_SKIP_ALIAS_SETUP = 1;
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ libxcrypt ];
|
||||
|
||||
CFLAGS = "-std=gnu89";
|
||||
env.CFLAGS = "-std=gnu89";
|
||||
|
||||
preConfigure = ''
|
||||
sed -re 's/-[og] 0//g' -i Makefile*
|
||||
|
||||
@@ -49,7 +49,7 @@ buildGoModule rec {
|
||||
"-X github.com/trezor/blockbook/common.buildDate=unknown"
|
||||
];
|
||||
|
||||
CGO_LDFLAGS = [
|
||||
env.CGO_LDFLAGS = toString [
|
||||
"-L${lib.getLib stdenv.cc.cc}/lib"
|
||||
"-lrocksdb"
|
||||
"-lz"
|
||||
|
||||
@@ -166,7 +166,7 @@ stdenv.mkDerivation rec {
|
||||
"CONF_MODPATH_NVIDIA=${nvidia_x11.bin}/lib/xorg/modules"
|
||||
];
|
||||
|
||||
CFLAGS = [
|
||||
env.CFLAGS = toString [
|
||||
"-DX_MODULE_APPENDS=\\\"${xmodules}\\\""
|
||||
];
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ stdenv.mkDerivation {
|
||||
# Fix for 'ppdc: Unable to find include file "<font.defs>"', which blocks '*.ppd' generation.
|
||||
# Issue occurs in hermetic sandbox; this workaround is the current solution.
|
||||
# Source: https://github.com/NixOS/nixpkgs/blob/9997402000a82eda4327fde36291234118c7515e/pkgs/misc/drivers/hplip/default.nix#L160
|
||||
CUPS_DATADIR = "${cups}/share/cups";
|
||||
env.CUPS_DATADIR = "${cups}/share/cups";
|
||||
|
||||
configurePhase = ''
|
||||
runHook preConfigure
|
||||
|
||||
@@ -34,7 +34,7 @@ stdenvNoCC.mkDerivation rec {
|
||||
'';
|
||||
|
||||
# Complains about not being able to find the fontconfig config file otherwise
|
||||
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
|
||||
env.FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
|
||||
|
||||
buildInputs = [
|
||||
inkscape
|
||||
|
||||
@@ -10,11 +10,11 @@
|
||||
}:
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "copilot-language-server";
|
||||
version = "1.429.0";
|
||||
version = "1.430.0";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/github/copilot-language-server-release/releases/download/${finalAttrs.version}/copilot-language-server-js-${finalAttrs.version}.zip";
|
||||
hash = "sha256-msqySCQxAySQTEAToUF/JV+IH4B/NKxymCouofEt9Ic=";
|
||||
hash = "sha256-b2NMh+9JcPrMu0JHL2vdWOJhUA+PoCmj7M21rS9MS3o=";
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ buildGoModule (finalAttrs: {
|
||||
|
||||
buildInputs = [ systemdLibs ];
|
||||
|
||||
CGO_CFLAGS = "-I ${systemdLibs}/include";
|
||||
env.CGO_CFLAGS = "-I ${systemdLibs}/include";
|
||||
|
||||
ldflags = [
|
||||
"-extldflags='-Wl,-z,lazy'"
|
||||
|
||||
@@ -22,7 +22,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
cmake
|
||||
pkg-config
|
||||
];
|
||||
CFLAGS = "-D_GLIBCXX_USE_NANOSLEEP";
|
||||
env.CFLAGS = "-D_GLIBCXX_USE_NANOSLEEP";
|
||||
patches = [
|
||||
./01-fix-sleep_for.patch
|
||||
];
|
||||
|
||||
@@ -56,8 +56,10 @@ rustPlatform.buildRustPackage {
|
||||
patchShebangs third_party/minijail/tools/*.py
|
||||
'';
|
||||
|
||||
CROSVM_USE_SYSTEM_MINIGBM = true;
|
||||
CROSVM_USE_SYSTEM_VIRGLRENDERER = true;
|
||||
env = {
|
||||
CROSVM_USE_SYSTEM_MINIGBM = true;
|
||||
CROSVM_USE_SYSTEM_VIRGLRENDERER = true;
|
||||
};
|
||||
|
||||
buildFeatures = [ "virgl_renderer" ];
|
||||
|
||||
|
||||
@@ -39,7 +39,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
zlib
|
||||
];
|
||||
|
||||
CFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-D__off_t=off_t";
|
||||
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
|
||||
CFLAGS = "-D__off_t=off_t";
|
||||
};
|
||||
|
||||
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
# Fix the build on macOS with macFUSE installed. Needs autoreconfHook for
|
||||
|
||||
@@ -27,7 +27,7 @@ stdenv.mkDerivation {
|
||||
--replace "RXPATH=/usr/bin/ssh" "RXPATH=ssh"
|
||||
'';
|
||||
|
||||
CFLAGS = "-D_DARWIN_C_SOURCE";
|
||||
env.CFLAGS = "-D_DARWIN_C_SOURCE";
|
||||
makeFlags = [ "DESTDIR=$(out)" ];
|
||||
buildInputs = [
|
||||
libx11
|
||||
|
||||
@@ -60,7 +60,7 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
|
||||
"--fast"
|
||||
];
|
||||
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
env.LC_ALL = "en_US.UTF-8";
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ buildGoModule (finalAttrs: {
|
||||
vendorHash = "sha256-SAIGFQGACTB3Q0KnIdiKKNYY6fVjf/09wGqNr0Hkg+M=";
|
||||
|
||||
# we have no bash at the moment for windows
|
||||
BASH_PATH = lib.optionalString (!stdenv.hostPlatform.isWindows) "${bash}/bin/bash";
|
||||
env.BASH_PATH = lib.optionalString (!stdenv.hostPlatform.isWindows) "${bash}/bin/bash";
|
||||
|
||||
# replace the build phase to use the GNUMakefile instead
|
||||
buildPhase = ''
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
diff --git a/test-dnsdisttcp_cc.cc b/test-dnsdisttcp_cc.cc
|
||||
index 1fbb00e..dc04137 100644
|
||||
--- a/test-dnsdisttcp_cc.cc
|
||||
+++ b/test-dnsdisttcp_cc.cc
|
||||
@@ -848,6 +848,7 @@ BOOST_AUTO_TEST_CASE(test_IncomingConnectionWithProxyProtocol_SelfAnswered)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(test_IncomingConnection_BackendNoOOOR)
|
||||
{
|
||||
+ return;
|
||||
auto local = getBackendAddress("1", 80);
|
||||
ClientState localCS(local, true, false, false, "", {});
|
||||
auto tlsCtx = std::make_shared<MockupTLSCtx>();
|
||||
@@ -1711,6 +1712,7 @@ BOOST_AUTO_TEST_CASE(test_IncomingConnection_BackendNoOOOR)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(test_IncomingConnectionOOOR_BackendOOOR)
|
||||
{
|
||||
+ return;
|
||||
auto local = getBackendAddress("1", 80);
|
||||
ClientState localCS(local, true, false, false, "", {});
|
||||
/* enable out-of-order on the front side */
|
||||
@@ -3677,6 +3679,7 @@ BOOST_AUTO_TEST_CASE(test_IncomingConnectionOOOR_BackendOOOR)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(test_IncomingConnectionOOOR_BackendNotOOOR)
|
||||
{
|
||||
+ return;
|
||||
auto local = getBackendAddress("1", 80);
|
||||
ClientState localCS(local, true, false, false, "", {});
|
||||
/* enable out-of-order on the front side */
|
||||
@@ -1,62 +1,86 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
systemd,
|
||||
boost,
|
||||
libsodium,
|
||||
libedit,
|
||||
re2,
|
||||
net-snmp,
|
||||
lua,
|
||||
protobuf,
|
||||
openssl,
|
||||
zlib,
|
||||
cargo,
|
||||
fetchpatch,
|
||||
fetchurl,
|
||||
fstrm,
|
||||
h2o,
|
||||
lib,
|
||||
libbpf,
|
||||
libcap,
|
||||
libedit,
|
||||
libsodium,
|
||||
lua,
|
||||
net-snmp,
|
||||
nghttp2,
|
||||
nixosTests,
|
||||
openssl,
|
||||
pkg-config,
|
||||
protobuf,
|
||||
python3,
|
||||
re2,
|
||||
rustPlatform,
|
||||
stdenv,
|
||||
systemd,
|
||||
xdp-tools,
|
||||
zlib,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "dnsdist";
|
||||
version = "1.9.10";
|
||||
version = "2.0.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://downloads.powerdns.com/releases/dnsdist-${finalAttrs.version}.tar.bz2";
|
||||
hash = "sha256-An3b3uaVxaWXKAV7/EHFsaaR+hx6XokniwnzVTJfvtY=";
|
||||
url = "https://downloads.powerdns.com/releases/dnsdist-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-M3Trplpco8+5/Fl5HEflA1FJ/lIcy7ztX4NKF/RWQb8=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Disable tests requiring networking:
|
||||
# "Error connecting to new server with address 192.0.2.1:53: connecting socket to 192.0.2.1:53: Network is unreachable"
|
||||
./disable-network-tests.patch
|
||||
# Fix build error when only protobuf is enabled
|
||||
(fetchpatch {
|
||||
url = "https://github.com/PowerDNS/pdns/commit/daece82818d7f83b26dcf724ec1864644bc3f854.patch";
|
||||
hash = "sha256-Ag65Gjmm2m4yvRfqMjSo1EEJg/2EHWDBg15vSL5DKCU=";
|
||||
stripLen = 2;
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cargo
|
||||
pkg-config
|
||||
protobuf
|
||||
python3
|
||||
python3.pkgs.pyyaml
|
||||
rustPlatform.cargoSetupHook
|
||||
];
|
||||
buildInputs = [
|
||||
systemd
|
||||
boost
|
||||
libsodium
|
||||
libedit
|
||||
re2
|
||||
net-snmp
|
||||
lua
|
||||
openssl
|
||||
zlib
|
||||
fstrm # Required for DNSTAP
|
||||
h2o
|
||||
libbpf
|
||||
libcap
|
||||
libedit
|
||||
libsodium
|
||||
lua
|
||||
net-snmp
|
||||
nghttp2
|
||||
openssl
|
||||
re2
|
||||
systemd
|
||||
xdp-tools # AF_XDP support
|
||||
zlib
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--with-libsodium"
|
||||
"--with-re2"
|
||||
"--enable-dnscrypt"
|
||||
"--enable-dnstap"
|
||||
"--enable-dns-over-tls"
|
||||
"--enable-dns-over-https"
|
||||
"--enable-yaml"
|
||||
"--with-ebpf"
|
||||
"--with-xsk"
|
||||
"--with-libcap"
|
||||
"--with-protobuf=yes"
|
||||
"--with-net-snmp"
|
||||
"--disable-dependency-tracking"
|
||||
@@ -65,6 +89,13 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"--with-boost=${boost.dev}"
|
||||
];
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
inherit (finalAttrs) cargoRoot src;
|
||||
hash = "sha256-nDAvgM3xb+95dcGIHiSKlFo4/0Rs5Evf1vvR5vF4MXs=";
|
||||
};
|
||||
|
||||
cargoRoot = "dnsdist-rust-lib/rust";
|
||||
|
||||
doCheck = true;
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
@@ -14,13 +14,13 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "droidcam";
|
||||
version = "2.1.4";
|
||||
version = "2.1.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aramg";
|
||||
repo = "droidcam";
|
||||
rev = "v${finalAttrs.version}";
|
||||
sha256 = "sha256-z/SteW3jYR/VR+HffvTetdGs5oz4qWBNkaqLYiP1V8c=";
|
||||
sha256 = "sha256-22lRmtXumjR/83Fg1edBisM1GjNZvNUvPs1Yg7Na1xw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -27,7 +27,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
sha256 = "sha256-DR98pxHPwzbcioXmcsq5z9giOgL+LaCkp661jJ4RNjQ=";
|
||||
};
|
||||
|
||||
CFLAGS = lib.pipe (lib.attrNames dflags) [
|
||||
env.CFLAGS = lib.pipe (lib.attrNames dflags) [
|
||||
(map (name: "-D${name}=\\\"${dflags.${name}}\\\""))
|
||||
(lib.concatStringsSep " ")
|
||||
];
|
||||
|
||||
@@ -14,7 +14,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-r40czSLdjCYbt73zK7exCoP/kMq6+pyJfz9LKJLLaXM=";
|
||||
};
|
||||
|
||||
CFLAGS = ''-DDUMPASN1_CONFIG_PATH='"$(out)/etc/"' '';
|
||||
env.CFLAGS = ''-DDUMPASN1_CONFIG_PATH='"$(out)/etc/"' '';
|
||||
|
||||
makeFlags = [ "prefix=$(out)" ];
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
sha256 = "sha256-jSdwq9WwYZP8MK6z7zJa0q93xfanr6iuvAt8YQkQxxE=";
|
||||
};
|
||||
|
||||
PREFIX = placeholder "out";
|
||||
env.PREFIX = placeholder "out";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace bin/dynamic-colors \
|
||||
|
||||
@@ -52,7 +52,11 @@ buildGoModule rec {
|
||||
glibc
|
||||
];
|
||||
|
||||
CGO_LDFLAGS = "-lpcap -lpthread -static";
|
||||
env.CGO_LDFLAGS = toString [
|
||||
"-lpcap"
|
||||
"-lpthread"
|
||||
"-static"
|
||||
];
|
||||
|
||||
ldflags = [
|
||||
"-extldflags '-static'"
|
||||
|
||||
@@ -44,7 +44,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
./format.patch
|
||||
];
|
||||
|
||||
CFLAGS = lib.optionalString debug " -DDEBUG=2";
|
||||
env = lib.optionalAttrs debug {
|
||||
CFLAGS = " -DDEBUG=2";
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = "https://eflite.sourceforge.net";
|
||||
|
||||
@@ -15,7 +15,7 @@ stdenv.mkDerivation {
|
||||
sha256 = "1c1fhc0v1m452lgnfcijnvrc0by06qfbhn3zkliqi60kv8l2isbp";
|
||||
};
|
||||
|
||||
CFLAGS = [ "-O2" ];
|
||||
env.CFLAGS = toString [ "-O2" ];
|
||||
|
||||
installFlags = [ "DESTDIR=$(out)" ];
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ buildGoModule (finalAttrs: {
|
||||
|
||||
subPackages = [ "cmd/exportarr" ];
|
||||
|
||||
CGO_ENABLE = 0;
|
||||
env.CGO_ENABLE = 0;
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
|
||||
@@ -12,7 +12,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
sha256 = "0l1qsk949vnz18k4vjf3ppq8p497966x4c7f2yx18x8pk35whn2a";
|
||||
};
|
||||
|
||||
CFLAGS = "-std=gnu89";
|
||||
env.CFLAGS = "-std=gnu89";
|
||||
|
||||
# 'fcrackzip --use-unzip' cannot deal with file names containing a single quote
|
||||
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=430387
|
||||
|
||||
@@ -46,7 +46,7 @@ perlPackages.buildPerlPackage rec {
|
||||
]);
|
||||
|
||||
# Fontconfig error: Cannot load default config file
|
||||
FONTCONFIG_FILE = fontsConf;
|
||||
env.FONTCONFIG_FILE = fontsConf;
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
|
||||
@@ -31,7 +31,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"-DFMI_VERSION=${toString FMIVersion}"
|
||||
(lib.cmakeBool "WITH_FMUSIM" false)
|
||||
];
|
||||
CFLAGS = lib.optionalString (FMIVersion == 3) "-Wno-stringop-truncation";
|
||||
|
||||
env = lib.optionalAttrs (FMIVersion == 3) {
|
||||
CFLAGS = "-Wno-stringop-truncation";
|
||||
};
|
||||
|
||||
meta = {
|
||||
# CMakeLists.txt explicitly states support for aarch64-darwin, but
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
stdenvNoCC,
|
||||
fetchFromGitLab,
|
||||
gitUpdater,
|
||||
autoreconfHook,
|
||||
@@ -8,9 +8,9 @@
|
||||
util-macros,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "font-alias";
|
||||
version = "1.0.5";
|
||||
version = "1.0.6";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.freedesktop.org";
|
||||
@@ -18,7 +18,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
owner = "font";
|
||||
repo = "alias";
|
||||
tag = "font-alias-${finalAttrs.version}";
|
||||
hash = "sha256-qglRNSt/PgFprpsvOVCeLMA+YagJw8DZMAfFdZ0m0/s=";
|
||||
hash = "sha256-WGCC4OTerSRf+2sGNqggSBzVVv7gcuP6s3QQHBLahdM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -40,7 +40,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
cronyx
|
||||
mit
|
||||
];
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.all;
|
||||
maintainers = with lib.maintainers; [ qweered ];
|
||||
};
|
||||
})
|
||||
|
||||
@@ -138,7 +138,7 @@ stdenv.mkDerivation {
|
||||
|
||||
# recommended build flags for performance optimized foot builds
|
||||
# https://codeberg.org/dnkl/foot/src/branch/master/INSTALL.md#release-build
|
||||
CFLAGS = if !doPgo then "-O3" else pgoCflags;
|
||||
env.CFLAGS = if !doPgo then "-O3" else pgoCflags;
|
||||
|
||||
# ar with gcc plugins for lto objects
|
||||
preConfigure = ''
|
||||
|
||||
@@ -29,9 +29,11 @@ stdenv.mkDerivation {
|
||||
"out"
|
||||
];
|
||||
|
||||
PREFIX = (placeholder "out");
|
||||
BINPREFIX = "${placeholder "bin"}/bin";
|
||||
MANPREFIX = "${placeholder "man"}/share/man/man1";
|
||||
env = {
|
||||
PREFIX = (placeholder "out");
|
||||
BINPREFIX = "${placeholder "bin"}/bin";
|
||||
MANPREFIX = "${placeholder "man"}/share/man/man1";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
# stubbing out a `git config` check that `make install` tries to do
|
||||
|
||||
@@ -135,7 +135,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
];
|
||||
|
||||
# Fontconfig error: Cannot load default config file
|
||||
FONTCONFIG_FILE = makeFontsConf {
|
||||
env.FONTCONFIG_FILE = makeFontsConf {
|
||||
fontDirectories = [ freefont_ttf ];
|
||||
};
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
Hence, this is not necessarily an upstream issue, but could be something
|
||||
wrong with how our gst_all_1 depend on each other.
|
||||
*/
|
||||
CFLAGS = "-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0";
|
||||
env.CFLAGS = "-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0";
|
||||
|
||||
preConfigure = ''
|
||||
patchShebangs ./build-aux/meson/postinstall.py
|
||||
|
||||
@@ -55,7 +55,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
];
|
||||
|
||||
# Tests require fontconfig.
|
||||
FONTCONFIG_FILE = makeFontsConf {
|
||||
env.FONTCONFIG_FILE = makeFontsConf {
|
||||
fontDirectories = [ ];
|
||||
};
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-ymGAVOkfHtXvBD/MQ1ALutcByVnDGETUaI/yKEmsJS0=";
|
||||
};
|
||||
|
||||
CFLAGS = "-std=gnu99";
|
||||
env.CFLAGS = "-std=gnu99";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
|
||||
@@ -203,12 +203,6 @@ python3Packages.buildPythonApplication {
|
||||
++ lib.optional withStaticPPDInstall "--enable-cups-ppd-install"
|
||||
++ lib.optional withQt5 "--enable-qt5";
|
||||
|
||||
# Prevent 'ppdc: Unable to find include file "<font.defs>"' which prevent
|
||||
# generation of '*.ppd' files.
|
||||
# This seems to be a 'ppdc' issue when the tool is run in a hermetic sandbox.
|
||||
# Could not find how to fix the problem in 'ppdc' so this is a workaround.
|
||||
CUPS_DATADIR = "${cups}/share/cups";
|
||||
|
||||
makeFlags =
|
||||
let
|
||||
out = placeholder "out";
|
||||
@@ -234,6 +228,12 @@ python3Packages.buildPythonApplication {
|
||||
enableParallelInstalling = false;
|
||||
|
||||
env = {
|
||||
# Prevent 'ppdc: Unable to find include file "<font.defs>"' which prevent
|
||||
# generation of '*.ppd' files.
|
||||
# This seems to be a 'ppdc' issue when the tool is run in a hermetic sandbox.
|
||||
# Could not find how to fix the problem in 'ppdc' so this is a workaround.
|
||||
CUPS_DATADIR = "${cups}/share/cups";
|
||||
|
||||
NIX_CFLAGS_COMPILE = toString [
|
||||
"-Wno-error=implicit-int"
|
||||
"-Wno-error=implicit-function-declaration"
|
||||
|
||||
@@ -23,7 +23,7 @@ python3Packages.buildPythonApplication (finalAttrs: {
|
||||
buildInputs = [ glibcLocales ];
|
||||
runtimeDeps = [ curl ];
|
||||
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
env.LC_ALL = "en_US.UTF-8";
|
||||
|
||||
meta = {
|
||||
description = "Curl statistics made simple";
|
||||
|
||||
@@ -17,7 +17,7 @@ python3Packages.buildPythonApplication (finalAttrs: {
|
||||
sha256 = "07dic5d2m0zw0psginpl43xn0mpxw7wilj49d02knz69f7c416lm";
|
||||
};
|
||||
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
env.LC_ALL = "en_US.UTF-8";
|
||||
buildInputs = [ glibcLocales ];
|
||||
|
||||
build-system = [
|
||||
|
||||
@@ -109,7 +109,7 @@ buildGoModule (finalAttrs: {
|
||||
tags = [ "libsqlite3" ];
|
||||
|
||||
# required for go-cowsql.
|
||||
CGO_LDFLAGS_ALLOW = "(-Wl,-wrap,pthread_create)|(-Wl,-z,now)";
|
||||
env.CGO_LDFLAGS_ALLOW = "(-Wl,-wrap,pthread_create)|(-Wl,-z,now)";
|
||||
|
||||
# add our lxc location to incus's acceptable rootFsPaths
|
||||
# this is necessary for tmpfs/tmpfs-overlay to work
|
||||
|
||||
@@ -98,7 +98,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
enableParallelBuilding = true;
|
||||
strictDeps = true;
|
||||
|
||||
CFLAGS = [
|
||||
env.CFLAGS = toString [
|
||||
"-O2"
|
||||
"-DNDEBUG"
|
||||
];
|
||||
|
||||
@@ -52,7 +52,7 @@ stdenv.mkDerivation rec {
|
||||
"--with-gtk3"
|
||||
];
|
||||
|
||||
CFLAGS = [
|
||||
env.CFLAGS = toString [
|
||||
"-DSCM_DEBUG_TYPING_STRICTNESS=2"
|
||||
];
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
--replace "subdir('tests')" ""
|
||||
'';
|
||||
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
env.LC_ALL = "en_US.UTF-8";
|
||||
|
||||
mesonFlags = [
|
||||
"-Dinstall-py-overrides=true"
|
||||
|
||||
@@ -127,11 +127,13 @@ stdenv.mkDerivation rec {
|
||||
"-Drpi-awb-nn=disabled"
|
||||
];
|
||||
|
||||
# Fixes error on a deprecated declaration
|
||||
env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
||||
env = {
|
||||
# Fixes error on a deprecated declaration
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
||||
|
||||
# Silence fontconfig warnings about missing config
|
||||
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
|
||||
# Silence fontconfig warnings about missing config
|
||||
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Open source camera stack and framework for Linux, Android, and ChromeOS";
|
||||
|
||||
@@ -15,8 +15,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
url = "https://src.fedoraproject.org/repo/pkgs/libmatthew-java/libmatthew-java-${finalAttrs.version}.tar.gz/8455b8751083ce25c99c2840609271f5/libmatthew-java-${finalAttrs.version}.tar.gz";
|
||||
sha256 = "1yldkhsdzm0a41a0i881bin2jklhp85y3ah245jd6fz3npcx7l85";
|
||||
};
|
||||
JAVA_HOME = jdk;
|
||||
PREFIX = "\${out}";
|
||||
|
||||
env = {
|
||||
JAVA_HOME = jdk;
|
||||
PREFIX = "\${out}";
|
||||
};
|
||||
|
||||
buildInputs = [ jdk ];
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -37,7 +37,8 @@ stdenv.mkDerivation {
|
||||
];
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
CLIPPER_PATH = "${clipper.out}";
|
||||
env.CLIPPER_PATH = clipper.out;
|
||||
|
||||
cmakeFlags = [ "-DLIBNEST2D_HEADER_ONLY=OFF" ];
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -45,7 +45,8 @@ stdenv.mkDerivation {
|
||||
"--with-gd"
|
||||
"--with-glib"
|
||||
];
|
||||
CFLAGS = [
|
||||
|
||||
env.CFLAGS = toString [
|
||||
"-Wall"
|
||||
"-std=c90"
|
||||
];
|
||||
|
||||
@@ -28,7 +28,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
-e '/bin_PROGRAMS/s/spf_example_static//' src/spf_example/Makefile.am
|
||||
'';
|
||||
|
||||
CFLAGS = "-Wno-error=implicit-function-declaration";
|
||||
env.CFLAGS = "-Wno-error=implicit-function-declaration";
|
||||
|
||||
doCheck = true;
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
sha256 = "03d4ikh29l38rl1wavb0icw7m5pp7yilnv7bb2k8qij1dinsymlx";
|
||||
};
|
||||
|
||||
CFLAGS = "-std=gnu89";
|
||||
env.CFLAGS = "-std=gnu89";
|
||||
|
||||
# For the x86_64 GNU/Linux arch to be recognized by 'configure'
|
||||
preConfigure = "cp ${libtool}/share/libtool/build-aux/config.sub .";
|
||||
|
||||
@@ -147,7 +147,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
|
||||
FONTCONFIG_FILE = lib.optional stdenv.hostPlatform.isDarwin (makeFontsConf {
|
||||
fontDirectories = [ freefont_ttf ];
|
||||
});
|
||||
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
|
||||
FONTCONFIG_FILE = (
|
||||
makeFontsConf {
|
||||
fontDirectories = [ freefont_ttf ];
|
||||
}
|
||||
);
|
||||
};
|
||||
})
|
||||
|
||||
@@ -42,7 +42,9 @@ buildGoModule rec {
|
||||
|
||||
tags = lib.optional withGoolm "goolm";
|
||||
|
||||
CGO_LDFLAGS = lib.optional withGoolm [ cppStdLib ];
|
||||
env = lib.optionalAttrs withGoolm {
|
||||
CGO_LDFLAGS = toString [ cppStdLib ];
|
||||
};
|
||||
|
||||
vendorHash = "sha256-TFz5P8czj8J9+QTFHjffCldw8Je2+DiM49W7jv5rY/I=";
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ stdenv.mkDerivation {
|
||||
'';
|
||||
|
||||
# This fixes tests that fail because of missing fonts
|
||||
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
|
||||
env.FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/applications $out/share/pixmaps $out/bin
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
{
|
||||
"version": "3.187.0",
|
||||
"version": "3.189.0",
|
||||
"assets": {
|
||||
"x86_64-linux": {
|
||||
"url": "https://github.com/metalbear-co/mirrord/releases/download/3.187.0/mirrord_linux_x86_64",
|
||||
"hash": "sha256-3a3xCVn0j4UgV5TIRu95TwEnUdKZX/usWInW6XGPa98="
|
||||
"url": "https://github.com/metalbear-co/mirrord/releases/download/3.189.0/mirrord_linux_x86_64",
|
||||
"hash": "sha256-tZHYPPCOFbWuohpTloc9ugUytal3KJDYXvu1CnXxTxI="
|
||||
},
|
||||
"aarch64-linux": {
|
||||
"url": "https://github.com/metalbear-co/mirrord/releases/download/3.187.0/mirrord_linux_aarch64",
|
||||
"hash": "sha256-3pA3LvHEeg1maRRNoEKkYlbBAn9eXh59EcuxjLpcFTs="
|
||||
"url": "https://github.com/metalbear-co/mirrord/releases/download/3.189.0/mirrord_linux_aarch64",
|
||||
"hash": "sha256-4WQTq5Jnmi8T7EbPFNvkirGQgcDmB6P9pT/3oXBC87k="
|
||||
},
|
||||
"aarch64-darwin": {
|
||||
"url": "https://github.com/metalbear-co/mirrord/releases/download/3.187.0/mirrord_mac_universal",
|
||||
"hash": "sha256-C4lV7fh/BdawZ1P26EcigaJ/v75BSApqu6csEH27uz8="
|
||||
"url": "https://github.com/metalbear-co/mirrord/releases/download/3.189.0/mirrord_mac_universal",
|
||||
"hash": "sha256-oEAfW/4Dlbv6pc8W8sRaBqS2g144W3DsNN+AJpu+eP0="
|
||||
},
|
||||
"x86_64-darwin": {
|
||||
"url": "https://github.com/metalbear-co/mirrord/releases/download/3.187.0/mirrord_mac_universal",
|
||||
"hash": "sha256-C4lV7fh/BdawZ1P26EcigaJ/v75BSApqu6csEH27uz8="
|
||||
"url": "https://github.com/metalbear-co/mirrord/releases/download/3.189.0/mirrord_mac_universal",
|
||||
"hash": "sha256-oEAfW/4Dlbv6pc8W8sRaBqS2g144W3DsNN+AJpu+eP0="
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
|
||||
runHook postUnpack
|
||||
'';
|
||||
|
||||
AOT_FILES = [
|
||||
env.AOT_FILES = toString [
|
||||
"MissionPlanner.exe"
|
||||
"MissionPlanner.*.dll"
|
||||
];
|
||||
|
||||
@@ -36,7 +36,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
./autogen.sh
|
||||
'';
|
||||
|
||||
PREFIX = placeholder "out";
|
||||
env.PREFIX = placeholder "out";
|
||||
|
||||
meta = {
|
||||
description = "Peer-to-peer VPN";
|
||||
|
||||
@@ -16,7 +16,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
# does not apply cleanly with patchPhase/fetchpatch
|
||||
# https://sources.debian.net/src/nasty/0.6-3/debian/patches/02_add_largefile_support.patch
|
||||
CFLAGS = "-D_FILE_OFFSET_BITS=64";
|
||||
env.CFLAGS = "-D_FILE_OFFSET_BITS=64";
|
||||
|
||||
buildInputs = [ gpgme ];
|
||||
|
||||
|
||||
@@ -64,7 +64,9 @@ buildGoModule (finalAttrs: {
|
||||
"-X github.com/navidrome/navidrome/consts.gitTag=v${finalAttrs.version}"
|
||||
];
|
||||
|
||||
CGO_CFLAGS = lib.optionals stdenv.cc.isGNU [ "-Wno-return-local-addr" ];
|
||||
env = lib.optionalAttrs stdenv.cc.isGNU {
|
||||
CGO_CFLAGS = toString [ "-Wno-return-local-addr" ];
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs ui/bin/update-workbox.sh
|
||||
|
||||
@@ -40,22 +40,27 @@ buildGoModule (finalAttrs: {
|
||||
];
|
||||
|
||||
ldflags = [
|
||||
"-s -w"
|
||||
"-s"
|
||||
"-w"
|
||||
];
|
||||
|
||||
tags = lib.optionals (!withDpi) [
|
||||
"nodpi"
|
||||
];
|
||||
|
||||
CGO_LDFLAGS = lib.optionalString withDpi ''
|
||||
-L${ndpi}/lib -lndpi
|
||||
-L${libprotoident}/lib -lndpi
|
||||
'';
|
||||
env = lib.optionalAttrs withDpi {
|
||||
CGO_LDFLAGS = toString [
|
||||
"-L${ndpi}/lib"
|
||||
"-lndpi"
|
||||
"-L${libprotoident}/lib"
|
||||
"-lndpi"
|
||||
];
|
||||
|
||||
CGO_CFLAGS = lib.optionalString withDpi ''
|
||||
-I${ndpi}/include
|
||||
-I${libprotoident}/include
|
||||
'';
|
||||
CGO_CFLAGS = toString [
|
||||
"-I${ndpi}/include"
|
||||
"-I${libprotoident}/include"
|
||||
];
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/cmd $out/bin/net
|
||||
|
||||
@@ -83,7 +83,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
];
|
||||
|
||||
# Fontconfig error: Cannot load default config file
|
||||
FONTCONFIG_FILE = makeFontsConf {
|
||||
env.FONTCONFIG_FILE = makeFontsConf {
|
||||
fontDirectories = [ freefont_ttf ];
|
||||
};
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
buildInputs = [ ncurses ];
|
||||
|
||||
PREFIX = placeholder "out";
|
||||
env.PREFIX = placeholder "out";
|
||||
|
||||
meta = {
|
||||
inherit (finalAttrs.src.meta) homepage;
|
||||
|
||||
@@ -103,9 +103,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
# ++ lib.optional withRygel rygel
|
||||
;
|
||||
|
||||
CFLAGS = [ "-DHAVE_PARANOIA_NEW_INCLUDES" ];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = "-I${lib.getDev gst_all_1.gst-plugins-base}/include/gstreamer-1.0";
|
||||
env = {
|
||||
CFLAGS = toString [ "-DHAVE_PARANOIA_NEW_INCLUDES" ];
|
||||
NIX_CFLAGS_COMPILE = "-I${lib.getDev gst_all_1.gst-plugins-base}/include/gstreamer-1.0";
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
|
||||
|
||||
@@ -49,8 +49,10 @@ stdenv.mkDerivation {
|
||||
yoda
|
||||
];
|
||||
|
||||
CPPFLAGS = [ "-I${eigen}/include/eigen3" ];
|
||||
PREFIX = placeholder "out";
|
||||
env = {
|
||||
CPPFLAGS = toString [ "-I${eigen}/include/eigen3" ];
|
||||
PREFIX = placeholder "out";
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
for prog in "$out"/bin/*; do
|
||||
|
||||
@@ -19,7 +19,7 @@ buildGoModule rec {
|
||||
hash = "sha256-NafQWP1NxHTwmOND8ovy3oVia7qq0rCwZYE3VNlMBKQ=";
|
||||
};
|
||||
|
||||
CGO_LDFLAGS = "-ldcgm";
|
||||
env.CGO_LDFLAGS = "-ldcgm";
|
||||
|
||||
buildInputs = [
|
||||
dcgm
|
||||
|
||||
@@ -38,7 +38,7 @@ buildGoModule.override { stdenv = clangStdenv; } (finalAttrs: {
|
||||
libz
|
||||
];
|
||||
|
||||
CGO_LDFLAGS = "-l bpf";
|
||||
env.CGO_LDFLAGS = "-l bpf";
|
||||
|
||||
hardeningDisable = [ "zerocallusedregs" ];
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
linuxHeaders
|
||||
];
|
||||
|
||||
CFLAGS = [ "-I${linuxHeaders}/include" ];
|
||||
env.CFLAGS = toString [ "-I${linuxHeaders}/include" ];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
|
||||
@@ -46,7 +46,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"doc"
|
||||
];
|
||||
|
||||
CLANG = lib.optionalString stdenv.cc.isClang "1";
|
||||
env = lib.optionalAttrs stdenv.cc.isClang {
|
||||
CLANG = "1";
|
||||
};
|
||||
|
||||
makeFlags = [ "prefix=$(out)" ];
|
||||
|
||||
|
||||
@@ -97,13 +97,16 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
install -Dm0644 documentation/sile.pdf $out/share/doc/sile/manual.pdf
|
||||
'';
|
||||
|
||||
FONTCONFIG_FILE = makeFontsConf {
|
||||
fontDirectories = [
|
||||
gentium-plus
|
||||
];
|
||||
env = {
|
||||
FONTCONFIG_FILE = makeFontsConf {
|
||||
fontDirectories = [
|
||||
gentium-plus
|
||||
];
|
||||
};
|
||||
LUA = "${finalAttrs.finalPackage.passthru.luaEnv}/bin/lua";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
env.LUA = "${finalAttrs.finalPackage.passthru.luaEnv}/bin/lua";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
libxfixes
|
||||
];
|
||||
|
||||
CPM_SOURCE_CACHE = "./build";
|
||||
env.CPM_SOURCE_CACHE = "./build";
|
||||
|
||||
postPatch = ''
|
||||
install -D ${cpm-cmake}/share/cpm/CPM.cmake $(echo $cargoDepsCopy/stereokit-sys-*/StereoKit)/build/cpm/CPM_0.32.2.cmake
|
||||
|
||||
@@ -42,7 +42,7 @@ buildGoModule rec {
|
||||
"-X github.com/smallstep/step-kms-plugin/cmd.Version=${version}"
|
||||
];
|
||||
|
||||
CGO_CFLAGS = "-I${lib.getDev pcsclite}/include/PCSC/";
|
||||
env.CGO_CFLAGS = "-I${lib.getDev pcsclite}/include/PCSC/";
|
||||
|
||||
meta = {
|
||||
description = "Step plugin to manage keys and certificates on cloud KMSs and HSMs";
|
||||
|
||||
@@ -109,7 +109,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
#
|
||||
# TODO: Remove these CFLAGS when they update to the version that pulls `abc` in with a submodule.
|
||||
# https://github.com/stp/stp/issues/498#issuecomment-2611251631
|
||||
CFLAGS = [ "-fsigned-char" ];
|
||||
env.CFLAGS = toString [ "-fsigned-char" ];
|
||||
|
||||
outputs = [
|
||||
"dev"
|
||||
|
||||
@@ -29,7 +29,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
# clang warning: passing arguments to '...' without a prototype is deprecated
|
||||
# in all versions of C and is not supported in C23.
|
||||
CFLAGS = "-std=c99 -Wno-deprecated-non-prototype";
|
||||
env.CFLAGS = toString [
|
||||
"-std=c99"
|
||||
"-Wno-deprecated-non-prototype"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
||||
@@ -24,16 +24,18 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
# We can't use sourceRoot, as the cherry-picked patches apply to files outside of it.
|
||||
postPatch = "cd src/syncterm";
|
||||
|
||||
CFLAGS = [
|
||||
"-DHAS_INTTYPES_H"
|
||||
"-DXPDEV_DONT_DEFINE_INTTYPES"
|
||||
env.CFLAGS = toString (
|
||||
[
|
||||
"-DHAS_INTTYPES_H"
|
||||
"-DXPDEV_DONT_DEFINE_INTTYPES"
|
||||
|
||||
"-Wno-unused-result"
|
||||
"-Wformat-overflow=0"
|
||||
]
|
||||
++ (lib.optionals stdenv.hostPlatform.isLinux [
|
||||
"-DUSE_ALSA_SOUND" # Don't use OSS for beeps.
|
||||
]);
|
||||
"-Wno-unused-result"
|
||||
"-Wformat-overflow=0"
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||
"-DUSE_ALSA_SOUND" # Don't use OSS for beeps.
|
||||
]
|
||||
);
|
||||
|
||||
makeFlags = [
|
||||
"PREFIX=$(out)"
|
||||
|
||||
@@ -32,7 +32,7 @@ buildGoModule (finalAttrs: {
|
||||
"-w"
|
||||
];
|
||||
|
||||
CGO_CFLAGS = [ "-Wno-format-security" ];
|
||||
env.CGO_CFLAGS = toString [ "-Wno-format-security" ];
|
||||
|
||||
preCheck = ''
|
||||
# Remove tests that require additional services.
|
||||
|
||||
@@ -49,7 +49,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"--enable-vala-bindings"
|
||||
];
|
||||
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
env.LC_ALL = "en_US.UTF-8";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
||||
@@ -35,7 +35,9 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
];
|
||||
|
||||
# For keyring support
|
||||
PKG_CONFIG_PATH = lib.optionalString stdenv.hostPlatform.isLinux "${dbus.dev}/lib/pkgconfig";
|
||||
env = lib.optionalAttrs stdenv.hostPlatform.isLinux {
|
||||
PKG_CONFIG_PATH = "${dbus.dev}/lib/pkgconfig";
|
||||
};
|
||||
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
# Generate shell completions
|
||||
|
||||
@@ -47,7 +47,7 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
|
||||
substituteInPlace test/test_revert_command.py --replace 'test_revert_ls' 'dont_test_revert_ls'
|
||||
'';
|
||||
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
env.LC_ALL = "en_US.UTF-8";
|
||||
|
||||
meta = {
|
||||
description = "Cli todo application compatible with the todo.txt format";
|
||||
|
||||
@@ -71,7 +71,7 @@ buildPythonPackage rec {
|
||||
tox
|
||||
];
|
||||
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
env.LC_ALL = "en_US.UTF-8";
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
|
||||
@@ -43,7 +43,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
ncurses
|
||||
];
|
||||
|
||||
CFLAGS = "-lasound -lpulse-simple";
|
||||
env.CFLAGS = toString [
|
||||
"-lasound"
|
||||
"-lpulse-simple"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Sound characters as Morse code on the soundcard or console speaker";
|
||||
|
||||
@@ -54,7 +54,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
patches = [ ./vtsls-build-patch.patch ];
|
||||
|
||||
# Skips manual confirmations during build
|
||||
CI = true;
|
||||
env.CI = true;
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
@@ -24,7 +24,7 @@ clangStdenv.mkDerivation (finalAttrs: {
|
||||
'';
|
||||
|
||||
# Fixes installation path
|
||||
PREFIX = placeholder "out";
|
||||
env.PREFIX = placeholder "out";
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/kira64xyz/yafetch";
|
||||
|
||||
@@ -107,7 +107,7 @@ let
|
||||
in
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "zed-editor";
|
||||
version = "0.224.6";
|
||||
version = "0.224.8";
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
@@ -120,7 +120,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
owner = "zed-industries";
|
||||
repo = "zed";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-GbTWkD+JVYr+jem9MBQ4bTtPDogIU1XfQy2RmsnY9uI=";
|
||||
hash = "sha256-rY2g35gRtuQ9si9GYPjmq3boPsTkTD0OZET6dmR597A=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -140,7 +140,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
rm -r $out/git/*/candle-book/
|
||||
'';
|
||||
|
||||
cargoHash = "sha256-FTbxMJrub0l0hL8zisD2Ov9JXIRwZjOuTkzjmrImOd4=";
|
||||
cargoHash = "sha256-eJwvUtZobIRXKJOyERczTRQzDR7ml3uqgWMd+vXStQE=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
|
||||
@@ -16,17 +16,7 @@
|
||||
fetchpatch,
|
||||
fetchFromGitHub,
|
||||
makeSetupHook,
|
||||
makeWrapper,
|
||||
bison,
|
||||
cups ? null,
|
||||
harfbuzz,
|
||||
libGL,
|
||||
perl,
|
||||
python3,
|
||||
gstreamer,
|
||||
gst-plugins-base,
|
||||
gtk3,
|
||||
dconf,
|
||||
llvmPackages_19,
|
||||
darwin,
|
||||
|
||||
@@ -282,14 +272,7 @@ let
|
||||
qtbase = callPackage ../modules/qtbase.nix {
|
||||
inherit (srcs.qtbase) src version;
|
||||
patches = patches.qtbase;
|
||||
inherit
|
||||
bison
|
||||
cups
|
||||
harfbuzz
|
||||
libGL
|
||||
;
|
||||
withGtk3 = !stdenv.hostPlatform.isDarwin;
|
||||
inherit dconf gtk3;
|
||||
inherit developerBuild decryptSslTraffic;
|
||||
};
|
||||
|
||||
@@ -305,9 +288,7 @@ let
|
||||
qtlocation = callPackage ../modules/qtlocation.nix { };
|
||||
qtlottie = callPackage ../modules/qtlottie.nix { };
|
||||
qtmacextras = callPackage ../modules/qtmacextras.nix { };
|
||||
qtmultimedia = callPackage ../modules/qtmultimedia.nix {
|
||||
inherit gstreamer gst-plugins-base;
|
||||
};
|
||||
qtmultimedia = callPackage ../modules/qtmultimedia.nix { };
|
||||
qtnetworkauth = callPackage ../modules/qtnetworkauth.nix { };
|
||||
qtpim = callPackage ../modules/qtpim.nix { };
|
||||
qtpositioning = callPackage ../modules/qtpositioning.nix { };
|
||||
|
||||
@@ -56,7 +56,6 @@
|
||||
withGtk3 ? false,
|
||||
dconf,
|
||||
gtk3,
|
||||
withQttranslation ? true,
|
||||
qttranslations ? null,
|
||||
withLibinput ? false,
|
||||
libinput,
|
||||
@@ -492,8 +491,7 @@ stdenv.mkDerivation (
|
||||
"-I"
|
||||
"${libmysqlclient}/include"
|
||||
]
|
||||
++ lib.optional (withQttranslation && (qttranslations != null)) [
|
||||
# depends on x11
|
||||
++ lib.optional (qttranslations != null) [
|
||||
"-translationdir"
|
||||
"${qttranslations}/translations"
|
||||
]
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
qtdeclarative,
|
||||
pkg-config,
|
||||
alsa-lib,
|
||||
gstreamer,
|
||||
gst-plugins-base,
|
||||
gst_all_1,
|
||||
libpulseaudio,
|
||||
wayland,
|
||||
}:
|
||||
@@ -19,16 +18,18 @@ qtModule {
|
||||
qtdeclarative
|
||||
];
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
gstreamer
|
||||
gst-plugins-base
|
||||
]
|
||||
# https://github.com/NixOS/nixpkgs/pull/169336 regarding libpulseaudio
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||
libpulseaudio
|
||||
alsa-lib
|
||||
wayland
|
||||
];
|
||||
buildInputs =
|
||||
with gst_all_1;
|
||||
[
|
||||
gstreamer
|
||||
gst-plugins-base
|
||||
]
|
||||
# https://github.com/NixOS/nixpkgs/pull/169336 regarding libpulseaudio
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||
libpulseaudio
|
||||
alsa-lib
|
||||
wayland
|
||||
];
|
||||
outputs = [
|
||||
"bin"
|
||||
"dev"
|
||||
|
||||
@@ -34,7 +34,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
];
|
||||
|
||||
# Complains about not being able to find the fontconfig config file otherwise
|
||||
FONTCONFIG_FILE = lib.optional docSupport (makeFontsConf {
|
||||
env.FONTCONFIG_FILE = lib.optional docSupport (makeFontsConf {
|
||||
fontDirectories = [ ];
|
||||
});
|
||||
|
||||
|
||||
@@ -62,10 +62,14 @@ buildPythonPackage.override { stdenv = cudaPackages.backendStdenv; } rec {
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
env.LDFLAGS = toString [
|
||||
# Fake libcuda.so (the real one is deployed impurely)
|
||||
"-L${lib.getOutput "stubs" cudaPackages.cuda_cudart}/lib/stubs"
|
||||
];
|
||||
env = {
|
||||
LDFLAGS = toString [
|
||||
# Fake libcuda.so (the real one is deployed impurely)
|
||||
"-L${lib.getOutput "stubs" cudaPackages.cuda_cudart}/lib/stubs"
|
||||
];
|
||||
# NVCC = "${lib.getExe cudaPackages.cuda_nvcc}"; # FIXME: splicing/buildPackages
|
||||
CUDA_PATH = "${cudatoolkit-joined}";
|
||||
};
|
||||
|
||||
# See https://docs.cupy.dev/en/v10.2.0/reference/environment.html. Setting both
|
||||
# CUPY_NUM_BUILD_JOBS and CUPY_NUM_NVCC_THREADS to NIX_BUILD_CORES results in
|
||||
@@ -95,9 +99,6 @@ buildPythonPackage.override { stdenv = cudaPackages.backendStdenv; } rec {
|
||||
nccl
|
||||
];
|
||||
|
||||
# NVCC = "${lib.getExe cudaPackages.cuda_nvcc}"; # FIXME: splicing/buildPackages
|
||||
CUDA_PATH = "${cudatoolkit-joined}";
|
||||
|
||||
dependencies = [
|
||||
fastrlock
|
||||
numpy
|
||||
|
||||
@@ -57,7 +57,7 @@ buildPythonPackage {
|
||||
sed -i 's/requests.*"/requests"/' setup.py
|
||||
'';
|
||||
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
env.LC_ALL = "en_US.UTF-8";
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/lib
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
writeText,
|
||||
debug ? false,
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "sgx-sdk";
|
||||
# Version as given in se_version.h
|
||||
version = "2.24.100.3";
|
||||
@@ -33,15 +33,15 @@ stdenv.mkDerivation rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "intel";
|
||||
repo = "linux-sgx";
|
||||
rev = "sgx_${versionTag}";
|
||||
rev = "sgx_${finalAttrs.versionTag}";
|
||||
hash = "sha256-1urEdfMKNUqqyJ3wQ10+tvtlRuAKELpaCWIOzjCbYKw=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
postUnpack = ''
|
||||
# Make sure this is the right version of linux-sgx
|
||||
grep -q '"${version}"' "$src/common/inc/internal/se_version.h" \
|
||||
|| (echo "Could not find expected version ${version} in linux-sgx source" >&2 && exit 1)
|
||||
grep -q '"${finalAttrs.version}"' "$src/common/inc/internal/se_version.h" \
|
||||
|| (echo "Could not find expected version ${finalAttrs.version} in linux-sgx source" >&2 && exit 1)
|
||||
'';
|
||||
|
||||
patches = [
|
||||
@@ -95,7 +95,7 @@ stdenv.mkDerivation rec {
|
||||
openssl
|
||||
];
|
||||
|
||||
BINUTILS_DIR = "${binutils}/bin";
|
||||
env.BINUTILS_DIR = "${binutils}/bin";
|
||||
|
||||
# Build external/ippcp_internal first. The Makefile is rewritten to make the
|
||||
# build faster by splitting different versions of ipp-crypto builds and to
|
||||
@@ -104,7 +104,7 @@ stdenv.mkDerivation rec {
|
||||
let
|
||||
ipp-crypto-no_mitigation = callPackage ./ipp-crypto.nix { };
|
||||
|
||||
sgx-asm-pp = "python ${src}/build-scripts/sgx-asm-pp.py --assembler=nasm";
|
||||
sgx-asm-pp = "python ${finalAttrs.src}/build-scripts/sgx-asm-pp.py --assembler=nasm";
|
||||
|
||||
nasm-load = writeShellScript "nasm-load" "${sgx-asm-pp} --MITIGATION-CVE-2020-0551=LOAD $@";
|
||||
ipp-crypto-cve_2020_0551_load = callPackage ./ipp-crypto.nix {
|
||||
@@ -149,14 +149,14 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
postBuild = ''
|
||||
patchShebangs linux/installer/bin/sgx_linux_x64_sdk_${version}.bin
|
||||
patchShebangs linux/installer/bin/sgx_linux_x64_sdk_${finalAttrs.version}.bin
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
installDir=$TMPDIR
|
||||
./linux/installer/bin/sgx_linux_x64_sdk_${version}.bin -prefix $installDir
|
||||
./linux/installer/bin/sgx_linux_x64_sdk_${finalAttrs.version}.bin -prefix $installDir
|
||||
installDir=$installDir/sgxsdk
|
||||
|
||||
echo "Move files created by installer"
|
||||
@@ -239,7 +239,7 @@ stdenv.mkDerivation rec {
|
||||
echo "Fixing BINUTILS_DIR in buildenv.mk"
|
||||
substituteInPlace $out/share/bin/buildenv.mk \
|
||||
--replace 'BINUTILS_DIR ?= /usr/local/bin' \
|
||||
'BINUTILS_DIR ?= ${BINUTILS_DIR}'
|
||||
'BINUTILS_DIR ?= ${finalAttrs.env.BINUTILS_DIR}'
|
||||
|
||||
echo "Fixing GDB path in bin/sgx-gdb"
|
||||
substituteInPlace $out/bin/sgx-gdb --replace '/usr/local/bin/gdb' '${gdb}/bin/gdb'
|
||||
@@ -301,4 +301,4 @@ stdenv.mkDerivation rec {
|
||||
platforms = [ "x86_64-linux" ];
|
||||
license = [ lib.licenses.bsd3 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
@@ -17,7 +17,9 @@ stdenv.mkDerivation {
|
||||
patches
|
||||
;
|
||||
|
||||
CFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-D_DARWIN_C_SOURCE";
|
||||
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
|
||||
CFLAGS = "-D_DARWIN_C_SOURCE";
|
||||
};
|
||||
|
||||
postPatch = lib.optionalString (customConfig != null) ''
|
||||
cp ${builtins.toFile "config.h" customConfig} ./config.h
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
util-linux,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "update-systemd-resolved";
|
||||
# when updating this, check if additional binaries need injecting into PATH
|
||||
version = "1.3.0";
|
||||
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "jonathanio";
|
||||
repo = "update-systemd-resolved";
|
||||
rev = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-lYJTR3oBmpENcqNHa9PFXsw7ly6agwjBWf4UXf1d8Kc=";
|
||||
};
|
||||
|
||||
@@ -26,10 +26,10 @@ stdenv.mkDerivation rec {
|
||||
./update-systemd-resolved.patch
|
||||
];
|
||||
|
||||
PREFIX = "${placeholder "out"}/libexec/openvpn";
|
||||
env.PREFIX = "${placeholder "out"}/libexec/openvpn";
|
||||
|
||||
postInstall = ''
|
||||
substituteInPlace ${PREFIX}/update-systemd-resolved \
|
||||
substituteInPlace ${finalAttrs.env.PREFIX}/update-systemd-resolved \
|
||||
--subst-var-by PATH ${
|
||||
lib.makeBinPath [
|
||||
coreutils
|
||||
@@ -48,4 +48,4 @@ stdenv.mkDerivation rec {
|
||||
maintainers = with lib.maintainers; [ eadwu ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
@@ -7380,35 +7380,7 @@ with pkgs;
|
||||
python3 = null;
|
||||
};
|
||||
|
||||
qt5 = recurseIntoAttrs (
|
||||
makeOverridable (import ../development/libraries/qt-5/5.15) {
|
||||
inherit (__splicedPackages)
|
||||
makeScopeWithSplicing'
|
||||
generateSplicesForMkScope
|
||||
lib
|
||||
stdenv
|
||||
gcc14Stdenv
|
||||
fetchurl
|
||||
fetchpatch
|
||||
fetchgit
|
||||
fetchFromGitHub
|
||||
makeSetupHook
|
||||
makeWrapper
|
||||
bison
|
||||
cups
|
||||
dconf
|
||||
harfbuzz
|
||||
libGL
|
||||
perl
|
||||
gtk3
|
||||
python3
|
||||
llvmPackages_19
|
||||
darwin
|
||||
;
|
||||
inherit (__splicedPackages.gst_all_1) gstreamer gst-plugins-base;
|
||||
inherit config;
|
||||
}
|
||||
);
|
||||
qt5 = recurseIntoAttrs (__splicedPackages.callPackage ../development/libraries/qt-5/5.15 { });
|
||||
|
||||
libsForQt5 = recurseIntoAttrs (
|
||||
import ./qt5-packages.nix {
|
||||
|
||||
Reference in New Issue
Block a user