evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / to / tomlcpp / package.nix
blob6f77fe1cc763e841373f93d7d71fee9b951cca17
1 { lib, stdenv, fetchFromGitHub, fetchpatch }:
3 stdenv.mkDerivation rec {
4   pname = "tomlcpp";
5   version = "0.pre+date=2022-06-25";
7   src = fetchFromGitHub {
8     owner = "cktan";
9     repo = pname;
10     rev = "4212f1fccf530e276a2e1b63d3f99fbfb84e86a4";
11     hash = "sha256-PM3gURXhyTZr59BWuLHvltjKOlKUSBT9/rqTeX5V//k=";
12   };
14   patches = [
15     (fetchpatch {
16       # Use implicit $AR variable in Makefile
17       # https://github.com/cktan/tomlcpp/pull/6
18       url = "https://github.com/cktan/tomlcpp/commit/abdb4e0db8b27f719434f5a0d6ec0b1a6b086ded.patch";
19       hash = "sha256-SurUKdAZNWqBC7ss5nv5mDnJyC3DqxG/Q/FweTrkLnk=";
20     })
21   ];
23   dontConfigure = true;
25   installFlags = [
26     "prefix=${placeholder "out"}"
27   ];
29   meta = {
30     homepage = "https://github.com/cktan/tomlcpp";
31     description = "No fanfare TOML C++ Library";
32     license = lib.licenses.mit;
33     maintainers = with lib.maintainers; [ AndersonTorres ];
34     platforms = with lib.platforms; unix;
35   };