Merge branch 'glibc' of https://github.com/rnhmjoj/nixpkgs into staging
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
, zfs ? null
|
||||
, efiSupport ? false
|
||||
, zfsSupport ? true
|
||||
, xenSupport ? false
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
@@ -46,6 +47,7 @@ in (
|
||||
|
||||
assert efiSupport -> canEfi;
|
||||
assert zfsSupport -> zfs != null;
|
||||
assert !(efiSupport && xenSupport);
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "grub-${version}";
|
||||
@@ -98,7 +100,8 @@ stdenv.mkDerivation rec {
|
||||
patches = [ ./fix-bash-completion.patch ];
|
||||
|
||||
configureFlags = optional zfsSupport "--enable-libzfs"
|
||||
++ optionals efiSupport [ "--with-platform=efi" "--target=${efiSystemsBuild.${stdenv.system}.target}" "--program-prefix=" ];
|
||||
++ optionals efiSupport [ "--with-platform=efi" "--target=${efiSystemsBuild.${stdenv.system}.target}" "--program-prefix=" ]
|
||||
++ optionals xenSupport [ "--with-platform=xen" "--target=${efiSystemsBuild.${stdenv.system}.target}"];
|
||||
|
||||
# save target that grub is compiled for
|
||||
grubTarget = if efiSupport
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
normal (memdisk)/grub.cfg
|
||||
10
pkgs/tools/misc/grub/pvgrub_image/configs/grub.cfg
Normal file
10
pkgs/tools/misc/grub/pvgrub_image/configs/grub.cfg
Normal file
@@ -0,0 +1,10 @@
|
||||
# The parentheses around ${root} here to match Grub's config file syntax
|
||||
if search -s -f /boot/grub/grub.cfg ; then
|
||||
echo "Reading (${root})/boot/grub/grub.cfg"
|
||||
configfile /boot/grub/grub.cfg
|
||||
fi
|
||||
|
||||
if search -s -f /grub/grub.cfg ; then
|
||||
echo "Reading (${root})/grub/grub.cfg"
|
||||
configfile /grub/grub.cfg
|
||||
fi
|
||||
42
pkgs/tools/misc/grub/pvgrub_image/default.nix
Normal file
42
pkgs/tools/misc/grub/pvgrub_image/default.nix
Normal file
@@ -0,0 +1,42 @@
|
||||
{ stdenv, grub2_xen }:
|
||||
|
||||
with stdenv.lib;
|
||||
let
|
||||
efiSystemsBuild = {
|
||||
"i686-linux".target = "i386";
|
||||
"x86_64-linux".target = "x86_64";
|
||||
"aarch64-linux".target = "aarch64";
|
||||
};
|
||||
|
||||
in (
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "pvgrub-image";
|
||||
|
||||
configs = ./configs;
|
||||
|
||||
buildInputs = [ grub2_xen ];
|
||||
|
||||
buildCommand = ''
|
||||
cp "${configs}"/* .
|
||||
tar -cf memdisk.tar grub.cfg
|
||||
# We include all modules except all_video.mod as otherwise grub will fail printing "no symbol table"
|
||||
# if we include it.
|
||||
grub-mkimage -O "${efiSystemsBuild.${stdenv.system}.target}-xen" -c grub-bootstrap.cfg \
|
||||
-m memdisk.tar -o "grub-${efiSystemsBuild.${stdenv.system}.target}-xen.bin" \
|
||||
$(ls "${grub2_xen}/lib/grub/${efiSystemsBuild.${stdenv.system}.target}-xen/" |grep 'mod''$'|grep -v '^all_video\.mod''$')
|
||||
mkdir -p "$out/lib/grub-xen"
|
||||
cp "grub-${efiSystemsBuild.${stdenv.system}.target}-xen.bin" $out/lib/grub-xen/
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "PvGrub image for use for booting PV Xen guests";
|
||||
|
||||
longDescription =
|
||||
'' This package provides a PvGrub image for booting Para-Virtualized (PV)
|
||||
Xen guests
|
||||
'';
|
||||
|
||||
platforms = platforms.gnu;
|
||||
};
|
||||
})
|
||||
@@ -2,8 +2,8 @@
|
||||
, fetchurl
|
||||
, cmake
|
||||
, libjpeg
|
||||
, szip
|
||||
, zlib
|
||||
, szip ? null
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
|
||||
zlib
|
||||
];
|
||||
|
||||
preConfigure = "export SZIP_INSTALL=${szip}";
|
||||
preConfigure = stdenv.lib.optionalString (szip != null) "export SZIP_INSTALL=${szip}";
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_SHARED_LIBS=ON"
|
||||
@@ -31,11 +31,12 @@ stdenv.mkDerivation rec {
|
||||
"-DHDF4_BUILD_WITH_INSTALL_NAME=OFF"
|
||||
"-DHDF4_ENABLE_JPEG_LIB_SUPPORT=ON"
|
||||
"-DHDF4_ENABLE_NETCDF=OFF"
|
||||
"-DHDF4_ENABLE_SZIP_ENCODING=ON"
|
||||
"-DHDF4_ENABLE_SZIP_SUPPORT=ON"
|
||||
"-DHDF4_ENABLE_Z_LIB_SUPPORT=ON"
|
||||
"-DHDF4_BUILD_FORTRAN=OFF"
|
||||
"-DJPEG_DIR=${libjpeg}"
|
||||
] ++ stdenv.lib.optionals (szip != null) [
|
||||
"-DHDF4_ENABLE_SZIP_ENCODING=ON"
|
||||
"-DHDF4_ENABLE_SZIP_SUPPORT=ON"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
24
pkgs/tools/misc/zabbix-cli/default.nix
Normal file
24
pkgs/tools/misc/zabbix-cli/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ fetchFromGitHub, lib, python2Packages }:
|
||||
let
|
||||
pythonPackages = python2Packages;
|
||||
|
||||
in pythonPackages.buildPythonApplication rec {
|
||||
name = "zabbix-cli-${version}";
|
||||
version = "1.6.1";
|
||||
|
||||
propagatedBuildInputs = with pythonPackages; [ argparse requests ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "usit-gd";
|
||||
repo = "zabbix-cli";
|
||||
rev = version;
|
||||
sha256 = "17ip3s8ifgj264zwxrr857wk02xmzmlsjrr613mdhkgdwizqbcs3";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Command-line interface for Zabbix";
|
||||
homepage = src.meta.homepage;
|
||||
license = [ licenses.gpl3 ];
|
||||
maintainers = [ maintainers.womfoo ];
|
||||
};
|
||||
}
|
||||
@@ -79,6 +79,9 @@ let
|
||||
|
||||
doInstallCheck = true;
|
||||
|
||||
# socket path becomes too long otherwise
|
||||
preInstallCheck = lib.optional stdenv.isDarwin "export TMPDIR=/tmp";
|
||||
|
||||
separateDebugInfo = stdenv.isLinux;
|
||||
|
||||
crossAttrs = {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{ callPackage, fetchurl }:
|
||||
|
||||
callPackage ./generic.nix (rec {
|
||||
version = "1.5";
|
||||
version = "1.5.1";
|
||||
src = fetchurl {
|
||||
url = "http://nixos.org/releases/nixops/nixops-${version}/nixops-${version}.tar.bz2";
|
||||
sha256 = "0z4pzc55wjab8v4bkrff94f8qp1g9ydgxxpl2dvy5130bg1s52wd";
|
||||
sha256 = "0pba9c8ya4hvqmg458p74g69hb06lh0f5bsgw7dsi8pjrcb0624g";
|
||||
};
|
||||
})
|
||||
|
||||
@@ -15,6 +15,10 @@ buildGoPackage rec {
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
preConfigure = ''
|
||||
sed -i 's|cacheTimeout != 3600|cacheTimeout != 0|' cmd/hologram-server/main.go
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/AdRoll/hologram/;
|
||||
description = "Easy, painless AWS credentials on developer laptops.";
|
||||
|
||||
Reference in New Issue
Block a user