Merge remote-tracking branch 'central/master' into viric_clean
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "circleci-cli";
|
||||
version = "2018-05-12";
|
||||
version = "0.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "circleci";
|
||||
repo = "local-cli";
|
||||
rev = "2c7c1a74e3c3ffb8eebc03fccd782b1bfe9e940a";
|
||||
sha256 = "0fp0fz0xr7ynp32lqcmaigl9p45wk1hd2gv9i5q5bj9syj3g7qzm";
|
||||
rev = "v${version}";
|
||||
sha256 = "1bv1ck5zvyl6pyvbfglizg8ybna4yg2nz441kiv5rmp4g27n6db2";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
@@ -28,46 +28,40 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
crossAttrs = {
|
||||
# This program does not cross-build fine. So I only cross-build some parts
|
||||
# I need for the linux perf tool.
|
||||
# On the awful cross-building:
|
||||
# http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2005
|
||||
#
|
||||
# I wrote this testing for the nanonote.
|
||||
|
||||
/* Having bzip2 will harm, because anything using elfutils
|
||||
as buildInput cross-building, will not be able to run 'bzip2' */
|
||||
propagatedBuildInputs = [ zlib.crossDrv ];
|
||||
buildPhase = if stdenv.hostPlatform == stdenv.buildPlatform then null else ''
|
||||
pushd libebl
|
||||
make
|
||||
popd
|
||||
pushd libelf
|
||||
make
|
||||
popd
|
||||
pushd libdwfl
|
||||
make
|
||||
popd
|
||||
pushd libdw
|
||||
make
|
||||
popd
|
||||
'';
|
||||
|
||||
# This program does not cross-build fine. So I only cross-build some parts
|
||||
# I need for the linux perf tool.
|
||||
# On the awful cross-building:
|
||||
# http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2005
|
||||
#
|
||||
# I wrote this testing for the nanonote.
|
||||
buildPhase = ''
|
||||
pushd libebl
|
||||
make
|
||||
popd
|
||||
pushd libelf
|
||||
make
|
||||
popd
|
||||
pushd libdwfl
|
||||
make
|
||||
popd
|
||||
pushd libdw
|
||||
make
|
||||
popd
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
pushd libelf
|
||||
make install
|
||||
popd
|
||||
pushd libdwfl
|
||||
make install
|
||||
popd
|
||||
pushd libdw
|
||||
make install
|
||||
popd
|
||||
cp version.h $out/include
|
||||
'';
|
||||
};
|
||||
installPhase = if stdenv.hostPlatform == stdenv.buildPlatform then null else ''
|
||||
pushd libelf
|
||||
make install
|
||||
popd
|
||||
pushd libdwfl
|
||||
make install
|
||||
popd
|
||||
pushd libdw
|
||||
make install
|
||||
popd
|
||||
cp version.h $out/include
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = https://sourceware.org/elfutils/;
|
||||
|
||||
@@ -1,4 +1,13 @@
|
||||
{ stdenv, makeWrapper, fetchurl, elk6Version, nodejs, coreutils, which }:
|
||||
{ elk6Version
|
||||
, enableUnfree ? true
|
||||
, stdenv
|
||||
, makeWrapper
|
||||
, fetchzip
|
||||
, fetchurl
|
||||
, nodejs
|
||||
, coreutils
|
||||
, which
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
let
|
||||
@@ -6,12 +15,31 @@ let
|
||||
info = splitString "-" stdenv.system;
|
||||
arch = elemAt info 0;
|
||||
plat = elemAt info 1;
|
||||
shas = {
|
||||
"x86_64-linux" = "1br9nvwa3i5sfcbnrxp2x3dxxnsbs9iavz6zwgw0jlh5ngf5vysk";
|
||||
"x86_64-darwin" = "1w4dck02i0rrl8m18kvy2zz02cb7bb9a2pdhkd1jfy1qz4ssnhii";
|
||||
shas =
|
||||
if enableUnfree
|
||||
then {
|
||||
"x86_64-linux" = "1kk97ggpzmblhqm6cfd2sv5940f58h323xcyg6rba1njj7lzanv0";
|
||||
"x86_64-darwin" = "1xvwffk8d8br92h0laf4b1m76kvki6cj0pbgcvirfcj1r70vk6c3";
|
||||
}
|
||||
else {
|
||||
"x86_64-linux" = "0m81ki1v61gpwb3s6zf84azqrirlm9pdfx65g3xmvdp3d3wii5ly";
|
||||
"x86_64-darwin" = "0zh9p6vsq1d0gh6ks7z6bh8sbhn6rm4jshjcfp3c9k7n2qa8vv9b";
|
||||
};
|
||||
|
||||
# For the correct phantomjs version see:
|
||||
# https://github.com/elastic/kibana/blob/master/x-pack/plugins/reporting/server/browsers/phantom/paths.js
|
||||
phantomjs = rec {
|
||||
name = "phantomjs-${version}-linux-x86_64";
|
||||
version = "2.1.1";
|
||||
src = fetchzip {
|
||||
inherit name;
|
||||
url = "https://github.com/Medium/phantomjs/releases/download/v${version}/${name}.tar.bz2";
|
||||
sha256 = "0g2dqjzr2daz6rkd6shj6rrlw55z4167vqh7bxadl8jl6jk7zbfv";
|
||||
};
|
||||
};
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "kibana-${version}";
|
||||
name = "kibana-${optionalString (!enableUnfree) "oss-"}${version}";
|
||||
version = elk6Version;
|
||||
|
||||
src = fetchurl {
|
||||
@@ -28,12 +56,19 @@ in stdenv.mkDerivation rec {
|
||||
makeWrapper $out/libexec/kibana/bin/kibana $out/bin/kibana \
|
||||
--prefix PATH : "${stdenv.lib.makeBinPath [ nodejs coreutils which ]}"
|
||||
sed -i 's@NODE=.*@NODE=${nodejs}/bin/node@' $out/libexec/kibana/bin/kibana
|
||||
'' +
|
||||
# phantomjs is needed in the unfree version. When phantomjs doesn't exist in
|
||||
# $out/libexec/kibana/data kibana will try to download and unpack it during
|
||||
# runtime which will fail because the nix store is read-only. So we make sure
|
||||
# it already exist in the nix store.
|
||||
optionalString enableUnfree ''
|
||||
ln -s ${phantomjs.src} $out/libexec/kibana/data/${phantomjs.name}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Visualize logs and time-stamped data";
|
||||
homepage = http://www.elasticsearch.org/overview/kibana;
|
||||
license = licenses.asl20;
|
||||
license = if enableUnfree then licenses.elastic else licenses.asl20;
|
||||
maintainers = with maintainers; [ offline rickynils basvandijk ];
|
||||
platforms = with platforms; unix;
|
||||
};
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ycmd-${version}";
|
||||
version = "2018-06-14";
|
||||
version = "2018-07-24";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://github.com/Valloric/ycmd.git";
|
||||
rev = "29e36f74f749d10b8d6ce285c1453fac26f15a41";
|
||||
sha256 = "0s62nf18jmgjihyba7lk7si8xrxsg60whdr430nlb5gjikag8zr5";
|
||||
rev = "f8a8b04892b925efeee24298a957cc6d6a69ad06";
|
||||
sha256 = "1br2sh6bs0fg1axq2hq9f48fz8klkzydi1mf0j0jdsh3zjzkmxbn";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
@@ -51,7 +51,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
mkdir -p $out/lib/ycmd/third_party/{gocode,godef,racerd/target/release}
|
||||
|
||||
for p in jedi waitress frozendict bottle python-future requests; do
|
||||
for p in jedi waitress frozendict bottle parso python-future requests; do
|
||||
cp -r third_party/$p $out/lib/ycmd/third_party
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user