spdlog_1: init 1.1.0

This commit is contained in:
Franz Pletz 2018-09-09 22:13:24 +02:00
parent 8473168bef
commit 4d11a37c69
No known key found for this signature in database
GPG key ID: 846FDED7792617B4
2 changed files with 47 additions and 28 deletions

View file

@ -1,32 +1,46 @@
{ stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
name = "spdlog-${version}";
version = "0.14.0";
let
generic = { version, sha256 }:
stdenv.mkDerivation {
name = "spdlog-${version}";
inherit version;
src = fetchFromGitHub {
owner = "gabime";
repo = "spdlog";
rev = "v${version}";
src = fetchFromGitHub {
owner = "gabime";
repo = "spdlog";
rev = "v${version}";
inherit sha256;
};
nativeBuildInputs = [ cmake ];
# cmakeFlags = [ "-DSPDLOG_BUILD_EXAMPLES=ON" ];
outputs = [ "out" "doc" ];
postInstall = ''
mkdir -p $out/share/doc/spdlog
cp -rv ../example $out/share/doc/spdlog
'';
meta = with stdenv.lib; {
description = "Very fast, header only, C++ logging library.";
homepage = https://github.com/gabime/spdlog;
license = licenses.mit;
maintainers = with maintainers; [ obadz ];
platforms = platforms.all;
};
};
in
{
spdlog_1 = generic {
version = "1.1.0";
sha256 = "0yckz5w02v8193jhxihk9v4i8f6jafyg2a33amql0iclhk17da8f";
};
spdlog_0 = generic {
version = "0.14.0";
sha256 = "13730429gwlabi432ilpnja3sfvy0nn2719vnhhmii34xcdyc57q";
};
nativeBuildInputs = [ cmake ];
# cmakeFlags = [ "-DSPDLOG_BUILD_EXAMPLES=ON" ];
outputs = [ "out" "doc" ];
postInstall = ''
mkdir -p $out/share/doc/spdlog
cp -rv ../example $out/share/doc/spdlog
'';
meta = with stdenv.lib; {
description = "Very fast, header only, C++ logging library.";
homepage = https://github.com/gabime/spdlog;
license = licenses.mit;
maintainers = with maintainers; [ obadz ];
platforms = platforms.all;
};
}

View file

@ -2347,7 +2347,9 @@ with pkgs;
enblend-enfuse = callPackage ../tools/graphics/enblend-enfuse { };
cryfs = callPackage ../tools/filesystems/cryfs { };
cryfs = callPackage ../tools/filesystems/cryfs {
spdlog = spdlog_0;
};
encfs = callPackage ../tools/filesystems/encfs {
tinyxml2 = tinyxml-2;
@ -22217,7 +22219,10 @@ with pkgs;
bullet = callPackage ../development/libraries/bullet {};
spdlog = callPackage ../development/libraries/spdlog { };
inherit (callPackages ../development/libraries/spdlog { })
spdlog_0 spdlog_1;
spdlog = spdlog_1;
dart = callPackage ../development/interpreters/dart { };
dart_stable = dart.override { version = "1.24.3"; };