From 7af039befee55b1f5369dff0635a4812b3782936 Mon Sep 17 00:00:00 2001 From: Philipp Middendorf Date: Sat, 11 Apr 2020 08:50:22 +0200 Subject: [PATCH] metal: init at 2.1.1 --- pkgs/development/libraries/metal/default.nix | 25 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/libraries/metal/default.nix diff --git a/pkgs/development/libraries/metal/default.nix b/pkgs/development/libraries/metal/default.nix new file mode 100644 index 000000000000..7e047c28d0a6 --- /dev/null +++ b/pkgs/development/libraries/metal/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchFromGitHub, cmake }: +stdenv.mkDerivation rec { + pname = "metal"; + version = "2.1.1"; + + src = fetchFromGitHub { + owner = "brunocodutra"; + repo = "metal"; + rev = "v${version}"; + sha256 = "07n1aqyaixbd66l24km5ip3pkmidkx9m3saygf7cfp6vvbgmi42l"; + }; + + nativeBuildInputs = [ cmake ]; + + enableParallelBuilding = true; + + meta = with stdenv.lib; { + description = "Single-header C++11 library designed to make you love template metaprogramming"; + homepage = "https://github.com/brunocodutra/metal"; + license = licenses.mit; + maintainers = with maintainers; [ pmiddend ]; + platforms = platforms.linux; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8aac6f96ee9e..ea88b7bd2c24 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9038,6 +9038,7 @@ in scala_2_13 = callPackage ../development/compilers/scala/2.13.nix { jre = jre8; }; scala = scala_2_13; + metal = callPackage ../development/libraries/metal { }; metals = callPackage ../development/tools/metals { }; scalafix = callPackage ../development/tools/scalafix { }; scalafmt = callPackage ../development/tools/scalafmt { };