Merge remote-tracking branch 'origin/master' into gcc-9
This commit is contained in:
@@ -1,39 +0,0 @@
|
||||
{ stdenv, libusb1, fetchgit}:
|
||||
|
||||
|
||||
let
|
||||
rev = "85ee5eeaca59a1c92659c3f49b148b0447d78f16";
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "alienfx-1.0.0";
|
||||
src = fetchgit {
|
||||
inherit rev;
|
||||
url = https://github.com/tibz/alienfx.git;
|
||||
|
||||
sha256 = "47501a3b4e08d39edee4cd829ae24259a7e740b9798db76b846fa872989f8fb1";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace Makefile --replace /usr/ $out/
|
||||
substituteInPlace Makefile --replace "install -o root -g root -m 4755" "install -m 555"
|
||||
'';
|
||||
|
||||
patches = [./unistd.patch];
|
||||
buildInputs = [ libusb1 ];
|
||||
makeFlags = "build";
|
||||
preInstall = ''
|
||||
mkdir -p $out/bin
|
||||
mkdir -p $out/man/man1
|
||||
'';
|
||||
installTargets = "install";
|
||||
postInstall = ''cp alienfx.1 $out/man/man1'';
|
||||
|
||||
meta = {
|
||||
description = "Controls AlienFX lighting";
|
||||
homepage = https://github.com/tibz/alienfx;
|
||||
maintainers = [stdenv.lib.maintainers.tomberek];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
diff --git a/alienfx.cpp b/alienfx.cpp
|
||||
index 5981039..aea8992 100644
|
||||
--- a/alienfx.cpp
|
||||
+++ b/alienfx.cpp
|
||||
@@ -13,6 +13,7 @@
|
||||
#include <string.h>
|
||||
#include <iostream>
|
||||
#include <libusb-1.0/libusb.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{stdenv, fetchurl}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "alsa-firmware-1.0.29";
|
||||
name = "alsa-firmware-1.2.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://alsa/firmware/${name}.tar.bz2";
|
||||
sha256 = "0gfcyj5anckjn030wcxx5v2xk2s219nyf99s9m833275b5wz2piw";
|
||||
sha256 = "1aq8z8ajpjvcx7bwhwp36bh5idzximyn77ygk3ifs0my3mbpr8mf";
|
||||
};
|
||||
|
||||
configureFlags = [
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "alsa-plugins";
|
||||
version = "1.1.9";
|
||||
version = "1.2.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://alsa/plugins/${pname}-${version}.tar.bz2";
|
||||
sha256 = "01zrg0h2jw9dlj9233vjsn916yf4f2s667yry6xsn8d57lq745qn";
|
||||
sha256 = "1nj8cpbi05rb62yzs01c1k7lymdn1ch229b599hbhd0psixdx52d";
|
||||
};
|
||||
|
||||
# ToDo: a52, etc.?
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "alsa-utils";
|
||||
version = "1.1.9";
|
||||
version = "1.2.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://alsa/utils/${pname}-${version}.tar.bz2";
|
||||
sha256 = "0fi11b7r8hg1bdjw74s8sqx8rc4qb310jaj9lsia9labvfyjrpsx";
|
||||
sha256 = "039c19b7091is0czl9jlrfczp7pp1jpdri0vvc4k07gl3skhn48b";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
|
||||
@@ -45,13 +45,13 @@ in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "anbox";
|
||||
version = "unstable-2019-05-03";
|
||||
version = "unstable-2019-11-15";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "ea2b7a3dea34a6803134f4adc16c276f4c2479eb";
|
||||
sha256 = "00x772nbrbx7ma0scr24m65g50pmi4v6d6q3cwbbi55r8qiy2yz7";
|
||||
rev = "0a49ae08f76de7f886a3dbed4422711c2fa39d10";
|
||||
sha256 = "09l56nv9cnyhykclfmvam6bkcxlamwbql6nrz9n022553w92hkjf";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "anbox-modules";
|
||||
version = "2019-07-13-" + kernel.version;
|
||||
version = "2019-11-15-" + kernel.version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "anbox";
|
||||
repo = "anbox-modules";
|
||||
rev = "816dd4d6e702cf77a44cfe208659af6c39e02b57";
|
||||
sha256 = "115xrv3fz5bk51hz8cwb61h0xnrsnv217fxmbpw35a6hjrk7gslc";
|
||||
rev = "e0a237e571989987806b32881044c539db25e3e1";
|
||||
sha256 = "1km1nslp4f5znwskh4bb1b61r1inw1dlbwiyyq3rrh0f0agf8d0v";
|
||||
};
|
||||
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "android-udev-rules";
|
||||
version = "20190315";
|
||||
version = "20191103";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "M0Rf30";
|
||||
repo = "android-udev-rules";
|
||||
rev = version;
|
||||
sha256 = "1w8zkww3cj6yzcsfzwvj1gkf4dfflhp1vd9fixnmlbm43kwkqrdr";
|
||||
sha256 = "0x2f2sv0x0ry7kccp47s0hlxps3hbpg37dj3xjjgpdm5hmn2cjq3";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
|
||||
@@ -246,9 +246,9 @@ if test -z "$libsOnly"; then
|
||||
( # build and install fgl_glxgears
|
||||
cd fgl_glxgears;
|
||||
gcc -DGL_ARB_texture_multisample=1 -g \
|
||||
-I$libGLU_combined/include \
|
||||
-I$libGL/include -I$libGLU/include \
|
||||
-I$out/include \
|
||||
-L$libGLU_combined/lib -lGL -lGLU -lX11 -lm \
|
||||
-L$libGL/lib -L$libGLU/lib -lGL -lGLU -lX11 -lm \
|
||||
-o $out/bin/fgl_glxgears -Wall fgl_glxgears.c
|
||||
)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ stdenv, lib, fetchurl, kernel ? null, which
|
||||
, xorg, makeWrapper, glibc, patchelf, unzip
|
||||
, fontconfig, freetype, libGLU_combined # for fgl_glxgears
|
||||
, fontconfig, freetype, libGLU, libGL # for fgl_glxgears
|
||||
, # Whether to build the libraries only (i.e. not the kernel module or
|
||||
# driver utils). Used to support 32-bit binaries on 64-bit
|
||||
# Linux.
|
||||
@@ -90,7 +90,7 @@ stdenv.mkDerivation rec {
|
||||
xorg.libXrandr xorg.libXxf86vm xorg.xorgproto xorg.imake xorg.libICE
|
||||
patchelf
|
||||
unzip
|
||||
libGLU_combined
|
||||
libGLU libGL
|
||||
fontconfig
|
||||
freetype
|
||||
makeWrapper
|
||||
@@ -108,7 +108,7 @@ stdenv.mkDerivation rec {
|
||||
LD_LIBRARY_PATH = makeLibraryPath
|
||||
[ xorg.libXrender xorg.libXext xorg.libX11 xorg.libXinerama xorg.libSM
|
||||
xorg.libXrandr xorg.libXxf86vm xorg.xorgproto xorg.imake xorg.libICE
|
||||
libGLU_combined
|
||||
libGLU libGL
|
||||
fontconfig
|
||||
freetype
|
||||
stdenv.cc.cc
|
||||
@@ -122,7 +122,7 @@ stdenv.mkDerivation rec {
|
||||
xorg.libX11.out xorg.libXinerama.out xorg.libSM.out
|
||||
xorg.libICE.out ];
|
||||
|
||||
inherit libGLU_combined; # only required to build the examples
|
||||
inherit libGLU libGL; # only required to build the examples
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
||||
@@ -61,6 +61,6 @@ stdenv.mkDerivation rec {
|
||||
homepage = https://people.redhat.com/sgrubb/audit/;
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
||||
maintainers = with stdenv.lib.maintainers; [ ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
{ stdenv, fetchurl, pkgconfig, gpsd, libcap, libnl }:
|
||||
|
||||
let
|
||||
ver = "2019.3";
|
||||
ver = "2019.5";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "alfred-${ver}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://downloads.open-mesh.org/batman/releases/batman-adv-${ver}/${name}.tar.gz";
|
||||
sha256 = "0rj7vyir4m63b69fgrz06mqlw7nivjfc8mdv19l02xs9vqh7khx4";
|
||||
sha256 = "09npizg89ks1wm19l5xz0pq1ljpsbwy030xnprqnd0p53976wywa";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
@@ -1,38 +1,25 @@
|
||||
{ stdenv, fetchFromGitHub, makeWrapper, cmake, llvmPackages, kernel
|
||||
, flex, bison, elfutils, python, luajit, netperf, iperf, libelf
|
||||
, systemtap
|
||||
, systemtap, bash
|
||||
}:
|
||||
|
||||
python.pkgs.buildPythonApplication rec {
|
||||
version = "0.11.0";
|
||||
version = "0.12.0";
|
||||
name = "bcc-${version}";
|
||||
|
||||
srcs = [
|
||||
(fetchFromGitHub {
|
||||
owner = "iovisor";
|
||||
repo = "bcc";
|
||||
rev = "v${version}";
|
||||
sha256 = "1v2gzdd4k58f3yxmq4z97a7xh5vyd84flzzfr9k2cm29i93cwcam";
|
||||
name = "bcc";
|
||||
})
|
||||
|
||||
# note: keep this in sync with the version that was used at the time of the
|
||||
# tagged release!
|
||||
(fetchFromGitHub {
|
||||
owner = "libbpf";
|
||||
repo = "libbpf";
|
||||
rev = "a30df5c09fb3941fc42c4570ed2545e7057bf82a";
|
||||
sha256 = "088vb9sfs1zazlqi6abb3ia1xgpmwiz5pmz6y3a6gbh0zdrgh6px";
|
||||
name = "libbpf";
|
||||
})
|
||||
];
|
||||
sourceRoot = "bcc";
|
||||
src = fetchFromGitHub {
|
||||
owner = "iovisor";
|
||||
repo = "bcc";
|
||||
rev = "v${version}";
|
||||
sha256 = "1r2yjxam23k56prsvjhqf8i8d3irhcvmy0bly6x23h1jc3zc6yym";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
format = "other";
|
||||
|
||||
buildInputs = with llvmPackages; [
|
||||
llvm clang-unwrapped kernel
|
||||
elfutils luajit netperf iperf
|
||||
systemtap.stapBuild flex
|
||||
systemtap.stapBuild flex bash
|
||||
];
|
||||
|
||||
patches = [
|
||||
@@ -58,12 +45,6 @@ python.pkgs.buildPythonApplication rec {
|
||||
patch -p1 < libbcc-path.patch
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
chmod -R u+w ../libbpf/
|
||||
rmdir src/cc/libbpf
|
||||
(cd src/cc && ln -svf ../../../libbpf/ libbpf)
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/bin $out/share
|
||||
rm -r $out/share/bcc/tools/old
|
||||
@@ -76,6 +57,8 @@ python.pkgs.buildPythonApplication rec {
|
||||
if [ ! -e $bin ]; then
|
||||
ln -s $f $bin
|
||||
fi
|
||||
substituteInPlace "$f" \
|
||||
--replace '$(dirname $0)/lib' "$out/share/bcc/tools/lib"
|
||||
done
|
||||
|
||||
sed -i -e "s!lib=.*!lib=$out/bin!" $out/bin/{java,ruby,node,python}gc
|
||||
|
||||
@@ -1,167 +0,0 @@
|
||||
{ stdenv, fetchurl, pkgconfig, unzip, which
|
||||
, libuuid, attr, xfsprogs, cppunit, rdma-core
|
||||
, zlib, openssl, sqlite, jre, openjdk, ant
|
||||
, openssh, perl, gfortran, influxdb, curl
|
||||
} :
|
||||
|
||||
let
|
||||
version = "7.0";
|
||||
|
||||
subdirs = [
|
||||
"beeond_thirdparty/build"
|
||||
"beeond_thirdparty_gpl/build"
|
||||
"thirdparty/build"
|
||||
"opentk_lib/build"
|
||||
"common/build"
|
||||
"admon/build"
|
||||
"java_lib/build"
|
||||
"ctl/build"
|
||||
"fsck/build"
|
||||
"helperd/build"
|
||||
"meta/build"
|
||||
"mgmtd/build"
|
||||
"storage/build"
|
||||
"utils/build"
|
||||
"mon/build"
|
||||
"upgrade/beegfs_mirror_md/build"
|
||||
];
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
pname = "beegfs";
|
||||
inherit version;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://git.beegfs.com/pub/v7/repository/archive.tar.bz2?ref=${version}";
|
||||
sha256 = "1wsljd5ybyhl94aqrdfvcs8a0l8w4pr0bs1vhjrf4y7ldhw35m3k";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ which unzip pkgconfig cppunit openjdk ant perl ];
|
||||
|
||||
buildInputs = [
|
||||
libuuid
|
||||
attr
|
||||
xfsprogs
|
||||
zlib
|
||||
openssl
|
||||
sqlite
|
||||
jre
|
||||
rdma-core
|
||||
openssh
|
||||
gfortran
|
||||
influxdb
|
||||
curl
|
||||
];
|
||||
|
||||
hardeningDisable = [ "format" ]; # required for building beeond
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs ./
|
||||
find -type f -name Makefile -exec sed -i "s:/bin/bash:${stdenv.shell}:" \{} \;
|
||||
find -type f -name Makefile -exec sed -i "s:/bin/true:true:" \{} \;
|
||||
find -type f -name "*.mk" -exec sed -i "s:/bin/true:true:" \{} \;
|
||||
|
||||
# unpack manually and patch variable name
|
||||
sed -i '/tar -C $(SOURCE_PATH) -xzf $(PCOPY_TAR)/d' beeond_thirdparty/build/Makefile
|
||||
cd beeond_thirdparty/source
|
||||
tar xf pcopy-0.96.tar.gz
|
||||
sed -i 's/\([^_]\)rank/\1grank/' pcopy-0.96/src/pcp.cpp
|
||||
cd ../..
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
for i in ${toString subdirs}; do
|
||||
make -C $i BEEGFS_OPENTK_IBVERBS=1 ''${enableParallelBuilding:+-j''${NIX_BUILD_CORES} -l''${NIX_BUILD_CORES}}
|
||||
done
|
||||
make -C admon/build admon_gui BEEGFS_OPENTK_IBVERBS=1
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
installPhase = ''
|
||||
binDir=$out/bin
|
||||
docDir=$out/share/doc/beegfs
|
||||
includeDir=$out/include/beegfs
|
||||
libDir=$out/lib
|
||||
libDirPkg=$out/lib/beegfs
|
||||
|
||||
mkdir -p $binDir $libDir $libDirPkg $docDir $includeDir
|
||||
|
||||
cp admon/build/beegfs-admon $binDir
|
||||
cp admon/build/dist/usr/bin/beegfs-admon-gui $binDir
|
||||
cp admon_gui/dist/beegfs-admon-gui.jar $libDirPkg
|
||||
cp admon/build/dist/etc/beegfs-admon.conf $docDir
|
||||
|
||||
cp java_lib/build/jbeegfs.jar $libDirPkg
|
||||
cp java_lib/build/libjbeegfs.so $libDir
|
||||
|
||||
cp ctl/build/beegfs-ctl $binDir
|
||||
cp fsck/build/beegfs-fsck $binDir
|
||||
|
||||
cp utils/scripts/beegfs-check-servers $binDir
|
||||
cp utils/scripts/beegfs-df $binDir
|
||||
cp utils/scripts/beegfs-net $binDir
|
||||
|
||||
cp helperd/build/beegfs-helperd $binDir
|
||||
cp helperd/build/dist/etc/beegfs-helperd.conf $docDir
|
||||
|
||||
cp client_module/build/dist/sbin/beegfs-setup-client $binDir
|
||||
cp client_module/build/dist/etc/beegfs-client.conf $docDir
|
||||
|
||||
cp meta/build/beegfs-meta $binDir
|
||||
cp meta/build/dist/sbin/beegfs-setup-meta $binDir
|
||||
cp meta/build/dist/etc/beegfs-meta.conf $docDir
|
||||
|
||||
cp mgmtd/build/beegfs-mgmtd $binDir
|
||||
cp mgmtd/build/dist/sbin/beegfs-setup-mgmtd $binDir
|
||||
cp mgmtd/build/dist/etc/beegfs-mgmtd.conf $docDir
|
||||
|
||||
cp storage/build/beegfs-storage $binDir
|
||||
cp storage/build/dist/sbin/beegfs-setup-storage $binDir
|
||||
cp storage/build/dist/etc/beegfs-storage.conf $docDir
|
||||
|
||||
cp opentk_lib/build/libbeegfs-opentk.so $libDir
|
||||
|
||||
cp upgrade/beegfs_mirror_md/build/beegfs-mirror-md $binDir
|
||||
|
||||
cp client_devel/build/dist/usr/share/doc/beegfs-client-devel/examples/* $docDir
|
||||
cp -r client_devel/include/* $includeDir
|
||||
|
||||
cp beeond_thirdparty_gpl/build/parallel $out/bin
|
||||
cp beeond_thirdparty/build/pcopy/p* $out/bin
|
||||
cp beeond_thirdparty/build/pcopy/s* $out/bin
|
||||
cp -r beeond/scripts/* $out
|
||||
cp beeond/source/* $out/bin
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
substituteInPlace $out/bin/beegfs-admon-gui \
|
||||
--replace " java " " ${jre}/bin/java " \
|
||||
--replace "/opt/beegfs/beegfs-admon-gui/beegfs-admon-gui.jar" \
|
||||
"$libDirPkg/beegfs-admon-gui.jar"
|
||||
|
||||
substituteInPlace $out/bin/beeond \
|
||||
--replace /opt/beegfs/sbin "$out/bin"
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
checkPhase = ''
|
||||
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`/opentk_lib/build/ \
|
||||
common/build/test-runner --text
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "High performance distributed filesystem with RDMA support";
|
||||
homepage = "https://www.beegfs.io";
|
||||
platforms = [ "i686-linux" "x86_64-linux" ];
|
||||
license = {
|
||||
fullName = "BeeGFS_EULA";
|
||||
url = "https://www.beegfs.io/docs/BeeGFS_EULA.txt";
|
||||
free = false;
|
||||
};
|
||||
maintainers = with maintainers; [ markuskowa ];
|
||||
# 2019-08-09
|
||||
# fails to build and had stability issues earlier
|
||||
broken = true;
|
||||
};
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
{ stdenv, fetchurl, which
|
||||
, kmod, kernel
|
||||
} :
|
||||
|
||||
let
|
||||
version = "7.0";
|
||||
in stdenv.mkDerivation {
|
||||
name = "beegfs-module-${version}-${kernel.version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://git.beegfs.com/pub/v7/repository/archive.tar.bz2?ref=${version}";
|
||||
sha256 = "1wsljd5ybyhl94aqrdfvcs8a0l8w4pr0bs1vhjrf4y7ldhw35m3k";
|
||||
};
|
||||
|
||||
hardeningDisable = [ "fortify" "pic" "stackprotector" ];
|
||||
|
||||
nativeBuildInputs = [ which kmod ];
|
||||
|
||||
buildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
makeFlags = [ "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build/" ];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs ./
|
||||
find -type f -name Makefile -exec sed -i "s:/bin/bash:${stdenv.shell}:" \{} \;
|
||||
find -type f -name Makefile -exec sed -i "s:/bin/true:true:" \{} \;
|
||||
find -type f -name "*.mk" -exec sed -i "s:/bin/true:true:" \{} \;
|
||||
'';
|
||||
|
||||
preBuild = "cd client_module/build";
|
||||
|
||||
installPhase = ''
|
||||
instdir=$out/lib/modules/${kernel.modDirVersion}/extras/fs/beegfs
|
||||
mkdir -p $instdir
|
||||
cp beegfs.ko $instdir
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "High performance distributed filesystem with RDMA support";
|
||||
homepage = "https://www.beegfs.io";
|
||||
platforms = [ "i686-linux" "x86_64-linux" ];
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ markuskowa ];
|
||||
broken = stdenv.lib.versionAtLeast kernel.version "4.18";
|
||||
};
|
||||
}
|
||||
@@ -1,61 +0,0 @@
|
||||
Submitted By: Armin K. <krejzi at email dot com>
|
||||
Date: 2013-04-29
|
||||
Initial Package Version: 5.17
|
||||
Upstream Status: unknown
|
||||
Origin: Arch Linux (Giovanni Campagna)
|
||||
Description: Allow using obexd without systemd in the user session
|
||||
|
||||
Not all sessions run systemd --user (actually, the majority
|
||||
doesn't), so the dbus daemon must be able to spawn obexd
|
||||
directly, and to do so it needs the full path of the daemon.
|
||||
---
|
||||
Makefile.obexd | 4 ++--
|
||||
obexd/src/org.bluez.obex.service | 4 ----
|
||||
obexd/src/org.bluez.obex.service.in | 4 ++++
|
||||
3 files changed, 6 insertions(+), 6 deletions(-)
|
||||
delete mode 100644 obexd/src/org.bluez.obex.service
|
||||
create mode 100644 obexd/src/org.bluez.obex.service.in
|
||||
|
||||
diff --git a/Makefile.obexd b/Makefile.obexd
|
||||
index 3760867..142e7c3 100644
|
||||
--- a/Makefile.obexd
|
||||
+++ b/Makefile.obexd
|
||||
@@ -2,12 +2,12 @@
|
||||
if SYSTEMD
|
||||
systemduserunitdir = @SYSTEMD_USERUNITDIR@
|
||||
systemduserunit_DATA = obexd/src/obex.service
|
||||
+endif
|
||||
|
||||
dbussessionbusdir = @DBUS_SESSIONBUSDIR@
|
||||
dbussessionbus_DATA = obexd/src/org.bluez.obex.service
|
||||
-endif
|
||||
|
||||
-EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service
|
||||
+EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service.in
|
||||
|
||||
obex_plugindir = $(libdir)/obex/plugins
|
||||
|
||||
diff --git a/obexd/src/org.bluez.obex.service b/obexd/src/org.bluez.obex.service
|
||||
deleted file mode 100644
|
||||
index a538088..0000000
|
||||
--- a/obexd/src/org.bluez.obex.service
|
||||
+++ /dev/null
|
||||
@@ -1,4 +0,0 @@
|
||||
-[D-BUS Service]
|
||||
-Name=org.bluez.obex
|
||||
-Exec=/bin/false
|
||||
-SystemdService=dbus-org.bluez.obex.service
|
||||
diff --git a/obexd/src/org.bluez.obex.service.in b/obexd/src/org.bluez.obex.service.in
|
||||
new file mode 100644
|
||||
index 0000000..9c815f2
|
||||
--- /dev/null
|
||||
+++ b/obexd/src/org.bluez.obex.service.in
|
||||
@@ -0,0 +1,4 @@
|
||||
+[D-BUS Service]
|
||||
+Name=org.bluez.obex
|
||||
+Exec=@libexecdir@/obexd
|
||||
+SystemdService=dbus-org.bluez.obex.service
|
||||
--
|
||||
1.8.3.1
|
||||
|
||||
|
||||
@@ -1,49 +1,58 @@
|
||||
{ stdenv, fetchurl, pkgconfig, dbus, glib, alsaLib,
|
||||
python3, readline, udev, libical, systemd, fetchpatch,
|
||||
enableWiimote ? false, enableMidi ? false, enableSixaxis ? false }:
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, alsaLib
|
||||
, dbus
|
||||
, glib
|
||||
, json_c
|
||||
, libical
|
||||
, pkgconfig
|
||||
, python3
|
||||
, readline
|
||||
, systemd
|
||||
, udev
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "bluez-5.50";
|
||||
pname = "bluez";
|
||||
version = "5.52";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/bluetooth/${name}.tar.xz";
|
||||
sha256 = "048r91vx9gs5nwwbah2s0xig04nwk14c5s0vb7qmaqdvighsmz2z";
|
||||
url = "mirror://kernel/linux/bluetooth/${pname}-${version}.tar.xz";
|
||||
sha256 = "02jng21lp6fb3c2bh6vf9y7cj4gaxwk29dfc32ncy0lj0gi4q57p";
|
||||
};
|
||||
|
||||
pythonPath = with python3.pkgs; [
|
||||
dbus-python pygobject2 pygobject3 recursivePthLoader
|
||||
dbus-python
|
||||
pygobject3
|
||||
recursivePthLoader
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
dbus glib alsaLib python3 python3.pkgs.wrapPython
|
||||
readline udev libical
|
||||
alsaLib
|
||||
dbus
|
||||
glib
|
||||
json_c
|
||||
libical
|
||||
python3
|
||||
readline
|
||||
udev
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
nativeBuildInputs = [
|
||||
pkgconfig
|
||||
python3.pkgs.wrapPython
|
||||
];
|
||||
|
||||
outputs = [ "out" "dev" "test" ];
|
||||
|
||||
patches = [
|
||||
./bluez-5.37-obexd_without_systemd-1.patch
|
||||
(fetchpatch {
|
||||
url = "https://git.kernel.org/pub/scm/bluetooth/bluez.git/patch/?id=1880b299086659844889cdaf687133aca5eaf102";
|
||||
name = "CVE-2018-10910-1.patch";
|
||||
sha256 = "17spsxza27gif8jpxk7360ynvwii1llfdfwg35rwywjjmvww0qj4";
|
||||
})
|
||||
(fetchpatch {
|
||||
url = "https://git.kernel.org/pub/scm/bluetooth/bluez.git/patch/?id=9213ff7642a33aa481e3c61989ad60f7985b9984";
|
||||
name = "CVE-2018-10910-2.patch";
|
||||
sha256 = "0j7klbhym64yhn86dbsmybqmwx47bviyyhx931izl1p29z2mg8hn";
|
||||
})
|
||||
];
|
||||
|
||||
postConfigure = ''
|
||||
postPatch = ''
|
||||
substituteInPlace tools/hid2hci.rules \
|
||||
--replace /sbin/udevadm ${systemd}/bin/udevadm \
|
||||
--replace "hid2hci " "$out/lib/udev/hid2hci "
|
||||
'';
|
||||
|
||||
configureFlags = (with stdenv.lib; [
|
||||
configureFlags = [
|
||||
"--localstatedir=/var"
|
||||
"--enable-library"
|
||||
"--enable-cups"
|
||||
@@ -54,14 +63,21 @@ stdenv.mkDerivation rec {
|
||||
"--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
|
||||
"--with-systemduserunitdir=${placeholder "out"}/etc/systemd/user"
|
||||
"--with-udevdir=${placeholder "out"}/lib/udev"
|
||||
] ++ optional enableWiimote [ "--enable-wiimote" ]
|
||||
++ optional enableMidi [ "--enable-midi" ]
|
||||
++ optional enableSixaxis [ "--enable-sixaxis" ]);
|
||||
"--enable-health"
|
||||
"--enable-mesh"
|
||||
"--enable-midi"
|
||||
"--enable-nfc"
|
||||
"--enable-sap"
|
||||
"--enable-sixaxis"
|
||||
"--enable-wiimote"
|
||||
];
|
||||
|
||||
# Work around `make install' trying to create /var/lib/bluetooth.
|
||||
installFlags = "statedir=$(TMPDIR)/var/lib/bluetooth";
|
||||
installFlags = [ "statedir=$(TMPDIR)/var/lib/bluetooth" ];
|
||||
|
||||
makeFlags = "rulesdir=${placeholder "out"}/lib/udev/rules.d";
|
||||
makeFlags = [ "rulesdir=${placeholder "out"}/lib/udev/rules.d" ];
|
||||
|
||||
doCheck = stdenv.hostPlatform.isx86_64;
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $test/{bin,test}
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bpftrace";
|
||||
version = "0.9.2";
|
||||
version = "0.9.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "iovisor";
|
||||
repo = "bpftrace";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "19lblnhx3p0qk8s3qgxrx9wl0d6dgz5dfp4gw6a6cvhhyn78cldm";
|
||||
sha256 = "1qkfbmksdssmm1qxcvcwdql1pz8cqy233195n9i9q5dhk876f75v";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "brillo";
|
||||
version = "1.4.8";
|
||||
version = "1.4.9";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner= "cameronnemo";
|
||||
repo= "brillo";
|
||||
rev= "v${version}";
|
||||
sha256 = "0wxvg541caiwm3bjwbmk7xcng7jd9xsiga2agxwp7gpkrlp74j9f";
|
||||
sha256 = "0ab7s60zcgl6hvm0a9rlwq35p25n3jnw6r9256pwl4cdwyjyybsb";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
||||
@@ -34,14 +34,14 @@ let
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "busybox-1.30.1";
|
||||
name = "busybox-1.31.1";
|
||||
|
||||
# Note to whoever is updating busybox: please verify that:
|
||||
# nix-build pkgs/stdenv/linux/make-bootstrap-tools.nix -A test
|
||||
# still builds after the update.
|
||||
src = fetchurl {
|
||||
url = "https://busybox.net/downloads/${name}.tar.bz2";
|
||||
sha256 = "1p7vbnwj60q6zkzrzq3pa8ybb7mviv2aa5a8g7s4hh6kvfj0879x";
|
||||
sha256 = "1659aabzp8w4hayr4z8kcpbk2z1q2wqhw7i1yb0l72b45ykl1yfh";
|
||||
};
|
||||
|
||||
hardeningDisable = [ "format" "pie" ]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{fetchgit }:
|
||||
{ fetchFromGitiles }:
|
||||
|
||||
fetchgit {
|
||||
fetchFromGitiles {
|
||||
name = "chromium-xorg-conf";
|
||||
url = "https://chromium.googlesource.com/chromiumos/platform/xorg-conf";
|
||||
rev = "26fb9d57e195c7e467616b35b17e2b5d279c1514";
|
||||
|
||||
@@ -14,7 +14,11 @@ stdenv.mkDerivation {
|
||||
sed -i 's,/usr/bin/install,${buildPackages.coreutils}/bin/install,' Makefile
|
||||
'';
|
||||
|
||||
makeFlags = [ "CROSS=${stdenv.cc.targetPrefix}" ];
|
||||
makeFlags = [
|
||||
"CROSS=${stdenv.cc.targetPrefix}"
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
"LD=${stdenv.cc.targetPrefix}cc"
|
||||
];
|
||||
|
||||
installFlags = stdenv.lib.mapAttrsToList
|
||||
(n: v: "${n}dir=${placeholder "out"}/${v}") {
|
||||
|
||||
@@ -11,22 +11,22 @@ let
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "displaylink";
|
||||
version = "4.4.24";
|
||||
version = "5.2.14";
|
||||
|
||||
src = requireFile rec {
|
||||
name = "displaylink.zip";
|
||||
sha256 = "0c02mg7vbijpfpk9imh0hmls1yiglc216zfllw5ar86r1slhd5y0";
|
||||
sha256 = "03b176y95f04rg3lcnjps9llsjbvd8yksh1fpvjwaciz48mnxh2i";
|
||||
message = ''
|
||||
In order to install the DisplayLink drivers, you must first
|
||||
comply with DisplayLink's EULA and download the binaries and
|
||||
sources from here:
|
||||
|
||||
http://www.displaylink.com/downloads/file?id=1261
|
||||
http://www.displaylink.com/downloads/file?id=1369
|
||||
|
||||
Once you have downloaded the file, please use the following
|
||||
commands and re-run the installation:
|
||||
|
||||
mv \$PWD/"DisplayLink USB Graphics Software for Ubuntu ${version}.zip" \$PWD/${name}
|
||||
mv \$PWD/"DisplayLink USB Graphics Software for Ubuntu ${lib.versions.majorMinor version}.zip" \$PWD/${name}
|
||||
nix-prefetch-url file://\$PWD/${name}
|
||||
'';
|
||||
};
|
||||
@@ -36,7 +36,7 @@ in stdenv.mkDerivation rec {
|
||||
unpackPhase = ''
|
||||
unzip $src
|
||||
chmod +x displaylink-driver-${version}.run
|
||||
./displaylink-driver-${version}.run --target . --noexec
|
||||
./displaylink-driver-${version}.run --target . --noexec --nodiskspace
|
||||
'';
|
||||
|
||||
patches = [ (substituteAll {
|
||||
@@ -67,8 +67,9 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "DisplayLink DL-5xxx, DL-41xx and DL-3x00 Driver for Linux";
|
||||
maintainers = with maintainers; [ nshalman abbradar peterhoeg ];
|
||||
platforms = [ "x86_64-linux" "i686-linux" ];
|
||||
license = licenses.unfree;
|
||||
homepage = https://www.displaylink.com/;
|
||||
homepage = "https://www.displaylink.com/";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
cat <<'EOF'
|
||||
start_service()
|
||||
{
|
||||
- systemctl start dlm
|
||||
- systemctl start displaylink-driver
|
||||
+ @systemd@/bin/systemctl start --no-block dlm
|
||||
}
|
||||
|
||||
stop_service()
|
||||
{
|
||||
- systemctl stop dlm
|
||||
- systemctl stop displaylink-driver
|
||||
+ @systemd@/bin/systemctl stop dlm
|
||||
}
|
||||
|
||||
|
||||
@@ -1,58 +1,56 @@
|
||||
{ stdenv, lib, kernel, fetchurl, pkgconfig, numactl, shared ? false }:
|
||||
{ stdenv, lib
|
||||
, kernel
|
||||
, fetchurl
|
||||
, pkgconfig, meson, ninja
|
||||
, libbsd, numactl, libbpf, zlib, libelf, jansson, openssl, libpcap
|
||||
, doxygen, python3
|
||||
, shared ? false }:
|
||||
|
||||
let
|
||||
|
||||
kver = kernel.modDirVersion or null;
|
||||
|
||||
mod = kernel != null;
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "dpdk-${version}" + lib.optionalString mod "-${kernel.version}";
|
||||
version = "19.08";
|
||||
version = "19.08.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://fast.dpdk.org/rel/dpdk-${version}.tar.xz";
|
||||
sha256 = "0xgrkip2aji1c7jy5gk38zzwlp5ap1s6dmbcag5dnyy3bmwvmp9y";
|
||||
sha256 = "141bqqy4w6nzs9z70x7yv94a4gmxjfal46pxry9bwdh3zi1jwnyd";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ numactl ] ++ lib.optional mod kernel.moduleBuildDependencies;
|
||||
|
||||
RTE_KERNELDIR = if mod then "${kernel.dev}/lib/modules/${kver}/build" else "/var/empty";
|
||||
RTE_TARGET = "x86_64-native-linuxapp-gcc";
|
||||
|
||||
NIX_CFLAGS_COMPILE = [
|
||||
# we need sse3 instructions to build
|
||||
"-msse3"
|
||||
# gcc9 compatibility
|
||||
"-Wno-error=address-of-packed-member"
|
||||
nativeBuildInputs = [
|
||||
doxygen
|
||||
meson
|
||||
ninja
|
||||
pkgconfig
|
||||
python3
|
||||
python3.pkgs.sphinx
|
||||
];
|
||||
hardeningDisable = [ "pic" ];
|
||||
buildInputs = [
|
||||
jansson
|
||||
libbpf
|
||||
libbsd
|
||||
libelf
|
||||
libpcap
|
||||
numactl
|
||||
openssl.dev
|
||||
zlib
|
||||
] ++ lib.optionals mod kernel.moduleBuildDependencies;
|
||||
|
||||
postPatch = ''
|
||||
cat >>config/defconfig_$RTE_TARGET <<EOF
|
||||
# Build static or shared libraries.
|
||||
CONFIG_RTE_BUILD_SHARED_LIB=${if shared then "y" else "n"}
|
||||
EOF
|
||||
'' + lib.optionalString (!mod) ''
|
||||
cat >>config/defconfig_$RTE_TARGET <<EOF
|
||||
# Do not build kernel modules.
|
||||
CONFIG_RTE_EAL_IGB_UIO=n
|
||||
CONFIG_RTE_KNI_KMOD=n
|
||||
EOF
|
||||
patchShebangs config/arm
|
||||
'';
|
||||
|
||||
configurePhase = ''
|
||||
make T=${RTE_TARGET} config
|
||||
'';
|
||||
|
||||
installTargets = [ "install-runtime" "install-sdk" "install-kmod" ]; # skip install-doc
|
||||
|
||||
installFlags = [
|
||||
"prefix=$(out)"
|
||||
] ++ lib.optionals mod [
|
||||
"kerneldir=$(kmod)/lib/modules/${kver}"
|
||||
];
|
||||
mesonFlags = [
|
||||
"-Denable_docs=true"
|
||||
"-Denable_kmods=${if kernel != null then "true" else "false"}"
|
||||
]
|
||||
++ lib.optionals (shared == false) [
|
||||
"-Ddefault_library=static"
|
||||
]
|
||||
++ lib.optional stdenv.isx86_64 "-Dmachine=nehalem"
|
||||
++ lib.optional (kernel != null) "-Dkernel_dir=${kernel.dev}/lib/modules/${kernel.modDirVersion}";
|
||||
|
||||
outputs = [ "out" ] ++ lib.optional mod "kmod";
|
||||
|
||||
@@ -62,7 +60,7 @@ EOF
|
||||
description = "Set of libraries and drivers for fast packet processing";
|
||||
homepage = http://dpdk.org/;
|
||||
license = with licenses; [ lgpl21 gpl2 bsd2 ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ domenkozar magenbluten orivej ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ebtables";
|
||||
version = "2.0.10-4";
|
||||
version = "2.0.11";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/ebtables/ebtables-v${version}.tar.gz";
|
||||
sha256 = "0pa5ljlk970yfyhpf3iqwfpbc30j8mgn90fapw9cfz909x47nvyw";
|
||||
url = "http://ftp.netfilter.org/pub/${pname}/${pname}-${version}.tar.gz";
|
||||
sha256 = "0apxgmkhsk3vxn9q3libxn3dgrdljrxyy4mli2gk49m7hi3na7xp";
|
||||
};
|
||||
|
||||
makeFlags =
|
||||
@@ -15,11 +15,6 @@ stdenv.mkDerivation rec {
|
||||
"LOCALSTATEDIR=/var"
|
||||
];
|
||||
|
||||
preBuild =
|
||||
''
|
||||
substituteInPlace Makefile --replace '-o root -g root' ""
|
||||
'';
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||
|
||||
preInstall = "mkdir -p $out/etc/sysconfig";
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ell";
|
||||
version = "0.24";
|
||||
version = "0.26";
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://git.kernel.org/pub/scm/libs/${pname}/${pname}.git";
|
||||
rev = version;
|
||||
sha256 = "1dspi6ds58dy7g1q3chapxydfiyz8bjjlryq66jvwgpynzp0c1h1";
|
||||
sha256 = "1gnqd7dghwkcn48f6fr9qvkkm976b3x4bn3l7l2k9pamzpng084i";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
let
|
||||
|
||||
version = "1.43_4";
|
||||
version = "1.43_5";
|
||||
|
||||
|
||||
# Updated according to https://github.com/patjak/bcwc_pcie/pull/81/files
|
||||
@@ -10,8 +10,8 @@ let
|
||||
# and https://github.com/patjak/bcwc_pcie/blob/5a7083bd98b38ef3bd223f7ee531d58f4fb0fe7c/firmware/extract-firmware.sh
|
||||
|
||||
# From the Makefile:
|
||||
dmgUrl = "https://support.apple.com/downloads/DL1877/en_US/osxupd10.11.5.dmg";
|
||||
dmgRange = "205261917-208085450"; # the whole download is 1.3GB, this cuts it down to 2MB
|
||||
dmgUrl = "https://updates.cdn-apple.com/2019/cert/041-88431-20191011-e7ee7d98-2878-4cd9-bc0a-d98b3a1e24b1/OSXUpd10.11.5.dmg";
|
||||
dmgRange = "204909802-207733123"; # the whole download is 1.3GB, this cuts it down to 2MB
|
||||
# Notes:
|
||||
# 1. Be sure to update the sha256 below in the fetch_url
|
||||
# 2. Be sure to update the homepage in the meta
|
||||
@@ -39,7 +39,7 @@ stdenv.mkDerivation {
|
||||
inherit version;
|
||||
src = fetchurl {
|
||||
url = dmgUrl;
|
||||
sha256 = "0xqkl4yds0n9fdjvnk0v5mj382q02crry6wm2q7j3ncdqwsv02sv";
|
||||
sha256 = "0s8crlh8rvpanzk1w4z3hich0a3mw0m5xhpcg07bxy02calhpdk1";
|
||||
curlOpts = "-r ${dmgRange}";
|
||||
};
|
||||
|
||||
@@ -56,7 +56,7 @@ stdenv.mkDerivation {
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "facetimehd firmware";
|
||||
homepage = https://support.apple.com/downloads/DL1877;
|
||||
homepage = https://support.apple.com/kb/DL1877;
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ womfoo grahamc ];
|
||||
platforms = [ "i686-linux" "x86_64-linux" ];
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
{ stdenv, fetchgit }:
|
||||
{ stdenv, fetchgit, lib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "firmware-linux-nonfree";
|
||||
version = "2019-09-23";
|
||||
version = "2019-10-22";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git";
|
||||
rev = "20190923";
|
||||
sha256 = "1gq55ny6lb2nh6rr1w55bslzysyj0bwdl6rbpv882hhyjrnsma0n";
|
||||
rev = lib.replaceStrings ["-"] [""] version;
|
||||
sha256 = "03ycc55h7vgd4fmb7v7gl7lplf7pg7acs16aa2rramgldxqvyx7j";
|
||||
};
|
||||
|
||||
installFlags = [ "DESTDIR=$(out)" ];
|
||||
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
outputHashMode = "recursive";
|
||||
outputHashAlgo = "sha256";
|
||||
outputHash = "1y2z3wxqq2km6x08kfdqgcr9xczbq1h2jqyrqr6h31bapjb8x0k9";
|
||||
outputHash = "15nm0xh2xq8mnk7a66iljcklc15gvh6jcpz2d9llg1fkv6w8lqc6";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Binary firmware collection packaged by kernel.org";
|
||||
|
||||
+35
-31
@@ -1,30 +1,21 @@
|
||||
diff --git a/data/meson.build b/data/meson.build
|
||||
index 61664cd6..f10abbba 100644
|
||||
index 25db9509..f394eb25 100644
|
||||
--- a/data/meson.build
|
||||
+++ b/data/meson.build
|
||||
@@ -11,7 +11,7 @@ if get_option('daemon')
|
||||
@@ -13,7 +13,7 @@
|
||||
if build_daemon
|
||||
subdir('installed-tests')
|
||||
install_data(['daemon.conf'],
|
||||
- install_dir : join_paths(sysconfdir, 'fwupd')
|
||||
+ install_dir : join_paths(sysconfdir_install, 'fwupd')
|
||||
)
|
||||
endif
|
||||
|
||||
install_data(['daemon.conf'],
|
||||
- install_dir : join_paths(sysconfdir, 'fwupd')
|
||||
+ install_dir : join_paths(sysconfdir_install, 'fwupd')
|
||||
)
|
||||
|
||||
install_data(['org.freedesktop.fwupd.metainfo.xml'],
|
||||
@@ -23,7 +23,7 @@ install_data(['org.freedesktop.fwupd.svg'],
|
||||
)
|
||||
|
||||
install_data(['org.freedesktop.fwupd.conf'],
|
||||
- install_dir : join_paths(sysconfdir, 'dbus-1', 'system.d')
|
||||
+ install_dir : join_paths(sysconfdir_install, 'dbus-1', 'system.d')
|
||||
)
|
||||
|
||||
if get_option('daemon')
|
||||
diff --git a/data/pki/meson.build b/data/pki/meson.build
|
||||
index eefcc914..dc801fa1 100644
|
||||
--- a/data/pki/meson.build
|
||||
+++ b/data/pki/meson.build
|
||||
@@ -4,14 +4,14 @@ if get_option('gpg')
|
||||
@@ -4,14 +4,14 @@
|
||||
'GPG-KEY-Linux-Foundation-Firmware',
|
||||
'GPG-KEY-Linux-Vendor-Firmware-Service',
|
||||
],
|
||||
@@ -41,7 +32,7 @@ index eefcc914..dc801fa1 100644
|
||||
)
|
||||
endif
|
||||
|
||||
@@ -19,12 +19,12 @@ if get_option('pkcs7')
|
||||
@@ -19,12 +19,12 @@
|
||||
install_data([
|
||||
'LVFS-CA.pem',
|
||||
],
|
||||
@@ -57,10 +48,10 @@ index eefcc914..dc801fa1 100644
|
||||
endif
|
||||
|
||||
diff --git a/data/remotes.d/meson.build b/data/remotes.d/meson.build
|
||||
index a27c31ef..374e09b6 100644
|
||||
index 826a3c1d..b78db663 100644
|
||||
--- a/data/remotes.d/meson.build
|
||||
+++ b/data/remotes.d/meson.build
|
||||
@@ -3,7 +3,7 @@ if get_option('daemon') and get_option('lvfs')
|
||||
@@ -3,7 +3,7 @@
|
||||
'lvfs.conf',
|
||||
'lvfs-testing.conf',
|
||||
],
|
||||
@@ -69,7 +60,7 @@ index a27c31ef..374e09b6 100644
|
||||
)
|
||||
i18n.merge_file(
|
||||
input: 'lvfs.metainfo.xml',
|
||||
@@ -37,12 +37,12 @@ configure_file(
|
||||
@@ -37,12 +37,12 @@
|
||||
output : 'vendor.conf',
|
||||
configuration : con2,
|
||||
install: true,
|
||||
@@ -85,10 +76,10 @@ index a27c31ef..374e09b6 100644
|
||||
+ install_dir: join_paths(sysconfdir_install, 'fwupd', 'remotes.d'),
|
||||
)
|
||||
diff --git a/meson.build b/meson.build
|
||||
index a89f9b3f..736896eb 100644
|
||||
index 8e1de887..a5bb1fe6 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -145,6 +145,12 @@ localstatedir = join_paths(prefix, get_option('localstatedir'))
|
||||
@@ -158,6 +158,12 @@
|
||||
mandir = join_paths(prefix, get_option('mandir'))
|
||||
localedir = join_paths(prefix, get_option('localedir'))
|
||||
|
||||
@@ -99,13 +90,13 @@ index a89f9b3f..736896eb 100644
|
||||
+endif
|
||||
+
|
||||
gio = dependency('gio-2.0', version : '>= 2.45.8')
|
||||
giounix = dependency('gio-unix-2.0', version : '>= 2.45.8')
|
||||
if gio.version().version_compare ('>= 2.55.0')
|
||||
conf.set('HAVE_GIO_2_55_0', '1')
|
||||
diff --git a/meson_options.txt b/meson_options.txt
|
||||
index 5d4163e8..db81fd1f 100644
|
||||
index 71b50c6a..561c2031 100644
|
||||
--- a/meson_options.txt
|
||||
+++ b/meson_options.txt
|
||||
@@ -21,6 +21,7 @@ option('plugin_modem_manager', type : 'boolean', value : false, description : 'e
|
||||
@@ -24,6 +24,7 @@
|
||||
option('systemd', type : 'boolean', value : true, description : 'enable systemd support')
|
||||
option('systemdunitdir', type: 'string', value: '', description: 'Directory for systemd units')
|
||||
option('elogind', type : 'boolean', value : false, description : 'enable elogind support')
|
||||
@@ -117,7 +108,7 @@ diff --git a/plugins/dell-esrt/meson.build b/plugins/dell-esrt/meson.build
|
||||
index cb9f4555..b972d7fb 100644
|
||||
--- a/plugins/dell-esrt/meson.build
|
||||
+++ b/plugins/dell-esrt/meson.build
|
||||
@@ -36,5 +36,5 @@ configure_file(
|
||||
@@ -36,5 +36,5 @@
|
||||
output : 'dell-esrt.conf',
|
||||
configuration : con2,
|
||||
install: true,
|
||||
@@ -128,7 +119,7 @@ diff --git a/plugins/redfish/meson.build b/plugins/redfish/meson.build
|
||||
index 5c88504e..7706da71 100644
|
||||
--- a/plugins/redfish/meson.build
|
||||
+++ b/plugins/redfish/meson.build
|
||||
@@ -26,7 +26,7 @@ shared_module('fu_plugin_redfish',
|
||||
@@ -26,7 +26,7 @@
|
||||
)
|
||||
|
||||
install_data(['redfish.conf'],
|
||||
@@ -137,11 +128,24 @@ index 5c88504e..7706da71 100644
|
||||
)
|
||||
|
||||
if get_option('tests')
|
||||
diff --git a/plugins/thunderbolt/meson.build b/plugins/thunderbolt/meson.build
|
||||
index 42718abf..bc815491 100644
|
||||
--- a/plugins/thunderbolt/meson.build
|
||||
+++ b/plugins/thunderbolt/meson.build
|
||||
@@ -46,7 +46,7 @@
|
||||
)
|
||||
|
||||
install_data(['thunderbolt.conf'],
|
||||
- install_dir: join_paths(sysconfdir, 'fwupd')
|
||||
+ install_dir: join_paths(sysconfdir_install, 'fwupd')
|
||||
)
|
||||
# we use functions from 2.52 in the tests
|
||||
if get_option('tests') and umockdev.found() and gio.version().version_compare('>= 2.52')
|
||||
diff --git a/plugins/uefi/meson.build b/plugins/uefi/meson.build
|
||||
index ac9f5dd8..1ab51b5e 100644
|
||||
index 45b18d7d..ef8e0b04 100644
|
||||
--- a/plugins/uefi/meson.build
|
||||
+++ b/plugins/uefi/meson.build
|
||||
@@ -79,7 +79,7 @@ executable(
|
||||
@@ -85,7 +85,7 @@
|
||||
)
|
||||
|
||||
install_data(['uefi.conf'],
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
, freetype
|
||||
, fontconfig
|
||||
, pango
|
||||
, tpm2-tss
|
||||
, bubblewrap
|
||||
, efibootmgr
|
||||
, flashrom
|
||||
@@ -79,18 +80,18 @@ let
|
||||
|
||||
# # Currently broken on Aarch64
|
||||
# haveFlashrom = isx86;
|
||||
# Experimental in 1.2.10
|
||||
# Experimental
|
||||
haveFlashrom = false;
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "fwupd";
|
||||
version = "1.2.10";
|
||||
version = "1.3.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://people.freedesktop.org/~hughsient/releases/fwupd-${version}.tar.xz";
|
||||
sha256 = "0inngs7i48akm9c7fmdsf9zjif595rkaba69rl76jfwfv8r21vjb";
|
||||
sha256 = "0nqzqvx8nzflhb4kzvkdcv7kixb50vh6h21kpkd7pjxp942ndzql";
|
||||
};
|
||||
|
||||
outputs = [ "out" "lib" "dev" "devdoc" "man" "installedTests" ];
|
||||
@@ -137,6 +138,7 @@ stdenv.mkDerivation rec {
|
||||
freetype
|
||||
fontconfig
|
||||
pango
|
||||
tpm2-tss
|
||||
efivar
|
||||
] ++ stdenv.lib.optionals haveDell [
|
||||
libsmbios
|
||||
@@ -146,6 +148,10 @@ stdenv.mkDerivation rec {
|
||||
./fix-paths.patch
|
||||
./add-option-for-installation-sysconfdir.patch
|
||||
|
||||
# do not require which
|
||||
# https://github.com/fwupd/fwupd/pull/1568
|
||||
./no-which.patch
|
||||
|
||||
# installed tests are installed to different output
|
||||
# we also cannot have fwupd-tests.conf in $out/etc since it would form a cycle
|
||||
(substituteAll {
|
||||
@@ -195,6 +201,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
mesonFlags = [
|
||||
"-Dgtkdoc=true"
|
||||
"-Dplugin_dummy=true"
|
||||
"-Dudevdir=lib/udev"
|
||||
"-Dsystemdunitdir=lib/systemd/system"
|
||||
@@ -209,8 +216,8 @@ stdenv.mkDerivation rec {
|
||||
"-Dplugin_synaptics=false"
|
||||
] ++ stdenv.lib.optionals (!haveRedfish) [
|
||||
"-Dplugin_redfish=false"
|
||||
] ++ stdenv.lib.optionals (!haveFlashrom) [
|
||||
"-Dplugin_flashrom=false"
|
||||
] ++ stdenv.lib.optionals haveFlashrom [
|
||||
"-Dplugin_flashrom=true"
|
||||
];
|
||||
|
||||
# TODO: We need to be able to override the directory flags from meson setup hook
|
||||
@@ -231,6 +238,9 @@ stdenv.mkDerivation rec {
|
||||
# https://github.com/NixOS/nixpkgs/pull/67625#issuecomment-525788428
|
||||
PKG_CONFIG_POLKIT_GOBJECT_1_ACTIONDIR = "/run/current-system/sw/share/polkit-1/actions";
|
||||
|
||||
# cannot install to systemd prefix
|
||||
PKG_CONFIG_SYSTEMD_SYSTEMDSYSTEMPRESETDIR = "${placeholder "out"}/lib/systemd/system-preset";
|
||||
|
||||
# TODO: wrapGAppsHook wraps efi capsule even though it is not elf
|
||||
dontWrapGApps = true;
|
||||
# so we need to wrap the executables manually
|
||||
@@ -247,11 +257,15 @@ stdenv.mkDerivation rec {
|
||||
# /etc/fwupd/uefi.conf is created by the services.hardware.fwupd NixOS module
|
||||
passthru = {
|
||||
filesInstalledToEtc = [
|
||||
# "fwupd/daemon.conf" # already created by the module
|
||||
"fwupd/redfish.conf"
|
||||
"fwupd/remotes.d/dell-esrt.conf"
|
||||
"fwupd/remotes.d/lvfs-testing.conf"
|
||||
"fwupd/remotes.d/lvfs.conf"
|
||||
"fwupd/remotes.d/vendor.conf"
|
||||
"fwupd/remotes.d/vendor-directory.conf"
|
||||
"fwupd/thunderbolt.conf"
|
||||
# "fwupd/uefi.conf" # already created by the module
|
||||
"pki/fwupd/GPG-KEY-Hughski-Limited"
|
||||
"pki/fwupd/GPG-KEY-Linux-Foundation-Firmware"
|
||||
"pki/fwupd/GPG-KEY-Linux-Vendor-Firmware-Service"
|
||||
@@ -262,12 +276,12 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
tests = {
|
||||
installedTests = nixosTests.fwupd;
|
||||
installedTests = nixosTests.installed-tests.fwupd;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://fwupd.org/;
|
||||
homepage = "https://fwupd.org/";
|
||||
maintainers = with maintainers; [ jtojnar ];
|
||||
license = [ licenses.gpl2 ];
|
||||
platforms = platforms.linux;
|
||||
|
||||
@@ -6,14 +6,3 @@ index c7a430c0..e69de29b 100644
|
||||
-install_data('README.md',
|
||||
- install_dir : join_paths(localstatedir, 'lib', 'fwupd', 'builder')
|
||||
-)
|
||||
diff --git a/meson_post_install.sh b/meson_post_install.sh
|
||||
index 0cbb6f41..d757a81a 100755
|
||||
--- a/meson_post_install.sh
|
||||
+++ b/meson_post_install.sh
|
||||
@@ -11,6 +11,4 @@ LOCALSTATEDIR=$2
|
||||
echo 'Updating systemd deps'
|
||||
mkdir -p ${DESTDIR}${SYSTEMDUNITDIR}/system-update.target.wants
|
||||
ln -sf ../fwupd-offline-update.service ${DESTDIR}${SYSTEMDUNITDIR}/system-update.target.wants/fwupd-offline-update.service
|
||||
- echo 'Creating stateful directory'
|
||||
- mkdir -p ${DESTDIR}${LOCALSTATEDIR}/lib/fwupd
|
||||
#fi
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
--- a/plugins/uefi/efi/generate_binary.sh
|
||||
+++ b/plugins/uefi/efi/generate_binary.sh
|
||||
@@ -1,9 +1,9 @@
|
||||
#!/bin/sh
|
||||
output=$2
|
||||
-objcopy_cmd=$(which objcopy)
|
||||
-genpeimg_cmd=$(which genpeimg)
|
||||
+objcopy_cmd=$(command -v objcopy)
|
||||
+genpeimg_cmd=$(command -v genpeimg)
|
||||
|
||||
-$objcopy_cmd -j .text \
|
||||
+"$objcopy_cmd" -j .text \
|
||||
-j .sdata \
|
||||
-j .data \
|
||||
-j .dynamic \
|
||||
@@ -11,7 +11,7 @@
|
||||
-j .rel \
|
||||
-j .rela \
|
||||
-j .reloc \
|
||||
- $*
|
||||
+ "$@"
|
||||
|
||||
if [ -n "${genpeimg_cmd}" ]; then
|
||||
$genpeimg_cmd -d \
|
||||
@@ -20,5 +20,5 @@
|
||||
+n \
|
||||
-d \
|
||||
+s \
|
||||
- $output
|
||||
+ "$output"
|
||||
fi
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "raspberrypi-firmware";
|
||||
version = "1.20190819";
|
||||
version = "1.20190925";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "raspberrypi";
|
||||
repo = "firmware";
|
||||
rev = version;
|
||||
sha256 = "0qzpc092qg748i5s23xa1jk6qpga9wn0441r2awsz0apkysqx5fj";
|
||||
sha256 = "0xyj3f04dcfnl9hp8hakgwcb1msqh7934n0pclcmzy47xjkz7ris";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
|
||||
@@ -11,7 +11,7 @@ in {
|
||||
};
|
||||
|
||||
fuse_3 = mkFuse {
|
||||
version = "3.8.0";
|
||||
sha256Hash = "0zbj5l2pffs0q38lqfrnkafsgxf50mw5mqmh4m2jmqab1fxg5mip";
|
||||
version = "3.9.0";
|
||||
sha256Hash = "00yppzmv15jqjy3wq5ki9d49jl6bfxrlwr5sfz50ihr40d6dgx9p";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "google-authenticator-libpam";
|
||||
version = "1.06";
|
||||
version = "1.07";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/google/google-authenticator-libpam/archive/${version}.tar.gz";
|
||||
sha256 = "01kb1ppsc2fz1i3crdwi6ic8gyphjv89f5li6ypv3pp88v3kxw2j";
|
||||
sha256 = "01841dfmf6aw39idlv8y52b1nw9wx4skklzqhw1f519m0671ajhh";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
|
||||
homepage = https://sourceforge.net/projects/hdparm/;
|
||||
platforms = platforms.linux;
|
||||
license = licenses.bsd2;
|
||||
maintainers = [ maintainers.fuuzetsu ];
|
||||
maintainers = [ ];
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "health-check";
|
||||
version = "0.03.03";
|
||||
version = "0.03.04";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://kernel.ubuntu.com/~cking/tarballs/${pname}/${pname}-${version}.tar.gz";
|
||||
sha256 = "1bvgfzmvbqqhf1ailbwrsma6sbp5wcl6a35pb1n0y1n1p1hnqzph";
|
||||
sha256 = "0p85ai31n9hh6d4b79zzlczf9arsy7vmkjak1x3g9f5qj8fy4avp";
|
||||
};
|
||||
|
||||
buildInputs = [ json_c libbsd ];
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "hostapd";
|
||||
version = "2.8";
|
||||
version = "2.9";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://w1.fi/releases/${pname}-${version}.tar.gz";
|
||||
sha256 = "1c74rrazkhy4lr7pwgwa2igzca7h9l4brrs7672kiv7fwqmm57wj";
|
||||
sha256 = "1mrbvg4v7vm7mknf0n29mf88k3s4a4qj6r4d51wq8hmjj1m7s7c8";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
@@ -49,6 +49,7 @@ stdenv.mkDerivation rec {
|
||||
CONFIG_INTERNETWORKING=y
|
||||
CONFIG_HS20=y
|
||||
CONFIG_ACS=y
|
||||
CONFIG_GETRANDOM=y
|
||||
'' + stdenv.lib.optionalString (sqlite != null) ''
|
||||
CONFIG_SQLITE=y
|
||||
'';
|
||||
@@ -69,7 +70,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://hostap.epitest.fi;
|
||||
homepage = https://hostap.epitest.fi;
|
||||
repositories.git = git://w1.fi/hostap.git;
|
||||
description = "A user space daemon for access point and authentication servers";
|
||||
license = licenses.gpl2;
|
||||
|
||||
@@ -11,13 +11,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "intel-compute-runtime";
|
||||
version = "19.34.13959";
|
||||
version = "19.44.14658";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "intel";
|
||||
repo = "compute-runtime";
|
||||
rev = version;
|
||||
sha256 = "1m54w5p5pilrkmlmqgvgrsm3d5dqfdr4jai5siq5ccsqj4gnv1wz";
|
||||
sha256 = "1pl7yhmgzf7r2b8jyxzmwdc7772gd24izy2z2g4n5s205s125k7x";
|
||||
};
|
||||
|
||||
# Build script tries to write the ICD to /etc
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "iproute2";
|
||||
version = "5.3.0";
|
||||
version = "5.4.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/utils/net/${pname}/${pname}-${version}.tar.xz";
|
||||
sha256 = "0gvv269wjn4279hxr5zzwsk2c5qgswr47za3hm1x4frsk52iw76b";
|
||||
sha256 = "1bl6c3af7wbgi6nqjfm32fkhqh63iphkg2g11f1srifll1ham5zy";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{ stdenv, fetchurl, pkgconfig, libmnl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ipset-7.3";
|
||||
name = "ipset-7.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://ipset.netfilter.org/${name}.tar.bz2";
|
||||
sha256 = "0nm3vagr1pb5hr1028qrwx6v6s8bxf1m4qjx72vak42y032wfi26";
|
||||
sha256 = "110q996yrf74ckpkc5f4pn8j5bqq98f27fsak3ibgr3zwmv435sa";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.8.3";
|
||||
version = "1.8.4";
|
||||
pname = "iptables";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.netfilter.org/projects/${pname}/files/${pname}-${version}.tar.bz2";
|
||||
sha256 = "106xkkg5crsscjlinxvqvprva23fwwqfgrzl8m2nn841841sqg52";
|
||||
sha256 = "0z0mgs1ghvn3slc868mgbf2g26njgrzcy5ggyb5w4i55j1a3lflr";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig pruneLibtoolFiles flex bison ];
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "iw";
|
||||
version = "5.3";
|
||||
version = "5.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.kernel.org/pub/software/network/${pname}/${pname}-${version}.tar.xz";
|
||||
sha256 = "1m85ap8hwzfs7xf9r0v5d55ra4mhw45f6vclc7j6gsldpibyibq4";
|
||||
sha256 = "0prrgb11pjrr6dw71v7nx2bic127qzrjifvz183v3mw8f1kryim2";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
@@ -8,16 +8,17 @@
|
||||
, docutils
|
||||
, readline
|
||||
, python3Packages
|
||||
, systemd
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "iwd";
|
||||
version = "0.22";
|
||||
version = "1.2";
|
||||
|
||||
src = fetchgit {
|
||||
url = https://git.kernel.org/pub/scm/network/wireless/iwd.git;
|
||||
rev = version;
|
||||
sha256 = "0mjc08ayq2k7sinqanrlm97dn88dxkqkyk2vqqcx1nqjvwvbpbsp";
|
||||
sha256 = "10fwi31ym6hvn0vvh9fy0swzs3mfnpcwg95np4i5ksmw8k0kj0hf";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -31,6 +32,7 @@ stdenv.mkDerivation rec {
|
||||
ell
|
||||
python3Packages.python
|
||||
readline
|
||||
systemd
|
||||
];
|
||||
|
||||
pythonPath = [
|
||||
@@ -46,6 +48,7 @@ stdenv.mkDerivation rec {
|
||||
"--with-dbus-datadir=${placeholder "out"}/share/"
|
||||
"--with-systemd-modloaddir=${placeholder "out"}/etc/modules-load.d/" # maybe
|
||||
"--with-systemd-unitdir=${placeholder "out"}/lib/systemd/system/"
|
||||
"--with-systemd-networkdir=${placeholder "out"}/lib/systemd/network/"
|
||||
];
|
||||
|
||||
postUnpack = ''
|
||||
@@ -77,6 +80,6 @@ stdenv.mkDerivation rec {
|
||||
description = "Wireless daemon for Linux";
|
||||
license = licenses.lgpl21;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ dtzWill ];
|
||||
maintainers = with maintainers; [ dtzWill fpletz ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ let
|
||||
+ '' mkdir -p $out/include/config
|
||||
echo "${version}-default" > $out/include/config/kernel.release
|
||||
''
|
||||
# These oddly named file records teh `SHELL` passed, which causes bootstrap
|
||||
# These oddly named file records the `SHELL` passed, which causes bootstrap
|
||||
# tools run-time dependency.
|
||||
+ ''
|
||||
find "$out" -name '..install.cmd' -print0 | xargs -0 rm
|
||||
|
||||
@@ -363,6 +363,7 @@ let
|
||||
SECURITY_APPARMOR = yes;
|
||||
DEFAULT_SECURITY_APPARMOR = yes;
|
||||
|
||||
SECURITY_LOCKDOWN_LSM = whenAtLeast "5.4" yes;
|
||||
} // optionalAttrs (!stdenv.hostPlatform.isAarch32) {
|
||||
|
||||
# Detect buffer overflows on the stack
|
||||
@@ -716,6 +717,9 @@ let
|
||||
|
||||
# Enable AMD's ROCm GPU compute stack
|
||||
HSA_AMD = whenAtLeast "4.20" yes;
|
||||
ZONE_DEVICE = whenAtLeast "5.3" yes;
|
||||
HMM_MIRROR = whenAtLeast "5.3" yes;
|
||||
DRM_AMDGPU_USERPTR = whenAtLeast "5.3" yes;
|
||||
|
||||
PREEMPT = no;
|
||||
PREEMPT_VOLUNTARY = yes;
|
||||
@@ -739,6 +743,9 @@ let
|
||||
} // optionalAttrs (stdenv.hostPlatform.system == "aarch64-linux") {
|
||||
# Enables support for the Allwinner Display Engine 2.0
|
||||
SUN8I_DE2_CCU = whenAtLeast "4.13" yes;
|
||||
|
||||
# See comments on https://github.com/NixOS/nixpkgs/commit/9b67ea9106102d882f53d62890468071900b9647
|
||||
CRYPTO_AEGIS128_SIMD = no;
|
||||
};
|
||||
};
|
||||
in
|
||||
|
||||
@@ -136,10 +136,12 @@ while (<CONFIG>) {
|
||||
}
|
||||
close CONFIG;
|
||||
|
||||
my $ret = 0;
|
||||
foreach my $name (sort (keys %answers)) {
|
||||
my $f = $requiredAnswers{$name} && $ignoreConfigErrors ne "1"
|
||||
? sub { die "error: " . $_[0]; } : sub { warn "warning: " . $_[0]; };
|
||||
? sub { warn "error: " . $_[0]; $ret = -1; } : sub { warn "warning: " . $_[0]; };
|
||||
&$f("unused option: $name\n") unless defined $config{$name};
|
||||
&$f("option not set correctly: $name (wanted '$answers{$name}', got '$config{$name}')\n")
|
||||
if $config{$name} && $config{$name} ne $answers{$name};
|
||||
}
|
||||
exit $ret;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
with stdenv.lib;
|
||||
|
||||
buildLinux (args // rec {
|
||||
version = "4.14.151";
|
||||
version = "4.14.160";
|
||||
|
||||
# modDirVersion needs to be x.y.z, will automatically add .0 if needed
|
||||
modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg;
|
||||
@@ -13,6 +13,6 @@ buildLinux (args // rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
|
||||
sha256 = "1bizb1wwni5r4m5i0mrsqbc5qw73lwrfrdadm09vbfz9ir19qlgz";
|
||||
sha256 = "0b59xyr8if0qcbnwqa88y275g9rzhjbbp8589i8xxpmws6x2c0y6";
|
||||
};
|
||||
} // (args.argsOverride or {}))
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
with stdenv.lib;
|
||||
|
||||
buildLinux (args // rec {
|
||||
version = "4.19.81";
|
||||
version = "4.19.91";
|
||||
|
||||
# modDirVersion needs to be x.y.z, will automatically add .0 if needed
|
||||
modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg;
|
||||
@@ -13,6 +13,6 @@ buildLinux (args // rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
|
||||
sha256 = "17g2wiaa7l7mxi72k79drxij2zqk3nsj8wi17bl4nfvb1ypc2gi9";
|
||||
sha256 = "0irl5jlh5rrdfz5g28x4ifbillvspwd8fy4wi3qhmv9dw7gc60zl";
|
||||
};
|
||||
} // (args.argsOverride or {}))
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{ stdenv, buildPackages, fetchurl, perl, buildLinux, ... } @ args:
|
||||
|
||||
buildLinux (args // rec {
|
||||
version = "4.4.198";
|
||||
version = "4.4.207";
|
||||
extraMeta.branch = "4.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
|
||||
sha256 = "04pkryy1lc75c88vq5wcjjcxs43i7bb8hhplbfi6s204ipc0iy7c";
|
||||
sha256 = "024flajnl3l4yk8sgqdrfrl21js4vsjcv4ivmjblj4l9fl3hdjb6";
|
||||
};
|
||||
} // (args.argsOverride or {}))
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{ stdenv, buildPackages, fetchurl, perl, buildLinux, ... } @ args:
|
||||
|
||||
buildLinux (args // rec {
|
||||
version = "4.9.198";
|
||||
version = "4.9.207";
|
||||
extraMeta.branch = "4.9";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
|
||||
sha256 = "1b05jra6q695s1d4rzdr39i6m8xsi5xjrdn73sgwzvx0dgxfnwlm";
|
||||
sha256 = "090181vij95py22jhx7baaxabb78w0j5hsfsnzp6bv2vgdz671na";
|
||||
};
|
||||
} // (args.argsOverride or {}))
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
with stdenv.lib;
|
||||
|
||||
buildLinux (args // rec {
|
||||
version = "5.3.8";
|
||||
version = "5.3.18";
|
||||
|
||||
# modDirVersion needs to be x.y.z, will automatically add .0 if needed
|
||||
modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg;
|
||||
@@ -13,6 +13,6 @@ buildLinux (args // rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
|
||||
sha256 = "0jb6yya9yx4z52p5m32dqj0kgc6aaz9df8mvq0hzy40bqb3czwvq";
|
||||
sha256 = "133342nv9ddjad2rizmcbilg9rhg339sfqr9l77j4cgkqhblkw90";
|
||||
};
|
||||
} // (args.argsOverride or {}))
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
with stdenv.lib;
|
||||
|
||||
buildLinux (args // rec {
|
||||
version = "5.2.21";
|
||||
version = "5.4.6";
|
||||
|
||||
# modDirVersion needs to be x.y.z, will automatically add .0 if needed
|
||||
modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg;
|
||||
@@ -13,6 +13,6 @@ buildLinux (args // rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
|
||||
sha256 = "0f1mick15d0m7yhhhdwai03wmczvkm9cg38w2ivgmgysfpzy73ls";
|
||||
sha256 = "1j4916izy2nrzq7g6m5m365r60hhhx9rqcanjvaxv5x3vsy639gx";
|
||||
};
|
||||
} // (args.argsOverride or {}))
|
||||
@@ -1,11 +1,8 @@
|
||||
{ stdenv, lib, fetchsvn, linux
|
||||
, scripts ? fetchsvn {
|
||||
url = "https://www.fsfla.org/svn/fsfla/software/linux-libre/releases/branches/";
|
||||
|
||||
# Update this if linux_latest-libre fails to build.
|
||||
# $ curl https://www.fsfla.org/svn/fsfla/software/linux-libre/releases/branches/ | grep -Eo 'Revision [0-9]+'
|
||||
rev = "16794";
|
||||
sha256 = "1lpaka4hs7yrpnrzfybd6radjylwvw2p4aly68pypykqs2srvm7j";
|
||||
rev = "17145";
|
||||
sha256 = "0hyd7wp73w4555d42xcvk4x4nxrfckbzah2ckb4d2aqzxab87789";
|
||||
}
|
||||
, ...
|
||||
}:
|
||||
@@ -36,6 +33,8 @@ in linux.override {
|
||||
'';
|
||||
};
|
||||
|
||||
passthru.updateScript = ./update-libre.sh;
|
||||
|
||||
maintainers = [ lib.maintainers.qyliss ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{ stdenv, lib, buildPackages, fetchFromGitHub, perl, buildLinux, rpiVersion, ... } @ args:
|
||||
|
||||
let
|
||||
modDirVersion = "4.19.71";
|
||||
tag = "1.20190906";
|
||||
modDirVersion = "4.19.75";
|
||||
tag = "1.20190925";
|
||||
in
|
||||
lib.overrideDerivation (buildLinux (args // {
|
||||
version = "${modDirVersion}-${tag}";
|
||||
@@ -11,8 +11,8 @@ lib.overrideDerivation (buildLinux (args // {
|
||||
src = fetchFromGitHub {
|
||||
owner = "raspberrypi";
|
||||
repo = "linux";
|
||||
rev = "9532eb3c84d8d952ef28da3d135683ac01adc9b8";
|
||||
sha256 = "0168wz8kkdzbyha41iqlgn1z1kcy4smg89rgxkgadzq78y7fglpl";
|
||||
rev = "raspberrypi-kernel_${tag}-1";
|
||||
sha256 = "0l91kb4jjxg4fcp7d2aqm1fj34ns137rys93k907mdgnarcliafs";
|
||||
};
|
||||
|
||||
defconfig = {
|
||||
@@ -33,7 +33,7 @@ lib.overrideDerivation (buildLinux (args // {
|
||||
platforms = with lib.platforms; [ arm aarch64 ];
|
||||
hydraPlatforms = [ "aarch64-linux" ];
|
||||
};
|
||||
})) (oldAttrs: {
|
||||
} // (args.argsOverride or {}))) (oldAttrs: {
|
||||
postConfigure = ''
|
||||
# The v7 defconfig has this set to '-v7' which screws up our modDirVersion.
|
||||
sed -i $buildRoot/.config -e 's/^CONFIG_LOCALVERSION=.*/CONFIG_LOCALVERSION=""/'
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
with stdenv.lib;
|
||||
|
||||
buildLinux (args // rec {
|
||||
version = "5.4-rc6";
|
||||
extraMeta.branch = "5.4";
|
||||
version = "5.5-rc2";
|
||||
extraMeta.branch = "5.5";
|
||||
|
||||
# modDirVersion needs to be x.y.z, will always add .0
|
||||
modDirVersion = if (modDirVersionArg == null) then builtins.replaceStrings ["-"] [".0-"] version else modDirVersionArg;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://git.kernel.org/torvalds/t/linux-${version}.tar.gz";
|
||||
sha256 = "0ypazqr6z0n8fwaawxca0i56bwd4g4q2bw5qwayf0f4402m34xdh";
|
||||
sha256 = "1fs432ld5k1j68hflqdxby9mxa6a7xnw1m6z5lfb9341gjw078xc";
|
||||
};
|
||||
|
||||
# Should the testing kernels ever be built on Hydra?
|
||||
|
||||
@@ -179,7 +179,7 @@ let
|
||||
'' else "") + (if isModular then ''
|
||||
mkdir -p $dev
|
||||
cp vmlinux $dev/
|
||||
if [ -z "$dontStrip" ]; then
|
||||
if [ -z "''${dontStrip-}" ]; then
|
||||
installFlagsArray+=("INSTALL_MOD_STRIP=1")
|
||||
fi
|
||||
make modules_install $makeFlags "''${makeFlagsArray[@]}" \
|
||||
|
||||
@@ -6,6 +6,16 @@
|
||||
patch = ./bridge-stp-helper.patch;
|
||||
};
|
||||
|
||||
request_key_helper =
|
||||
{ name = "request-key-helper";
|
||||
patch = ./request-key-helper.patch;
|
||||
};
|
||||
|
||||
request_key_helper_updated =
|
||||
{ name = "request-key-helper-updated";
|
||||
patch = ./request-key-helper-updated.patch;
|
||||
};
|
||||
|
||||
p9_fixes =
|
||||
{ name = "p9-fixes";
|
||||
patch = ./p9-fixes.patch;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, kernel, elfutils, python, perl, newt, slang, asciidoc, xmlto, makeWrapper
|
||||
{ lib, stdenv, kernel, elfutils, python2, python3, perl, newt, slang, asciidoc, xmlto, makeWrapper
|
||||
, docbook_xsl, docbook_xml_dtd_45, libxslt, flex, bison, pkgconfig, libunwind, binutils
|
||||
, libiberty, audit, libbfd, libopcodes, openssl, systemtap, numactl
|
||||
, zlib, withGtk ? false, gtk2 ? null
|
||||
@@ -36,12 +36,13 @@ stdenv.mkDerivation {
|
||||
# perf refers both to newt and slang
|
||||
nativeBuildInputs = [
|
||||
asciidoc xmlto docbook_xsl docbook_xml_dtd_45 libxslt
|
||||
flex bison libiberty audit makeWrapper pkgconfig python perl
|
||||
flex bison libiberty audit makeWrapper pkgconfig
|
||||
];
|
||||
buildInputs = [
|
||||
elfutils newt slang libunwind libbfd zlib openssl systemtap.stapBuild numactl
|
||||
libopcodes
|
||||
] ++ stdenv.lib.optional withGtk gtk2;
|
||||
libopcodes python3 perl
|
||||
] ++ stdenv.lib.optional withGtk gtk2
|
||||
++ (if (versionAtLeast kernel.version "4.19") then [ python3 ] else [ python2 ]);
|
||||
|
||||
# Note: we don't add elfutils to buildInputs, since it provides a
|
||||
# bad `ld' and other stuff.
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
diff --git a/security/keys/request_key.c b/security/keys/request_key.c
|
||||
index 88172c163953..4da74a1eebb2 100644
|
||||
--- a/security/keys/request_key.c
|
||||
+++ b/security/keys/request_key.c
|
||||
@@ -161,7 +161,7 @@ static int call_sbin_request_key(struct key_construction *cons,
|
||||
|
||||
/* set up the argument list */
|
||||
i = 0;
|
||||
- argv[i++] = "/sbin/request-key";
|
||||
+ argv[i++] = "/run/current-system/sw/bin/request-key";
|
||||
argv[i++] = (char *) op;
|
||||
argv[i++] = key_str;
|
||||
argv[i++] = uid_str;
|
||||
@@ -0,0 +1,13 @@
|
||||
diff --git a/security/keys/request_key.c b/security/keys/request_key.c
|
||||
index 957b9e3e1492..5436a0d8b81d 100644
|
||||
--- a/security/keys/request_key.c
|
||||
+++ b/security/keys/request_key.c
|
||||
@@ -114,7 +114,7 @@ static int call_usermodehelper_keys(const char *path, char **argv, char **envp,
|
||||
*/
|
||||
static int call_sbin_request_key(struct key *authkey, void *aux)
|
||||
{
|
||||
- static char const request_key[] = "/sbin/request-key";
|
||||
+ static char const request_key[] = "/run/current-system/sw/bin/request-key";
|
||||
struct request_key_auth *rka = get_request_key_auth(authkey);
|
||||
const struct cred *cred = current_cred();
|
||||
key_serial_t prkey, sskey;
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
#! /usr/bin/env nix-shell
|
||||
#! nix-shell -i bash -p nix-prefetch-svn git curl
|
||||
set -euo pipefail
|
||||
|
||||
nixpkgs="$(git rev-parse --show-toplevel)"
|
||||
path="$nixpkgs/pkgs/os-specific/linux/kernel/linux-libre.nix"
|
||||
|
||||
old_rev="$(grep -o 'rev = ".*"' "$path" | awk -F'"' '{print $2}')"
|
||||
|
||||
svn_url=https://www.fsfla.org/svn/fsfla/software/linux-libre/releases/branches/
|
||||
rev="$(curl -s "$svn_url" | grep -Em 1 -o 'Revision [0-9]+' | awk '{print $2}')"
|
||||
|
||||
if [ "$old_rev" = "$rev" ]; then
|
||||
echo "No updates for linux-libre"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
sha256="$(QUIET=1 nix-prefetch-svn "$svn_url" "$rev" | tail -1)"
|
||||
|
||||
sed -i -e "s/rev = \".*\"/rev = \"$rev\"/" \
|
||||
-e "s/sha256 = \".*\"/sha256 = \"$sha256\"/" "$path"
|
||||
|
||||
if [ -n "$COMMIT" ]; then
|
||||
git commit -qm "linux_latest-libre: $old_rev -> $rev" "$path"
|
||||
echo "Updated linux_latest-libre $old_rev -> $rev"
|
||||
fi
|
||||
@@ -57,3 +57,6 @@ ls $NIXPKGS/pkgs/os-specific/linux/kernel | while read FILE; do
|
||||
|
||||
echo "Updated $OLDVER -> $V"
|
||||
done
|
||||
|
||||
# Update linux-libre
|
||||
COMMIT=1 $NIXPKGS/pkgs/os-specific/linux/kernel/update-libre.sh
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
diff --git a/request-key.c b/request-key.c
|
||||
index bf47c0a..105fee8 100644
|
||||
--- a/request-key.c
|
||||
+++ b/request-key.c
|
||||
@@ -313,7 +313,7 @@ static void scan_conf_dir(struct parameters *params, const char *confdir)
|
||||
while ((d = readdir(dir))) {
|
||||
if (d->d_name[0] == '.')
|
||||
continue;
|
||||
- if (d->d_type != DT_UNKNOWN && d->d_type != DT_REG)
|
||||
+ if (d->d_type != DT_UNKNOWN && d->d_type != DT_REG && d->d_type != DT_LNK)
|
||||
continue;
|
||||
l = strlen(d->d_name);
|
||||
if (l < 5)
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "keyutils";
|
||||
version = "1.6";
|
||||
version = "1.6.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://people.redhat.com/dhowells/keyutils/${pname}-${version}.tar.bz2";
|
||||
sha256 = "05bi5ja6f3h3kdi7p9dihlqlfrsmi1wh1r2bdgxc0180xh6g5bnk";
|
||||
url = "https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/${pname}-${version}.tar.gz";
|
||||
sha256 = "0mzmw8c7gqmqaxm3sa0xki8ycjla47xxhqg0yh17pl00d7ydqw9w";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@@ -15,6 +15,7 @@ stdenv.mkDerivation rec {
|
||||
url = "https://salsa.debian.org/debian/keyutils/raw/4cecffcb8e2a2aa4ef41777ed40e4e4bcfb2e5bf/debian/patches/Make-build-reproducible.patch";
|
||||
sha256 = "0wnvbjfrbk7rghd032z684l7vk7mhy3bd41zvhkrhgp3cd5id0bm";
|
||||
})
|
||||
./conf-symlink.patch
|
||||
];
|
||||
|
||||
BUILDDATE = "1970-01-01";
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{ stdenv, lib, fetchurl, autoreconfHook, pkgconfig
|
||||
, libxslt, xz, elf-header }:
|
||||
, libxslt, xz, elf-header
|
||||
, withStatic ? false }:
|
||||
|
||||
let
|
||||
systems = [ "/run/current-system/kernel-modules" "/run/booted-system/kernel-modules" "" ];
|
||||
@@ -21,10 +22,11 @@ in stdenv.mkDerivation rec {
|
||||
"--sysconfdir=/etc"
|
||||
"--with-xz"
|
||||
"--with-modulesdirs=${modulesDirs}"
|
||||
];
|
||||
] ++ lib.optional withStatic "--enable-static";
|
||||
|
||||
patches = [ ./module-dir.patch ]
|
||||
++ lib.optional stdenv.isDarwin ./darwin.patch;
|
||||
++ lib.optional stdenv.isDarwin ./darwin.patch
|
||||
++ lib.optional withStatic ./enable-static.patch;
|
||||
|
||||
postInstall = ''
|
||||
for prog in rmmod insmod lsmod modinfo modprobe depmod; do
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index ee72283..b42c42a 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -19,7 +19,6 @@ AM_SILENT_RULES([yes])
|
||||
LT_INIT([disable-static pic-only])
|
||||
DOLT
|
||||
|
||||
-AS_IF([test "x$enable_static" = "xyes"], [AC_MSG_ERROR([--enable-static is not supported by kmod])])
|
||||
AS_IF([test "x$enable_largefile" = "xno"], [AC_MSG_ERROR([--disable-largefile is not supported by kmod])])
|
||||
|
||||
#####################################################################
|
||||
@@ -4,7 +4,7 @@
|
||||
, systemd
|
||||
, libxkbcommon
|
||||
, libdrm
|
||||
, libGLU_combined
|
||||
, libGLU, libGL
|
||||
, pango
|
||||
, pixman
|
||||
, pkgconfig
|
||||
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
|
||||
systemd
|
||||
libxkbcommon
|
||||
libdrm
|
||||
libGLU_combined
|
||||
libGLU libGL
|
||||
pango
|
||||
pixman
|
||||
pkgconfig
|
||||
|
||||
@@ -33,6 +33,6 @@ stdenv.mkDerivation rec {
|
||||
homepage = http://lse.sourceforge.net/io/aio.html;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
license = stdenv.lib.licenses.lgpl21;
|
||||
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
||||
maintainers = with stdenv.lib.maintainers; [ ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libratbag";
|
||||
version = "0.10";
|
||||
version = "0.11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "libratbag";
|
||||
repo = "libratbag";
|
||||
rev = "v${version}";
|
||||
sha256 = "10hahpv2n48b5z35d2draka7cz1a9vw53rvwfmpp5dibwnmi81jb";
|
||||
sha256 = "1fcdcs4i83yic4rp3dsr7rq040f78lh8fb1ni1nnvp3y78fmibmi";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -40,7 +40,9 @@ stdenv.mkDerivation {
|
||||
--replace /usr/bin/udevadm ${systemd}/bin/udevadm
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
# https://github.com/NixOS/nixpkgs/pull/52597
|
||||
# gcc: error: ../../device_mapper/libdevice-mapper.a: No such file or directory
|
||||
enableParallelBuilding = false;
|
||||
|
||||
patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [
|
||||
(fetchpatch {
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mbpfan";
|
||||
version = "2.1.1";
|
||||
version = "2.2.1";
|
||||
src = fetchFromGitHub {
|
||||
owner = "dgraziotin";
|
||||
repo = "mbpfan";
|
||||
rev = "v${version}";
|
||||
sha256 = "0aijyxrqh01x0s80yr4cgxgd001iiqqph65pxvby7f0wz8lnxnqj";
|
||||
sha256 = "0gc9ypxi55vxs77nx8ihhh9zk7fr9v0m0zfm76q7x0bi6jz11mbr";
|
||||
};
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/etc
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mcelog";
|
||||
version = "164";
|
||||
version = "166";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "andikleen";
|
||||
repo = "mcelog";
|
||||
rev = "v${version}";
|
||||
sha256 = "1i0f0zvxlzkfp0bvghm1z8z8bb8a5x97h56bwd7fdkrm00ivfw2k";
|
||||
sha256 = "0q76lf5yrjq7b96ynj5dbf9ll94ymiab1b9106xpb4vbiwz0ia7w";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "microcode-intel";
|
||||
version = "20190918";
|
||||
version = "20191115";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "intel";
|
||||
repo = "Intel-Linux-Processor-Microcode-Data-Files";
|
||||
rev = "microcode-${version}";
|
||||
sha256 = "0v668mfqxn6wzyng68aqaffh75gc215k13n6d5g7zisivvv2bgdp";
|
||||
sha256 = "0pzi5qmrcrdf6nsds4bvyq1hnvv9d1dlrvqrbzcrpxk84rcjwq1x";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ iucode-tool libarchive ];
|
||||
@@ -28,5 +28,6 @@ stdenv.mkDerivation rec {
|
||||
description = "Microcode for Intel processors";
|
||||
license = licenses.unfreeRedistributableFirmware;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ andir ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -27,10 +27,10 @@ stdenv.mkDerivation rec {
|
||||
makeFlags = [
|
||||
"LIB=lib"
|
||||
"prefix=$(out)"
|
||||
"mandir=$(out)/share/man/man8"
|
||||
"man8dir=$(out)/share/man/man8"
|
||||
"man5dir=$(out)/share/man/man5"
|
||||
"man3dir=$(out)/share/man/man3"
|
||||
"unitdir=$(out)/lib/systemd/system"
|
||||
"SYSTEMDPATH=lib"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchurl, fetchpatch, lib, pkgconfig, utillinux, libcap, libtirpc, libevent
|
||||
, sqlite, kerberos, kmod, libuuid, keyutils, lvm2, systemd, coreutils, tcp_wrappers
|
||||
, python3, buildPackages
|
||||
, python3, buildPackages, nixosTests
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -39,6 +39,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
configureFlags =
|
||||
[ "--enable-gss"
|
||||
"--enable-svcgss"
|
||||
"--with-statedir=/var/lib/nfs"
|
||||
"--with-krb5=${lib.getLib kerberos}"
|
||||
"--with-systemd=${placeholder "out"}/etc/systemd/system"
|
||||
@@ -104,6 +105,12 @@ stdenv.mkDerivation rec {
|
||||
|
||||
disallowedReferences = [ (lib.getDev kerberos) ];
|
||||
|
||||
passthru.tests = {
|
||||
nfs3-simple = nixosTests.nfs3.simple;
|
||||
nfs4-simple = nixosTests.nfs4.simple;
|
||||
nfs4-kerberos = nixosTests.nfs4.kerberos;
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Linux user-space NFS utilities";
|
||||
|
||||
|
||||
@@ -1,31 +1,44 @@
|
||||
{ stdenv, fetchurl, pkgconfig, bison, flex
|
||||
{ stdenv, fetchurl, pkgconfig, bison, file, flex
|
||||
, asciidoc, libxslt, findXMLCatalogs, docbook_xml_dtd_45, docbook_xsl
|
||||
, libmnl, libnftnl, libpcap
|
||||
, gmp, jansson, readline
|
||||
, withDebugSymbols ? false
|
||||
, withPython ? false , python3
|
||||
, withXtables ? false , iptables
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.9.2";
|
||||
version = "0.9.3";
|
||||
pname = "nftables";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://netfilter.org/projects/nftables/files/${pname}-${version}.tar.bz2";
|
||||
sha256 = "1x8kalbggjq44j4916i6vyv1rb20dlh1dcsf9xvzqsry2j063djw";
|
||||
sha256 = "0y6vbqp6x8w165q65h4n9sba1406gaz0d4744gqszbm7w9f92swm";
|
||||
};
|
||||
|
||||
configureFlags = [
|
||||
"--disable-man-doc"
|
||||
"--with-json"
|
||||
] ++ optional withXtables "--with-xtables";
|
||||
|
||||
nativeBuildInputs = [ pkgconfig bison flex ];
|
||||
nativeBuildInputs = [
|
||||
pkgconfig bison file flex
|
||||
asciidoc docbook_xml_dtd_45 docbook_xsl findXMLCatalogs libxslt
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libmnl libnftnl libpcap
|
||||
gmp readline jansson
|
||||
] ++ optional withXtables iptables;
|
||||
gmp jansson readline
|
||||
] ++ optional withXtables iptables
|
||||
++ optional withPython python3;
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--with-json"
|
||||
] ++ optional (!withDebugSymbols) "--disable-debug"
|
||||
++ optional (!withPython) "--disable-python"
|
||||
++ optional withPython "--enable-python"
|
||||
++ optional withXtables "--with-xtables";
|
||||
|
||||
meta = {
|
||||
description = "The project that aims to replace the existing {ip,ip6,arp,eb}tables framework";
|
||||
|
||||
@@ -20,25 +20,25 @@ if ((!lib.versionOlder args.version "391")
|
||||
in
|
||||
rec {
|
||||
# Policy: use the highest stable version as the default (on our master).
|
||||
stable = if stdenv.hostPlatform.system == "x86_64-linux" then stable_43x else legacy_390;
|
||||
stable = if stdenv.hostPlatform.system == "x86_64-linux"
|
||||
then generic {
|
||||
version = "440.44";
|
||||
sha256_64bit = "057wq9p2vl87gy61f079b6d7clw2vhw3kq7rj411brhrnvr7shmd";
|
||||
settingsSha256 = "1hr1n78c92zksnnryrcz4b8kxvi6kz4yp801ks85hq4a3rryj4vg";
|
||||
persistencedSha256 = "050znx2scm7x3r7czsz77ddjh4bs18hdd3k3shwpi3zflkmnhnvj";
|
||||
}
|
||||
else legacy_390;
|
||||
|
||||
# No active beta right now
|
||||
beta = stable;
|
||||
|
||||
stable_43x = generic {
|
||||
version = "435.21";
|
||||
sha256_64bit = "0v3pq677ab01qdmwl5dawk8hn39qlwj05p8s9qzh9irmrlnc1izs";
|
||||
settingsSha256 = "1p13cz79kncwx5067a3d7dbz6a1ibp611zynp1qdxpa65hwp2pxa";
|
||||
persistencedSha256 = "0br8znxhz2ryzdj0j4jhqzvdgw9h899q8yz0p9429xz4wxkavgdr";
|
||||
};
|
||||
|
||||
# Last one supporting x86
|
||||
legacy_390 = generic {
|
||||
version = "390.129";
|
||||
sha256_32bit = "0dkgkp0zx40hf1fsq5xnvbschp7r3c1x1pnpdxna24pi4s62cm2q";
|
||||
sha256_64bit = "0h0jcckqpd63vaj95lvdgj2sbbn9y1ri1xx7r2snxfx0plhwz46n";
|
||||
settingsSha256 = "1w5nkxs7a40mq0qf97nhfazdqhfn1bvr54v50s8p0ggixb6vdm3l";
|
||||
persistencedSha256 = "02v76202qcnh8hvg4y9wmk9swdlv7z39ppfd1c850nlv158vn5nf";
|
||||
version = "390.132";
|
||||
sha256_32bit = "0xgjywzkmmm6a5gby67l2kx0gn7bcxksv4wam0sqym6l1s7v5bai";
|
||||
sha256_64bit = "0qgzsajrc3xkf2jjkwip3la0f2ixp45f76nmz5cphvzrb7k2slxn";
|
||||
settingsSha256 = "07nylqzhldq1gr40q7x5424p2aml3qqnvl2zvnpzc65x2way34v6";
|
||||
persistencedSha256 = "0vab5rj9b1n9yl9674q7i88w1i5p8nhvrwsayn7i1vh4wp3m840r";
|
||||
};
|
||||
|
||||
legacy_340 = generic {
|
||||
|
||||
@@ -50,6 +50,7 @@ stdenv.mkDerivation {
|
||||
buildInputs = [ jansson libXv libXrandr libXext libXxf86vm libvdpau nvidia_x11 gtk2 dbus ]
|
||||
++ lib.optionals withGtk3 [ gtk3 librsvg wrapGAppsHook ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
makeFlags = [ "NV_USE_BUNDLED_LIBJANSSON=0" ];
|
||||
installFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
|
||||
@@ -1,42 +1,56 @@
|
||||
{ stdenv, fetchurl, autoreconfHook, pkgconfig
|
||||
, dpdk, libconfig, libpcap, numactl, openssl
|
||||
, dpdk, libconfig, libpcap, numactl, openssl, zlib, libbsd, libelf, jansson
|
||||
}: let
|
||||
|
||||
dpdk_17_11 = dpdk.overrideAttrs (old: rec {
|
||||
version = "17.11.6";
|
||||
dpdk_18_11 = dpdk.overrideAttrs (old: rec {
|
||||
version = "18.11.5";
|
||||
src = fetchurl {
|
||||
url = "https://fast.dpdk.org/rel/dpdk-${version}.tar.xz";
|
||||
sha256 = "0g4l6yjcn17n18c7q1pxkmnj4fg2kiv0krz7n2vjjsb8s6gmbps2";
|
||||
sha256 = "0000000000000000000000000000000000000000000000000000";
|
||||
};
|
||||
});
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "odp-dpdk";
|
||||
version = "1.19.0.0_DPDK_17.11";
|
||||
version = "1.22.0.0_DPDK_18.11";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://git.linaro.org/lng/odp-dpdk.git/snapshot/${pname}-${version}.tar.gz";
|
||||
sha256 = "05bwjaxl9hqc6fbkp95nniq11g3kvzmlxw0bq55i7p2v35nv38px";
|
||||
sha256 = "1m8xhmfjqlj2gkkigq5ka3yh0xgzrcpfpaxp1pnh8d1g99094vbx";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
||||
buildInputs = [ dpdk_17_11 libconfig libpcap numactl openssl ];
|
||||
|
||||
RTE_SDK = "${dpdk_17_11}/share/dpdk";
|
||||
RTE_TARGET = "x86_64-native-linuxapp-gcc";
|
||||
|
||||
dontDisableStatic = true;
|
||||
|
||||
configureFlags = [
|
||||
"--disable-shared"
|
||||
"--with-dpdk-path=${dpdk_17_11}"
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkgconfig
|
||||
];
|
||||
buildInputs = [
|
||||
dpdk_18_11
|
||||
libconfig
|
||||
libpcap
|
||||
numactl
|
||||
openssl
|
||||
zlib
|
||||
libbsd
|
||||
libelf
|
||||
jansson
|
||||
];
|
||||
|
||||
# for some reason, /build/odp-dpdk-1.22.0.0_DPDK_18.11/lib/.libs ends up in all binaries,
|
||||
# while it should be $out/lib instead.
|
||||
# prepend rpath with the proper location, the /build will get removed during rpath shrinking
|
||||
preFixup = ''
|
||||
for prog in $out/bin/*; do
|
||||
patchelf --set-rpath $out/lib:`patchelf --print-rpath $prog` $prog
|
||||
done
|
||||
'';
|
||||
|
||||
# binaries will segfault otherwise
|
||||
dontStrip = true;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Open Data Plane optimized for DPDK";
|
||||
homepage = https://www.opendataplane.org;
|
||||
license = licenses.bsd3;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.abuibrahim ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "open-iscsi";
|
||||
version = "2.0.878";
|
||||
version = "2.1.0";
|
||||
|
||||
nativeBuildInputs = [ autoconf automake gettext libtool perl pkgconf ];
|
||||
buildInputs = [ kmod openisns.lib openssl systemd utillinux ];
|
||||
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
|
||||
owner = "open-iscsi";
|
||||
repo = "open-iscsi";
|
||||
rev = version;
|
||||
sha256 = "0hkprlni0z1zdkrmhd897knyfws0l95bz67fgp0vvf63ag08b5ly";
|
||||
sha256 = "0z7rnbfa48j3r4ij7335xgjfb835gnnp10v7q6lvwg7bq6v5xvih";
|
||||
};
|
||||
|
||||
DESTDIR = "$(out)";
|
||||
@@ -30,6 +30,10 @@ stdenv.mkDerivation rec {
|
||||
$out/sbin/iscsistart -v
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
sed -i "s|/sbin/iscsiadm|$out/bin/iscsiadm|" $out/bin/iscsi_fw_login
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A high performance, transport independent, multi-platform implementation of RFC3720";
|
||||
license = licenses.gpl2;
|
||||
|
||||
@@ -14,7 +14,7 @@ stdenv.mkDerivation (common // {
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
buildFlags = [
|
||||
"KERNELDIR=${kernel.dev}/lib/modules/${kernel.version}/build"
|
||||
"KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
|
||||
@@ -1,24 +1,25 @@
|
||||
{ stdenv, fetchurl, makeWrapper, pkgconfig, utillinux, which
|
||||
, procps, libcap_ng, openssl, python27 , perl
|
||||
, procps, libcap_ng, openssl, python3 , perl
|
||||
, kernel ? null }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
let
|
||||
_kernel = kernel;
|
||||
pythonEnv = python3.withPackages (ps: with ps; [ six ]);
|
||||
in stdenv.mkDerivation rec {
|
||||
version = "2.5.4";
|
||||
version = "2.12.0";
|
||||
pname = "openvswitch";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://openvswitch.org/releases/${pname}-${version}.tar.gz";
|
||||
sha256 = "1lji87wg953lqcdf02f1zv2m54vhd2x9jd03bb91lnlb4qlhifiv";
|
||||
url = "https://www.openvswitch.org/releases/${pname}-${version}.tar.gz";
|
||||
sha256 = "1y78ix5inhhcvicbvyy2ij38am1215nr55vydhab3d4065q45z8k";
|
||||
};
|
||||
|
||||
kernel = optional (_kernel != null) _kernel.dev;
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ makeWrapper utillinux openssl libcap_ng python27
|
||||
buildInputs = [ makeWrapper utillinux openssl libcap_ng pythonEnv
|
||||
perl procps which ];
|
||||
|
||||
configureFlags = [
|
||||
@@ -36,27 +37,13 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
postBuild = ''
|
||||
# fix tests
|
||||
substituteInPlace xenserver/opt_xensource_libexec_interface-reconfigure --replace '/usr/bin/env python' '${python27.interpreter}'
|
||||
substituteInPlace vtep/ovs-vtep --replace '/usr/bin/env python' '${python27.interpreter}'
|
||||
substituteInPlace xenserver/opt_xensource_libexec_interface-reconfigure --replace '/usr/bin/env python' '${pythonEnv.interpreter}'
|
||||
substituteInPlace vtep/ovs-vtep --replace '/usr/bin/env python' '${pythonEnv.interpreter}'
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
doCheck = false; # bash-completion test fails with "compgen: command not found"
|
||||
|
||||
postInstall = ''
|
||||
cp debian/ovs-monitor-ipsec $out/share/openvswitch/scripts
|
||||
makeWrapper \
|
||||
$out/share/openvswitch/scripts/ovs-monitor-ipsec \
|
||||
$out/bin/ovs-monitor-ipsec \
|
||||
--prefix PYTHONPATH : "$out/share/openvswitch/python"
|
||||
substituteInPlace $out/share/openvswitch/scripts/ovs-monitor-ipsec \
|
||||
--replace "UnixctlServer.create(None)" "UnixctlServer.create(os.environ['UNIXCTLPATH'])"
|
||||
substituteInPlace $out/share/openvswitch/scripts/ovs-monitor-ipsec \
|
||||
--replace "self.psk_file" "root_prefix + self.psk_file"
|
||||
substituteInPlace $out/share/openvswitch/scripts/ovs-monitor-ipsec \
|
||||
--replace "self.cert_dir" "root_prefix + self.cert_dir"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
platforms = platforms.linux;
|
||||
description = "A multilayer virtual switch";
|
||||
@@ -71,7 +58,8 @@ in stdenv.mkDerivation rec {
|
||||
support distribution across multiple physical servers similar
|
||||
to VMware's vNetwork distributed vswitch or Cisco's Nexus 1000V.
|
||||
'';
|
||||
homepage = http://openvswitch.org/;
|
||||
homepage = https://www.openvswitch.org/;
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ netixx kmcopper ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
{ stdenv, fetchurl, makeWrapper, pkgconfig, utillinux, which
|
||||
, procps, libcap_ng, openssl, python2, iproute , perl
|
||||
, automake, autoconf, libtool, kernel ? null }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
let
|
||||
_kernel = kernel;
|
||||
in stdenv.mkDerivation rec {
|
||||
version = "2.5.9";
|
||||
pname = "openvswitch";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.openvswitch.org/releases/${pname}-${version}.tar.gz";
|
||||
sha256 = "0iv0ncwl6s4qyyb655yj5xvqrjr1zbymmab96q259wa09xnyw7b7";
|
||||
};
|
||||
|
||||
patches = [ ./patches/lts-ssl.patch ];
|
||||
|
||||
kernel = optional (_kernel != null) _kernel.dev;
|
||||
|
||||
nativeBuildInputs = [ autoconf libtool automake pkgconfig ];
|
||||
buildInputs = [ makeWrapper utillinux openssl libcap_ng python2
|
||||
perl procps which ];
|
||||
|
||||
preConfigure = "./boot.sh";
|
||||
|
||||
configureFlags = [
|
||||
"--localstatedir=/var"
|
||||
"--sharedstatedir=/var"
|
||||
"--sbindir=$(out)/bin"
|
||||
] ++ (optionals (_kernel != null) ["--with-linux"]);
|
||||
|
||||
# Leave /var out of this!
|
||||
installFlags = [
|
||||
"LOGDIR=$(TMPDIR)/dummy"
|
||||
"RUNDIR=$(TMPDIR)/dummy"
|
||||
"PKIDIR=$(TMPDIR)/dummy"
|
||||
];
|
||||
|
||||
postBuild = ''
|
||||
# fix tests
|
||||
substituteInPlace xenserver/opt_xensource_libexec_interface-reconfigure --replace '/usr/bin/env python' '${python2.interpreter}'
|
||||
substituteInPlace vtep/ovs-vtep --replace '/usr/bin/env python' '${python2.interpreter}'
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
doCheck = false; # bash-completion test fails with "compgen: command not found"
|
||||
|
||||
postInstall = ''
|
||||
cp debian/ovs-monitor-ipsec $out/share/openvswitch/scripts
|
||||
makeWrapper \
|
||||
$out/share/openvswitch/scripts/ovs-monitor-ipsec \
|
||||
$out/bin/ovs-monitor-ipsec \
|
||||
--prefix PYTHONPATH : "$out/share/openvswitch/python"
|
||||
substituteInPlace $out/share/openvswitch/scripts/ovs-monitor-ipsec \
|
||||
--replace "UnixctlServer.create(None)" "UnixctlServer.create(os.environ['UNIXCTLPATH'])"
|
||||
substituteInPlace $out/share/openvswitch/scripts/ovs-monitor-ipsec \
|
||||
--replace "self.psk_file" "root_prefix + self.psk_file"
|
||||
substituteInPlace $out/share/openvswitch/scripts/ovs-monitor-ipsec \
|
||||
--replace "self.cert_dir" "root_prefix + self.cert_dir"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
platforms = platforms.linux;
|
||||
description = "A multilayer virtual switch";
|
||||
longDescription =
|
||||
''
|
||||
Open vSwitch is a production quality, multilayer virtual switch
|
||||
licensed under the open source Apache 2.0 license. It is
|
||||
designed to enable massive network automation through
|
||||
programmatic extension, while still supporting standard
|
||||
management interfaces and protocols (e.g. NetFlow, sFlow, SPAN,
|
||||
RSPAN, CLI, LACP, 802.1ag). In addition, it is designed to
|
||||
support distribution across multiple physical servers similar
|
||||
to VMware's vNetwork distributed vswitch or Cisco's Nexus 1000V.
|
||||
'';
|
||||
homepage = https://www.openvswitch.org/;
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ netixx kmcopper ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,274 @@
|
||||
diff --git a/build-aux/automake.mk b/build-aux/automake.mk
|
||||
new file mode 100644
|
||||
index 000000000..5d2657fd6
|
||||
--- /dev/null
|
||||
+++ b/build-aux/automake.mk
|
||||
@@ -0,0 +1,2 @@
|
||||
+EXTRA_DIST += \
|
||||
+ build-aux/generate-dhparams-c
|
||||
diff --git a/build-aux/generate-dhparams-c b/build-aux/generate-dhparams-c
|
||||
new file mode 100755
|
||||
index 000000000..bcd25e2d8
|
||||
--- /dev/null
|
||||
+++ b/build-aux/generate-dhparams-c
|
||||
@@ -0,0 +1,33 @@
|
||||
+#! /bin/sh -e
|
||||
+
|
||||
+cat <<'EOF'
|
||||
+/* Generated automatically; do not modify! -*- buffer-read-only: t -*-
|
||||
+ *
|
||||
+ * If you do need to regenerate this file, run "make generate-dhparams-c". */
|
||||
+
|
||||
+#include <config.h>
|
||||
+#include "lib/dhparams.h"
|
||||
+#include "lib/util.h"
|
||||
+
|
||||
+static int
|
||||
+my_DH_set0_pqg(DH *dh, BIGNUM *p, const BIGNUM **q OVS_UNUSED, BIGNUM *g)
|
||||
+{
|
||||
+ ovs_assert(q == NULL);
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER)
|
||||
+ dh->p = p;
|
||||
+ dh->g = g;
|
||||
+ return 1;
|
||||
+#else
|
||||
+ return DH_set0_pqg(dh, p, NULL, g);
|
||||
+#endif
|
||||
+}
|
||||
+EOF
|
||||
+(openssl dhparam -C -in lib/dh1024.pem -noout &&
|
||||
+openssl dhparam -C -in lib/dh2048.pem -noout &&
|
||||
+openssl dhparam -C -in lib/dh4096.pem -noout) | sed '
|
||||
+ s/^static DH/DH/
|
||||
+ s/\(get_dh[0-9]*\)()/\1(void)/
|
||||
+ s/\(DH_set0_pqg\)/my_\1/
|
||||
+ s/[ ]*$//
|
||||
+ s/ / /g
|
||||
+'
|
||||
diff --git a/lib/automake.mk b/lib/automake.mk
|
||||
index 5387d519a..804a8b7d7 100644
|
||||
--- a/lib/automake.mk
|
||||
+++ b/lib/automake.mk
|
||||
@@ -399,15 +399,16 @@ lib_libopenvswitch_la_SOURCES += \
|
||||
lib/route-table-bsd.c
|
||||
endif
|
||||
|
||||
+.PHONY: generate-dhparams-c
|
||||
if HAVE_OPENSSL
|
||||
-lib_libopenvswitch_la_SOURCES += lib/stream-ssl.c
|
||||
-nodist_lib_libopenvswitch_la_SOURCES += lib/dhparams.c
|
||||
-lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
|
||||
- $(AM_V_GEN)(echo '#include "lib/dhparams.h"' && \
|
||||
- openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
|
||||
- openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
|
||||
- openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
|
||||
- | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp && \
|
||||
+lib_libopenvswitch_la_SOURCES += lib/stream-ssl.c lib/dhparams.c
|
||||
+
|
||||
+# Manually regenerates lib/dhparams.c. Not normally necessary since
|
||||
+# lib/dhparams.c is part of the repository and doesn't normally need
|
||||
+# updates.
|
||||
+generate-dhparams-c:
|
||||
+ $(AM_V_GEN)cd $(srcdir) && \
|
||||
+ build-aux/generate-dhparams-c > lib/dhparams.c.tmp && \
|
||||
mv lib/dhparams.c.tmp lib/dhparams.c
|
||||
else
|
||||
lib_libopenvswitch_la_SOURCES += lib/stream-nossl.c
|
||||
diff --git a/lib/dhparams.c b/lib/dhparams.c
|
||||
new file mode 100644
|
||||
index 000000000..4e42efad2
|
||||
--- /dev/null
|
||||
+++ b/lib/dhparams.c
|
||||
@@ -0,0 +1,192 @@
|
||||
+/* Generated automatically; do not modify! -*- buffer-read-only: t -*-
|
||||
+ *
|
||||
+ * If you do need to regenerate this file, run "make generate-dhparams-c". */
|
||||
+
|
||||
+#include <config.h>
|
||||
+#include "lib/dhparams.h"
|
||||
+#include "lib/util.h"
|
||||
+
|
||||
+static int
|
||||
+my_DH_set0_pqg(DH *dh, BIGNUM *p, const BIGNUM **q OVS_UNUSED, BIGNUM *g)
|
||||
+{
|
||||
+ ovs_assert(q == NULL);
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER)
|
||||
+ dh->p = p;
|
||||
+ dh->g = g;
|
||||
+ return 1;
|
||||
+#else
|
||||
+ return DH_set0_pqg(dh, p, NULL, g);
|
||||
+#endif
|
||||
+}
|
||||
+#ifndef HEADER_DH_H
|
||||
+# include <openssl/dh.h>
|
||||
+#endif
|
||||
+
|
||||
+DH *get_dh1024(void)
|
||||
+{
|
||||
+ static unsigned char dhp_1024[] = {
|
||||
+ 0xF4, 0x88, 0xFD, 0x58, 0x4E, 0x49, 0xDB, 0xCD, 0x20, 0xB4,
|
||||
+ 0x9D, 0xE4, 0x91, 0x07, 0x36, 0x6B, 0x33, 0x6C, 0x38, 0x0D,
|
||||
+ 0x45, 0x1D, 0x0F, 0x7C, 0x88, 0xB3, 0x1C, 0x7C, 0x5B, 0x2D,
|
||||
+ 0x8E, 0xF6, 0xF3, 0xC9, 0x23, 0xC0, 0x43, 0xF0, 0xA5, 0x5B,
|
||||
+ 0x18, 0x8D, 0x8E, 0xBB, 0x55, 0x8C, 0xB8, 0x5D, 0x38, 0xD3,
|
||||
+ 0x34, 0xFD, 0x7C, 0x17, 0x57, 0x43, 0xA3, 0x1D, 0x18, 0x6C,
|
||||
+ 0xDE, 0x33, 0x21, 0x2C, 0xB5, 0x2A, 0xFF, 0x3C, 0xE1, 0xB1,
|
||||
+ 0x29, 0x40, 0x18, 0x11, 0x8D, 0x7C, 0x84, 0xA7, 0x0A, 0x72,
|
||||
+ 0xD6, 0x86, 0xC4, 0x03, 0x19, 0xC8, 0x07, 0x29, 0x7A, 0xCA,
|
||||
+ 0x95, 0x0C, 0xD9, 0x96, 0x9F, 0xAB, 0xD0, 0x0A, 0x50, 0x9B,
|
||||
+ 0x02, 0x46, 0xD3, 0x08, 0x3D, 0x66, 0xA4, 0x5D, 0x41, 0x9F,
|
||||
+ 0x9C, 0x7C, 0xBD, 0x89, 0x4B, 0x22, 0x19, 0x26, 0xBA, 0xAB,
|
||||
+ 0xA2, 0x5E, 0xC3, 0x55, 0xE9, 0x2F, 0x78, 0xC7
|
||||
+ };
|
||||
+ static unsigned char dhg_1024[] = {
|
||||
+ 0x02
|
||||
+ };
|
||||
+ DH *dh = DH_new();
|
||||
+ BIGNUM *dhp_bn, *dhg_bn;
|
||||
+
|
||||
+ if (dh == NULL)
|
||||
+ return NULL;
|
||||
+ dhp_bn = BN_bin2bn(dhp_1024, sizeof (dhp_1024), NULL);
|
||||
+ dhg_bn = BN_bin2bn(dhg_1024, sizeof (dhg_1024), NULL);
|
||||
+ if (dhp_bn == NULL || dhg_bn == NULL
|
||||
+ || !my_DH_set0_pqg(dh, dhp_bn, NULL, dhg_bn)) {
|
||||
+ DH_free(dh);
|
||||
+ BN_free(dhp_bn);
|
||||
+ BN_free(dhg_bn);
|
||||
+ return NULL;
|
||||
+ }
|
||||
+ return dh;
|
||||
+}
|
||||
+#ifndef HEADER_DH_H
|
||||
+# include <openssl/dh.h>
|
||||
+#endif
|
||||
+
|
||||
+DH *get_dh2048(void)
|
||||
+{
|
||||
+ static unsigned char dhp_2048[] = {
|
||||
+ 0xF6, 0x42, 0x57, 0xB7, 0x08, 0x7F, 0x08, 0x17, 0x72, 0xA2,
|
||||
+ 0xBA, 0xD6, 0xA9, 0x42, 0xF3, 0x05, 0xE8, 0xF9, 0x53, 0x11,
|
||||
+ 0x39, 0x4F, 0xB6, 0xF1, 0x6E, 0xB9, 0x4B, 0x38, 0x20, 0xDA,
|
||||
+ 0x01, 0xA7, 0x56, 0xA3, 0x14, 0xE9, 0x8F, 0x40, 0x55, 0xF3,
|
||||
+ 0xD0, 0x07, 0xC6, 0xCB, 0x43, 0xA9, 0x94, 0xAD, 0xF7, 0x4C,
|
||||
+ 0x64, 0x86, 0x49, 0xF8, 0x0C, 0x83, 0xBD, 0x65, 0xE9, 0x17,
|
||||
+ 0xD4, 0xA1, 0xD3, 0x50, 0xF8, 0xF5, 0x59, 0x5F, 0xDC, 0x76,
|
||||
+ 0x52, 0x4F, 0x3D, 0x3D, 0x8D, 0xDB, 0xCE, 0x99, 0xE1, 0x57,
|
||||
+ 0x92, 0x59, 0xCD, 0xFD, 0xB8, 0xAE, 0x74, 0x4F, 0xC5, 0xFC,
|
||||
+ 0x76, 0xBC, 0x83, 0xC5, 0x47, 0x30, 0x61, 0xCE, 0x7C, 0xC9,
|
||||
+ 0x66, 0xFF, 0x15, 0xF9, 0xBB, 0xFD, 0x91, 0x5E, 0xC7, 0x01,
|
||||
+ 0xAA, 0xD3, 0x5B, 0x9E, 0x8D, 0xA0, 0xA5, 0x72, 0x3A, 0xD4,
|
||||
+ 0x1A, 0xF0, 0xBF, 0x46, 0x00, 0x58, 0x2B, 0xE5, 0xF4, 0x88,
|
||||
+ 0xFD, 0x58, 0x4E, 0x49, 0xDB, 0xCD, 0x20, 0xB4, 0x9D, 0xE4,
|
||||
+ 0x91, 0x07, 0x36, 0x6B, 0x33, 0x6C, 0x38, 0x0D, 0x45, 0x1D,
|
||||
+ 0x0F, 0x7C, 0x88, 0xB3, 0x1C, 0x7C, 0x5B, 0x2D, 0x8E, 0xF6,
|
||||
+ 0xF3, 0xC9, 0x23, 0xC0, 0x43, 0xF0, 0xA5, 0x5B, 0x18, 0x8D,
|
||||
+ 0x8E, 0xBB, 0x55, 0x8C, 0xB8, 0x5D, 0x38, 0xD3, 0x34, 0xFD,
|
||||
+ 0x7C, 0x17, 0x57, 0x43, 0xA3, 0x1D, 0x18, 0x6C, 0xDE, 0x33,
|
||||
+ 0x21, 0x2C, 0xB5, 0x2A, 0xFF, 0x3C, 0xE1, 0xB1, 0x29, 0x40,
|
||||
+ 0x18, 0x11, 0x8D, 0x7C, 0x84, 0xA7, 0x0A, 0x72, 0xD6, 0x86,
|
||||
+ 0xC4, 0x03, 0x19, 0xC8, 0x07, 0x29, 0x7A, 0xCA, 0x95, 0x0C,
|
||||
+ 0xD9, 0x96, 0x9F, 0xAB, 0xD0, 0x0A, 0x50, 0x9B, 0x02, 0x46,
|
||||
+ 0xD3, 0x08, 0x3D, 0x66, 0xA4, 0x5D, 0x41, 0x9F, 0x9C, 0x7C,
|
||||
+ 0xBD, 0x89, 0x4B, 0x22, 0x19, 0x26, 0xBA, 0xAB, 0xA2, 0x5E,
|
||||
+ 0xC3, 0x55, 0xE9, 0x32, 0x0B, 0x3B
|
||||
+ };
|
||||
+ static unsigned char dhg_2048[] = {
|
||||
+ 0x02
|
||||
+ };
|
||||
+ DH *dh = DH_new();
|
||||
+ BIGNUM *dhp_bn, *dhg_bn;
|
||||
+
|
||||
+ if (dh == NULL)
|
||||
+ return NULL;
|
||||
+ dhp_bn = BN_bin2bn(dhp_2048, sizeof (dhp_2048), NULL);
|
||||
+ dhg_bn = BN_bin2bn(dhg_2048, sizeof (dhg_2048), NULL);
|
||||
+ if (dhp_bn == NULL || dhg_bn == NULL
|
||||
+ || !my_DH_set0_pqg(dh, dhp_bn, NULL, dhg_bn)) {
|
||||
+ DH_free(dh);
|
||||
+ BN_free(dhp_bn);
|
||||
+ BN_free(dhg_bn);
|
||||
+ return NULL;
|
||||
+ }
|
||||
+ return dh;
|
||||
+}
|
||||
+#ifndef HEADER_DH_H
|
||||
+# include <openssl/dh.h>
|
||||
+#endif
|
||||
+
|
||||
+DH *get_dh4096(void)
|
||||
+{
|
||||
+ static unsigned char dhp_4096[] = {
|
||||
+ 0xFA, 0x14, 0x72, 0x52, 0xC1, 0x4D, 0xE1, 0x5A, 0x49, 0xD4,
|
||||
+ 0xEF, 0x09, 0x2D, 0xC0, 0xA8, 0xFD, 0x55, 0xAB, 0xD7, 0xD9,
|
||||
+ 0x37, 0x04, 0x28, 0x09, 0xE2, 0xE9, 0x3E, 0x77, 0xE2, 0xA1,
|
||||
+ 0x7A, 0x18, 0xDD, 0x46, 0xA3, 0x43, 0x37, 0x23, 0x90, 0x97,
|
||||
+ 0xF3, 0x0E, 0xC9, 0x03, 0x50, 0x7D, 0x65, 0xCF, 0x78, 0x62,
|
||||
+ 0xA6, 0x3A, 0x62, 0x22, 0x83, 0xA1, 0x2F, 0xFE, 0x79, 0xBA,
|
||||
+ 0x35, 0xFF, 0x59, 0xD8, 0x1D, 0x61, 0xDD, 0x1E, 0x21, 0x13,
|
||||
+ 0x17, 0xFE, 0xCD, 0x38, 0x87, 0x9E, 0xF5, 0x4F, 0x79, 0x10,
|
||||
+ 0x61, 0x8D, 0xD4, 0x22, 0xF3, 0x5A, 0xED, 0x5D, 0xEA, 0x21,
|
||||
+ 0xE9, 0x33, 0x6B, 0x48, 0x12, 0x0A, 0x20, 0x77, 0xD4, 0x25,
|
||||
+ 0x60, 0x61, 0xDE, 0xF6, 0xB4, 0x4F, 0x1C, 0x63, 0x40, 0x8B,
|
||||
+ 0x3A, 0x21, 0x93, 0x8B, 0x79, 0x53, 0x51, 0x2C, 0xCA, 0xB3,
|
||||
+ 0x7B, 0x29, 0x56, 0xA8, 0xC7, 0xF8, 0xF4, 0x7B, 0x08, 0x5E,
|
||||
+ 0xA6, 0xDC, 0xA2, 0x45, 0x12, 0x56, 0xDD, 0x41, 0x92, 0xF2,
|
||||
+ 0xDD, 0x5B, 0x8F, 0x23, 0xF0, 0xF3, 0xEF, 0xE4, 0x3B, 0x0A,
|
||||
+ 0x44, 0xDD, 0xED, 0x96, 0x84, 0xF1, 0xA8, 0x32, 0x46, 0xA3,
|
||||
+ 0xDB, 0x4A, 0xBE, 0x3D, 0x45, 0xBA, 0x4E, 0xF8, 0x03, 0xE5,
|
||||
+ 0xDD, 0x6B, 0x59, 0x0D, 0x84, 0x1E, 0xCA, 0x16, 0x5A, 0x8C,
|
||||
+ 0xC8, 0xDF, 0x7C, 0x54, 0x44, 0xC4, 0x27, 0xA7, 0x3B, 0x2A,
|
||||
+ 0x97, 0xCE, 0xA3, 0x7D, 0x26, 0x9C, 0xAD, 0xF4, 0xC2, 0xAC,
|
||||
+ 0x37, 0x4B, 0xC3, 0xAD, 0x68, 0x84, 0x7F, 0x99, 0xA6, 0x17,
|
||||
+ 0xEF, 0x6B, 0x46, 0x3A, 0x7A, 0x36, 0x7A, 0x11, 0x43, 0x92,
|
||||
+ 0xAD, 0xE9, 0x9C, 0xFB, 0x44, 0x6C, 0x3D, 0x82, 0x49, 0xCC,
|
||||
+ 0x5C, 0x6A, 0x52, 0x42, 0xF8, 0x42, 0xFB, 0x44, 0xF9, 0x39,
|
||||
+ 0x73, 0xFB, 0x60, 0x79, 0x3B, 0xC2, 0x9E, 0x0B, 0xDC, 0xD4,
|
||||
+ 0xA6, 0x67, 0xF7, 0x66, 0x3F, 0xFC, 0x42, 0x3B, 0x1B, 0xDB,
|
||||
+ 0x4F, 0x66, 0xDC, 0xA5, 0x8F, 0x66, 0xF9, 0xEA, 0xC1, 0xED,
|
||||
+ 0x31, 0xFB, 0x48, 0xA1, 0x82, 0x7D, 0xF8, 0xE0, 0xCC, 0xB1,
|
||||
+ 0xC7, 0x03, 0xE4, 0xF8, 0xB3, 0xFE, 0xB7, 0xA3, 0x13, 0x73,
|
||||
+ 0xA6, 0x7B, 0xC1, 0x0E, 0x39, 0xC7, 0x94, 0x48, 0x26, 0x00,
|
||||
+ 0x85, 0x79, 0xFC, 0x6F, 0x7A, 0xAF, 0xC5, 0x52, 0x35, 0x75,
|
||||
+ 0xD7, 0x75, 0xA4, 0x40, 0xFA, 0x14, 0x74, 0x61, 0x16, 0xF2,
|
||||
+ 0xEB, 0x67, 0x11, 0x6F, 0x04, 0x43, 0x3D, 0x11, 0x14, 0x4C,
|
||||
+ 0xA7, 0x94, 0x2A, 0x39, 0xA1, 0xC9, 0x90, 0xCF, 0x83, 0xC6,
|
||||
+ 0xFF, 0x02, 0x8F, 0xA3, 0x2A, 0xAC, 0x26, 0xDF, 0x0B, 0x8B,
|
||||
+ 0xBE, 0x64, 0x4A, 0xF1, 0xA1, 0xDC, 0xEE, 0xBA, 0xC8, 0x03,
|
||||
+ 0x82, 0xF6, 0x62, 0x2C, 0x5D, 0xB6, 0xBB, 0x13, 0x19, 0x6E,
|
||||
+ 0x86, 0xC5, 0x5B, 0x2B, 0x5E, 0x3A, 0xF3, 0xB3, 0x28, 0x6B,
|
||||
+ 0x70, 0x71, 0x3A, 0x8E, 0xFF, 0x5C, 0x15, 0xE6, 0x02, 0xA4,
|
||||
+ 0xCE, 0xED, 0x59, 0x56, 0xCC, 0x15, 0x51, 0x07, 0x79, 0x1A,
|
||||
+ 0x0F, 0x25, 0x26, 0x27, 0x30, 0xA9, 0x15, 0xB2, 0xC8, 0xD4,
|
||||
+ 0x5C, 0xCC, 0x30, 0xE8, 0x1B, 0xD8, 0xD5, 0x0F, 0x19, 0xA8,
|
||||
+ 0x80, 0xA4, 0xC7, 0x01, 0xAA, 0x8B, 0xBA, 0x53, 0xBB, 0x47,
|
||||
+ 0xC2, 0x1F, 0x6B, 0x54, 0xB0, 0x17, 0x60, 0xED, 0x79, 0x21,
|
||||
+ 0x95, 0xB6, 0x05, 0x84, 0x37, 0xC8, 0x03, 0xA4, 0xDD, 0xD1,
|
||||
+ 0x06, 0x69, 0x8F, 0x4C, 0x39, 0xE0, 0xC8, 0x5D, 0x83, 0x1D,
|
||||
+ 0xBE, 0x6A, 0x9A, 0x99, 0xF3, 0x9F, 0x0B, 0x45, 0x29, 0xD4,
|
||||
+ 0xCB, 0x29, 0x66, 0xEE, 0x1E, 0x7E, 0x3D, 0xD7, 0x13, 0x4E,
|
||||
+ 0xDB, 0x90, 0x90, 0x58, 0xCB, 0x5E, 0x9B, 0xCD, 0x2E, 0x2B,
|
||||
+ 0x0F, 0xA9, 0x4E, 0x78, 0xAC, 0x05, 0x11, 0x7F, 0xE3, 0x9E,
|
||||
+ 0x27, 0xD4, 0x99, 0xE1, 0xB9, 0xBD, 0x78, 0xE1, 0x84, 0x41,
|
||||
+ 0xA0, 0xDF
|
||||
+ };
|
||||
+ static unsigned char dhg_4096[] = {
|
||||
+ 0x02
|
||||
+ };
|
||||
+ DH *dh = DH_new();
|
||||
+ BIGNUM *dhp_bn, *dhg_bn;
|
||||
+
|
||||
+ if (dh == NULL)
|
||||
+ return NULL;
|
||||
+ dhp_bn = BN_bin2bn(dhp_4096, sizeof (dhp_4096), NULL);
|
||||
+ dhg_bn = BN_bin2bn(dhg_4096, sizeof (dhg_4096), NULL);
|
||||
+ if (dhp_bn == NULL || dhg_bn == NULL
|
||||
+ || !my_DH_set0_pqg(dh, dhp_bn, NULL, dhg_bn)) {
|
||||
+ DH_free(dh);
|
||||
+ BN_free(dhp_bn);
|
||||
+ BN_free(dhg_bn);
|
||||
+ return NULL;
|
||||
+ }
|
||||
+ return dh;
|
||||
+}
|
||||
@@ -1,10 +1,10 @@
|
||||
{stdenv, fetchurl, pam, openssl, db}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation rec {
|
||||
name = "pam_ccreds-10";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.padl.com/download/pam_ccreds.tgz";
|
||||
url = "https://www.padl.com/download/${name}.tar.gz";
|
||||
sha256 = "1h7zyg1b1h69civyvrj95w22dg0y7lgw3hq4gqkdcg35w1y76fhz";
|
||||
};
|
||||
patchPhase = ''
|
||||
@@ -14,7 +14,7 @@ stdenv.mkDerivation {
|
||||
buildInputs = [ pam openssl db ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://www.padl.com/OSS/pam_ccreds.html;
|
||||
homepage = https://www.padl.com/OSS/pam_ccreds.html;
|
||||
description = "PAM module to locally authenticate using an enterprise identity when the network is unavailable";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
|
||||
@@ -4,7 +4,7 @@ stdenv.mkDerivation rec {
|
||||
name = "pam_ldap-186";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.padl.com/download/${name}.tar.gz";
|
||||
url = "https://www.padl.com/download/${name}.tar.gz";
|
||||
sha256 = "0lv4f7hc02jrd2l3gqxd247qq62z11sp3fafn8lgb8ymb7aj5zn8";
|
||||
};
|
||||
|
||||
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ pam openldap ];
|
||||
|
||||
meta = {
|
||||
homepage = http://www.padl.com/OSS/pam_ldap.html;
|
||||
homepage = https://www.padl.com/OSS/pam_ldap.html;
|
||||
description = "LDAP backend for PAM";
|
||||
longDescription = ''
|
||||
The pam_ldap module provides the means for Solaris and Linux servers and
|
||||
|
||||
@@ -3,9 +3,7 @@
|
||||
, gtk2, which, withGtk ? false
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pktgen";
|
||||
version = "3.7.2";
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
|
||||
( cd $sourceRoot/tools; tar -xaf prltools${if x64 then ".x64" else ""}.tar.gz )
|
||||
'';
|
||||
|
||||
kernelVersion = if libsOnly then "" else (builtins.parseDrvName kernel.name).version;
|
||||
kernelVersion = if libsOnly then "" else lib.getName kernel.name;
|
||||
kernelDir = if libsOnly then "" else "${kernel.dev}/lib/modules/${kernelVersion}";
|
||||
scriptPath = lib.concatStringsSep ":" (lib.optionals (!libsOnly) [ "${utillinux}/bin" "${gawk}/bin" ]);
|
||||
|
||||
|
||||
@@ -1,28 +1,19 @@
|
||||
{ stdenv, fetchFromGitHub, fetchpatch, bash, coreutils, gdb, zlib }:
|
||||
{ stdenv, fetchFromGitHub, bash, coreutils, gdb, zlib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "procdump";
|
||||
version = "1.0.1";
|
||||
version = "1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Microsoft";
|
||||
repo = "ProcDump-for-Linux";
|
||||
rev = version;
|
||||
sha256 = "1lkm05hq4hl1vadj9ifm18hi7cbf5045xlfxdfbrpsl6kxgfwcc4";
|
||||
sha256 = "1pcf6cpslpazla0na0q680dih9wb811q5irr7d2zmw0qmxm33jw2";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ zlib ];
|
||||
buildInputs = [ bash coreutils gdb ];
|
||||
|
||||
patches = [
|
||||
# Fix name conflict when built with musl
|
||||
# TODO: check if fixed upstream https://github.com/Microsoft/ProcDump-for-Linux/pull/50
|
||||
(fetchpatch {
|
||||
url = "https://github.com/Microsoft/ProcDump-for-Linux/commit/1b7b50b910f20b463fb628c8213663c8a8d11d0d.patch";
|
||||
sha256 = "0h0dj3gi6hw1wdpc0ih9s4kkagv0d9jzrg602cr85r2z19lmb7yk";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/CoreDumpWriter.c \
|
||||
--replace '"gcore ' '"${gdb}/bin/gcore ' \
|
||||
@@ -31,16 +22,26 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"DESTDIR=$(out)"
|
||||
"DESTDIR=${placeholder "out"}"
|
||||
"INSTALLDIR=/bin"
|
||||
"MANDIR=/share/man/man1"
|
||||
];
|
||||
|
||||
doCheck = false; # needs root
|
||||
doCheck = false; # needs sudo root
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
runHook preInstallCheck
|
||||
set +o pipefail
|
||||
($out/bin/procdump -h | grep "ProcDump v${version}") ||
|
||||
(echo "ERROR: ProcDump is not the expected version or does not run properly" ; exit 1)
|
||||
set -o pipefail
|
||||
runHook postInstallCheck
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A Linux version of the ProcDump Sysinternals tool";
|
||||
homepage = https://github.com/Microsoft/ProcDump-for-Linux;
|
||||
homepage = "https://github.com/Microsoft/ProcDump-for-Linux";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ c0bw3b ];
|
||||
platforms = platforms.linux;
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "psmisc";
|
||||
version = "23.2";
|
||||
version = "23.3";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0d90wmibxpkl0d7sdibvvkwpyxyg6m6ksh5gwrjh15vf1swvd5i1";
|
||||
sha256 = "1132xvrldv0dar2mf221mv5kvajq0v6yrq8k3nl0wslnh5baa0r0";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoconf automake gettext ];
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
} :
|
||||
|
||||
let
|
||||
version = "26.0";
|
||||
version = "26.1";
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
pname = "rdma-core";
|
||||
@@ -14,7 +14,7 @@ in stdenv.mkDerivation {
|
||||
owner = "linux-rdma";
|
||||
repo = "rdma-core";
|
||||
rev = "v${version}";
|
||||
sha256 = "0yvhc7xc3mxzjd7v2y408w333qi7hkf1f99gbsd3fv2qydp9gps3";
|
||||
sha256 = "1zb1y70ff8yy7rdl4gh2jx1gpja5hrbsh8gfi9fsxkz2rv1234r0";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkgconfig pandoc docutils makeWrapper ];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, lib, fetchFromGitHub, python2 }:
|
||||
{ stdenv, lib, fetchFromGitHub, fetchpatch, python2 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.7.0";
|
||||
@@ -11,6 +11,14 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1hnijfz1ab34j2h2cxc3f43rmbclyihgn9x9wxa7jqqgb2xm71hj";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix tests hanging
|
||||
(fetchpatch {
|
||||
url = "https://github.com/nelhage/reptyr/commit/bca3070ac0f3888b5d37ee162505be81b3b496ff.patch";
|
||||
sha256 = "0w6rpv9k4a80q0ijzdq5hlpr37ncr284piqjv5agy8diniwlilab";
|
||||
})
|
||||
];
|
||||
|
||||
makeFlags = [ "PREFIX=" "DESTDIR=$(out)" ];
|
||||
|
||||
checkInputs = [ (python2.withPackages (p: [ p.pexpect ])) ];
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ stdenv, fetchpatch, fetchFromGitHub, autoreconfHook, libxslt, libxml2
|
||||
, docbook_xml_dtd_45, docbook_xsl, gnome-doc-utils, flex, bison
|
||||
, docbook_xml_dtd_45, docbook_xsl, itstool, flex, bison
|
||||
, pam ? null, glibcCross ? null
|
||||
}:
|
||||
|
||||
@@ -19,18 +19,18 @@ in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "shadow";
|
||||
version = "4.7";
|
||||
version = "4.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "shadow-maint";
|
||||
repo = "shadow";
|
||||
rev = version;
|
||||
sha256 = "0a7g9k83igfid8pybqpk6fracmz2q021isn2by3994p4hhh3s327";
|
||||
sha256 = "05a636dqxip09l5jjrrs30lvwq6xkhjrdgjbbj3bg6b6z7hc67qk";
|
||||
};
|
||||
|
||||
buildInputs = stdenv.lib.optional (pam != null && stdenv.isLinux) pam;
|
||||
nativeBuildInputs = [autoreconfHook libxslt libxml2
|
||||
docbook_xml_dtd_45 docbook_xsl gnome-doc-utils flex bison
|
||||
docbook_xml_dtd_45 docbook_xsl flex bison itstool
|
||||
];
|
||||
|
||||
patches =
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
with stdenv.lib;
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "sysdig";
|
||||
version = "0.26.4";
|
||||
version = "0.26.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "draios";
|
||||
repo = "sysdig";
|
||||
rev = version;
|
||||
sha256 = "1v2j1ns17wyj7xl91p6wy1iwfx2fnn8af9nm939skc6229m87zzn";
|
||||
sha256 = "145mwg6izrpi4r1qrygi4yb7qd68g4k64i3qmamk0671wxhjqi3c";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake perl ];
|
||||
@@ -24,6 +24,7 @@ stdenv.mkDerivation rec {
|
||||
cmakeFlags = [
|
||||
"-DUSE_BUNDLED_DEPS=OFF"
|
||||
"-DSYSDIG_VERSION=${version}"
|
||||
"-DCREATE_TEST_TARGETS=OFF"
|
||||
] ++ optional (kernel == null) "-DBUILD_DRIVER=OFF";
|
||||
|
||||
# needed since luajit-2.1.0-beta3
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ stdenv, lib, fetchFromGitHub, fetchpatch, pkgconfig, intltool, gperf, libcap, kmod
|
||||
, xz, pam, acl, libuuid, m4, utillinux, libffi
|
||||
{ stdenv, lib, fetchFromGitHub, fetchpatch, pkgconfig, intltool, gperf, libcap
|
||||
, curl, kmod, gnupg, gnutar, xz, pam, acl, libuuid, m4, utillinux, libffi
|
||||
, glib, kbd, libxslt, coreutils, libgcrypt, libgpgerror, libidn2, libapparmor
|
||||
, audit, lz4, bzip2, libmicrohttpd, pcre2
|
||||
, linuxHeaders ? stdenv.cc.libc.linuxHeaders
|
||||
@@ -15,8 +15,22 @@
|
||||
, withKexectools ? lib.any (lib.meta.platformMatch stdenv.hostPlatform) kexectools.meta.platforms, kexectools
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
version = "243";
|
||||
let gnupg-minimal = gnupg.override {
|
||||
enableMinimal = true;
|
||||
guiSupport = false;
|
||||
pcsclite = null;
|
||||
sqlite = null;
|
||||
pinentry = null;
|
||||
adns = null;
|
||||
gnutls = null;
|
||||
libusb = null;
|
||||
openldap = null;
|
||||
readline = null;
|
||||
zlib = null;
|
||||
bzip2 = null;
|
||||
};
|
||||
in stdenv.mkDerivation {
|
||||
version = "243.3";
|
||||
pname = "systemd";
|
||||
|
||||
# When updating, use https://github.com/systemd/systemd-stable tree, not the development one!
|
||||
@@ -24,8 +38,8 @@ stdenv.mkDerivation {
|
||||
src = fetchFromGitHub {
|
||||
owner = "NixOS";
|
||||
repo = "systemd";
|
||||
rev = "d25cf413c6bff1b5a9d216a8830e3a90c9cad1de";
|
||||
sha256 = "0ilvrnh3m7g0yflxl16fk52gkb1z0fwwk9ba5gs4005nzpl0c7i0";
|
||||
rev = "491a247eff9b7ce1e5877f5f3431517c95f3222f";
|
||||
sha256 = "1xqiahapg480m165glrwqbfmc1fxw5sacdlm933cwyi1q8x4537g";
|
||||
};
|
||||
|
||||
outputs = [ "out" "lib" "man" "dev" ];
|
||||
@@ -41,7 +55,7 @@ stdenv.mkDerivation {
|
||||
(buildPackages.python3Packages.python.withPackages ( ps: with ps; [ python3Packages.lxml ]))
|
||||
];
|
||||
buildInputs =
|
||||
[ linuxHeaders libcap kmod xz pam acl
|
||||
[ linuxHeaders libcap curl.dev kmod xz pam acl
|
||||
/* cryptsetup */ libuuid glib libgcrypt libgpgerror libidn2
|
||||
libmicrohttpd pcre2 ] ++
|
||||
stdenv.lib.optional withKexectools kexectools ++
|
||||
@@ -67,6 +81,7 @@ stdenv.mkDerivation {
|
||||
"-Ddebug-shell=${bashInteractive}/bin/bash"
|
||||
# while we do not run tests we should also not build them. Removes about 600 targets
|
||||
"-Dtests=false"
|
||||
"-Dimportd=true"
|
||||
"-Dlz4=true"
|
||||
"-Dhostnamed=true"
|
||||
"-Dnetworkd=true"
|
||||
@@ -77,7 +92,7 @@ stdenv.mkDerivation {
|
||||
"-Dlocaled=true"
|
||||
"-Dresolve=true"
|
||||
"-Dsplit-usr=false"
|
||||
"-Dlibcurl=false"
|
||||
"-Dlibcurl=true"
|
||||
"-Dlibidn=false"
|
||||
"-Dlibidn2=true"
|
||||
"-Dquotacheck=false"
|
||||
@@ -144,6 +159,14 @@ stdenv.mkDerivation {
|
||||
patchShebangs $dir
|
||||
done
|
||||
|
||||
# absolute paths to gpg & tar
|
||||
substituteInPlace src/import/pull-common.c \
|
||||
--replace '"gpg"' '"${gnupg-minimal}/bin/gpg"'
|
||||
for file in src/import/{{export,import,pull}-tar,import-common}.c; do
|
||||
substituteInPlace $file \
|
||||
--replace '"tar"' '"${gnutar}/bin/tar"'
|
||||
done
|
||||
|
||||
substituteInPlace src/journal/catalog.c \
|
||||
--replace /usr/lib/systemd/catalog/ $out/lib/systemd/catalog/
|
||||
'';
|
||||
|
||||
@@ -2,17 +2,22 @@
|
||||
|
||||
python.pkgs.buildPythonApplication rec {
|
||||
pname = "targetcli";
|
||||
version = "2.1.fb49";
|
||||
version = "2.1.51";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "open-iscsi";
|
||||
repo = "${pname}-fb";
|
||||
rev = "v${version}";
|
||||
sha256 = "093dmwc5g6yz4cdgpbfszmc97i7nd286w4x447dvg22hvwvjwqhh";
|
||||
sha256 = "07i9kyr525hlk32amzgycirwgwykdbjy5fmw6ji0nnhvk2jh4arn";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python.pkgs; [ configshell rtslib ];
|
||||
|
||||
postInstall = ''
|
||||
install -D targetcli.8 -t $out/share/man/man8/
|
||||
install -D targetclid.8 -t $out/share/man/man8/
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A command shell for managing the Linux LIO kernel target";
|
||||
homepage = https://github.com/open-iscsi/targetcli-fb;
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tomb";
|
||||
version = "2.6";
|
||||
version = "2.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dyne";
|
||||
repo = "Tomb";
|
||||
rev = "v${version}";
|
||||
sha256 = "0pr0lw1byxwkgv857zfmd8yqa03a7mckhzklrf9rkv1l6nisz0z0";
|
||||
sha256 = "1vzkpzci6cp1r1q2n34pcgcns78i726k8d89dd6pibyj0vfnkl57";
|
||||
};
|
||||
|
||||
buildInputs = [ sudo zsh pinentry ];
|
||||
|
||||
@@ -32,7 +32,7 @@ mkDerivation {
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "GUI for trace-cmd which is an interface for the Linux kernel ftrace subsystem";
|
||||
homepage = http://kernelshark.org/;
|
||||
homepage = https://kernelshark.org/;
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ basvandijk ];
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user