Skip to content

Commit

Permalink
string-view-lite: init at 1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Titaniumtown committed Jan 23, 2025
1 parent 0de4d06 commit 58dbcbe
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions pkgs/by-name/st/string-view-lite/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
ninja,
}:

stdenv.mkDerivation rec {
pname = "string-view-lite";
version = "1.8.0";

src = fetchFromGitHub {
owner = "martinmoene";
repo = "string-view-lite";
rev = "v${version}";
hash = "sha256-hXm3MLskeZzTegSj79dQV+VcwBatT1VIAUydjisd19U=";
};

nativeBuildInputs = [
cmake
ninja
];

doCheck = true;

meta = with lib; {
description = ''A C++17-like string_view for C++98, C++11 and later in a single-file header-only library'';
homepage = "https://github.com/martinmoene/string-view-lite";
changelog = "https://github.com/martinmoene/string-view-lite/blob/${src.rev}/CHANGES.txt";
license = licenses.boost;
maintainers = with maintainers; [ titaniumtown ];
};
}

0 comments on commit 58dbcbe

Please sign in to comment.