nixpkgs/pkgs/by-name/to/tomlcpp/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
968 B
Nix
Raw Normal View History

2024-10-28 14:09:01 +00:00
{ lib, stdenv, fetchFromGitHub, fetchpatch }:
2022-04-14 15:59:07 +00:00
stdenv.mkDerivation rec {
pname = "tomlcpp";
version = "0.pre+date=2022-06-25";
2022-04-14 15:59:07 +00:00
src = fetchFromGitHub {
owner = "cktan";
repo = pname;
rev = "4212f1fccf530e276a2e1b63d3f99fbfb84e86a4";
hash = "sha256-PM3gURXhyTZr59BWuLHvltjKOlKUSBT9/rqTeX5V//k=";
2022-04-14 15:59:07 +00:00
};
2024-10-28 14:09:01 +00:00
patches = [
(fetchpatch {
# Use implicit $AR variable in Makefile
# https://github.com/cktan/tomlcpp/pull/6
url = "https://github.com/cktan/tomlcpp/commit/abdb4e0db8b27f719434f5a0d6ec0b1a6b086ded.patch";
hash = "sha256-SurUKdAZNWqBC7ss5nv5mDnJyC3DqxG/Q/FweTrkLnk=";
})
];
2022-04-14 15:59:07 +00:00
dontConfigure = true;
installFlags = [
"prefix=${placeholder "out"}"
];
2024-10-28 14:09:44 +00:00
meta = {
2022-04-14 15:59:07 +00:00
homepage = "https://github.com/cktan/tomlcpp";
description = "No fanfare TOML C++ Library";
2024-10-28 14:09:44 +00:00
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = with lib.platforms; unix;
2022-04-14 15:59:07 +00:00
};
}