Merge branch 'master' into staging-next
Hydra nixpkgs: ?compare=1523028
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ccls-${version}";
|
||||
version = "0.20190301";
|
||||
version = "0.20190314.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "MaskRay";
|
||||
repo = "ccls";
|
||||
rev = version;
|
||||
sha256 = "1n60mly993czq3mnb82k8yqjrbfnsnx5v5dmr8ylqif3awcsk04i";
|
||||
sha256 = "1yvxliryqx2bc7r6ri4iafbrjx19jk8hnfbvq5xla72q0gqb97lf";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake makeWrapper ];
|
||||
@@ -18,9 +18,12 @@ stdenv.mkDerivation rec {
|
||||
cmakeFlags = [
|
||||
"-DSYSTEM_CLANG=ON"
|
||||
"-DCMAKE_OSX_DEPLOYMENT_TARGET=10.12"
|
||||
"-DCMAKE_CXX_FLAGS=-fvisibility=hidden"
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
cmakeFlagsArray+=(-DCMAKE_CXX_FLAGS="-fvisibility=hidden -fno-rtti")
|
||||
'';
|
||||
|
||||
shell = runtimeShell;
|
||||
postFixup = ''
|
||||
# We need to tell ccls where to find the standard library headers.
|
||||
|
||||
@@ -13,12 +13,6 @@ if lib.versions.major nix.version == "1"
|
||||
else
|
||||
|
||||
let
|
||||
isGreaterNix20 = with lib.versions;
|
||||
let
|
||||
inherit (nix) version;
|
||||
inherit (lib) toInt;
|
||||
in major version == "2" && toInt (minor version) >= 1 || toInt (major version) > 2;
|
||||
|
||||
perlDeps = buildEnv {
|
||||
name = "hydra-perl-deps";
|
||||
paths = with perlPackages;
|
||||
@@ -74,16 +68,16 @@ let
|
||||
];
|
||||
};
|
||||
in releaseTools.nixBuild rec {
|
||||
name = "hydra-${version}";
|
||||
version = "2019-03-18";
|
||||
pname = "hydra";
|
||||
version = "2019-05-06";
|
||||
|
||||
inherit stdenv;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "NixOS";
|
||||
repo = "hydra";
|
||||
rev = "0721f6623ffb5a4b6a77b499af4eee7d6e4dd6a7";
|
||||
sha256 = "0b2g2bnbaqpwxx8p81i4gpl4y16i57z5pnjm90fpd0jxnkij3pcg";
|
||||
repo = pname;
|
||||
rev = "ff64583d07f046e378a6be596ec0ce7a9e2b7472";
|
||||
sha256 = "0w88q0saz7si22z3ryim6vdrv9qkwn6l25xfmiapvh5qrnrrdcb9";
|
||||
};
|
||||
|
||||
buildInputs =
|
||||
@@ -93,7 +87,8 @@ in releaseTools.nixBuild rec {
|
||||
perlDeps perl nix
|
||||
postgresql # for running the tests
|
||||
nlohmann_json
|
||||
] ++ lib.optionals isGreaterNix20 [ boost ];
|
||||
boost
|
||||
];
|
||||
|
||||
hydraPath = lib.makeBinPath (
|
||||
[ sqlite subversion openssh nix coreutils findutils pixz
|
||||
@@ -102,15 +97,7 @@ in releaseTools.nixBuild rec {
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
||||
|
||||
# adds a patch which ensures compatibility with the API of Nix 2.0.
|
||||
# it has been reverted in https://github.com/NixOS/hydra/commit/162d671c48a418bd10a8a171ca36787ef3695a44,
|
||||
# for Nix 2.1/unstable compatibility. Reapplying helps if Nix 2.0 is used to keep the build functional.
|
||||
patches = lib.optionals (!isGreaterNix20) [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/NixOS/hydra/commit/08de434bdd0b0a22abc2081be6064a6c846d3920.patch";
|
||||
sha256 = "0kz77njp5ynn9l81g3q8zrryvnsr06nk3iw0a60187wxqzf5fmf8";
|
||||
})
|
||||
] ++ [
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/NixOS/hydra/pull/648/commits/4171ab4c4fd576c516dc03ba64d1c7945f769af0.patch";
|
||||
sha256 = "1fxa2459kdws6qc419dv4084c1ssmys7kqg4ic7n643kybamsgrx";
|
||||
|
||||
43
pkgs/development/tools/misc/igprof/default.nix
Normal file
43
pkgs/development/tools/misc/igprof/default.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{stdenv, fetchFromGitHub, libunwind, cmake, pcre, gdb}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "5.9.16";
|
||||
name = "igprof-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "igprof";
|
||||
repo = "igprof";
|
||||
rev = "v${version}";
|
||||
sha256 = "0rx3mv8zdh9bmcpfbzkib3d52skzfr8600gh5gv21wcsh50jnifx";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/igprof --replace libigprof.so $out/lib/libigprof.so
|
||||
'';
|
||||
|
||||
buildInputs = [libunwind gdb pcre];
|
||||
nativeBuildInputs = [cmake];
|
||||
CXXFLAGS = ["-fPIC" "-O2" "-w" "-fpermissive"];
|
||||
|
||||
meta = {
|
||||
description = "The Ignominous Profiler";
|
||||
|
||||
longDescription = ''
|
||||
IgProf is a fast and light weight profiler. It correctly handles
|
||||
dynamically loaded shared libraries, threads and sub-processes started by
|
||||
the application. We have used it routinely with large C++ applications
|
||||
consisting of many hundreds of shared libraries and thousands of symbols
|
||||
from millions of source lines of code. It requires no special privileges
|
||||
to run. The performance reports provide full navigable call stacks and
|
||||
can be customised by applying filters. Results from any number of
|
||||
profiling runs can be included. This means you can both dig into the
|
||||
details and see the big picture from combined workloads.
|
||||
'';
|
||||
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
|
||||
homepage = https://igprof.org/;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = with stdenv.lib.maintainers; [ ktf ];
|
||||
};
|
||||
}
|
||||
@@ -11,7 +11,7 @@ rustPlatform.buildRustPackage rec {
|
||||
sha256 = "0gz8m5j9p7hwylyl7cdxbli9rpy1p6lsrbym4zk647819pg4k1jp";
|
||||
};
|
||||
|
||||
cargoSha256 = "1xai3jxvs8r3s3v5d5w40miw6nihnj9gzlzzdrwphmgrkywr88c4";
|
||||
cargoSha256 = "19h0ybi9qq5shvr7zix0gb24a29lqkvyfc5xbgps8wqgfrhx4nqa";
|
||||
|
||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [
|
||||
libiconv darwin.apple_sdk.frameworks.Security
|
||||
|
||||
Reference in New Issue
Block a user