2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake }:
|
2020-04-11 08:50:22 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "metal";
|
2021-02-09 13:41:09 +01:00
|
|
|
version = "2.1.2";
|
2020-04-11 08:50:22 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "brunocodutra";
|
|
|
|
repo = "metal";
|
|
|
|
rev = "v${version}";
|
2021-02-09 13:41:09 +01:00
|
|
|
sha256 = "sha256-1I+EZtIz/2y4+dJGBONhTlUQGHgRdvXc1ZAOC9pmStw=";
|
2020-04-11 08:50:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2020-04-11 08:50:22 +02:00
|
|
|
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 ];
|
2021-03-12 06:24:31 +01:00
|
|
|
platforms = platforms.all;
|
2020-04-11 08:50:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|