From 664cc49b1929b5f71816663744ee39662a68f92f Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Fri, 16 Dec 2016 17:26:21 +0300 Subject: [PATCH] gbenchmark: init at 1.1.0 --- .../libraries/gbenchmark/default.nix | 25 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/libraries/gbenchmark/default.nix diff --git a/pkgs/development/libraries/gbenchmark/default.nix b/pkgs/development/libraries/gbenchmark/default.nix new file mode 100644 index 00000000000..8f532ae8e0b --- /dev/null +++ b/pkgs/development/libraries/gbenchmark/default.nix @@ -0,0 +1,25 @@ +{ stdenv, callPackage, fetchFromGitHub, cmake }: + +stdenv.mkDerivation rec { + name = "gbenchmark-${version}"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "google"; + repo = "benchmark"; + rev = "v${version}"; + sha256 = "1y7k73kyxx1jlph23csnhdac76px6ghhwwxbcf0133m4rg0wmpn5"; + }; + + buildInputs = [ cmake ]; + + enableParallelBuilding = true; + + meta = with stdenv.lib; { + description = "A microbenchmark support library"; + homepage = "https://github.com/google/benchmark"; + license = licenses.asl20; + platforms = platforms.linux; + maintainers = with maintainers; [ abbradar ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 81af1cc2915..6e782cd3cdd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2043,6 +2043,7 @@ in gtest = callPackage ../development/libraries/gtest {}; gmock = callPackage ../development/libraries/gmock {}; + gbenchmark = callPackage ../development/libraries/gbenchmark {}; gtkdatabox = callPackage ../development/libraries/gtkdatabox {};