Skip to content

Commit

Permalink
gtl: init at 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
foolnotion committed Sep 23, 2024
1 parent 10347fe commit dd94741
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@

gch-small-vector = pkgs.callPackage ./pkgs/gch-small-vector { };

gtl = pkgs.callPackage ./pkgs/gtl { };

koivisto = pkgs.callPackage ./pkgs/koivisto { };

ktl = pkgs.callPackage ./pkgs/ktl { cmake-utils = cmake-utils; };
Expand Down
30 changes: 30 additions & 0 deletions pkgs/gtl/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{ lib, stdenv, fetchFromGitHub, cmake }:

stdenv.mkDerivation rec {
pname = "gtl";
version = "1.2.0";

src = fetchFromGitHub {
owner = "greg7mdp";
repo = "gtl";
rev = "v${version}";
sha256 = "sha256-kSmHgcaCZDNgNZdGqacrUa7d6iTtDm9BVazXUPnI5Zc=";
};

nativeBuildInputs = [ cmake ];

cmakeFlags = [
"-DGTL_INSTALL=ON"
"-DGTL_BUILD_TESTS=OFF"
"-DGTL_BUILD_EXAMPLES=OFF"
"-DGTL_BUILD_BENCHMARKS=OFF"
];

meta = with lib; {
description = "Greg's template library of useful classes";
homepage = "https://github.com/greg7mdp/gtl";
license = licenses.asl20;
platforms = platforms.all;
#maintainers = with maintainers; [ foolnotion ];
};
}

0 comments on commit dd94741

Please sign in to comment.