mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
818628c53a
This version is 5 commits ahead of version 1.0.0 because we need at
least one patch [0] that prevents CMake from trying to use Git to fetch
the already fetched submodule...
Also some files have the wrong formatting (CRLF line endings) which
makes the patching really messy. At this point is seems therefore better
to use the master version instead (1.0.0 is pretty broken regarding
CMake).
[0]: 0ca73ee30e
25 lines
720 B
Nix
25 lines
720 B
Nix
{ stdenv, fetchFromGitHub, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tl-expected-unstable";
|
|
version = "2019-11-11"; # 5 commits ahead of version 1.0.0
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "TartanLlama";
|
|
repo = "expected";
|
|
rev = "1d9c5d8c0da84b8ddc54bd3d90d632eec95c1f13";
|
|
fetchSubmodules = true;
|
|
sha256 = "0rzfn9yyg70zwpxbmv22qy0015baymi2rdd65ixmcb31fgnap68i";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "C++11/14/17 std::expected with functional-style extensions";
|
|
homepage = https://tl.tartanllama.xyz/en/latest/api/expected.html;
|
|
license = licenses.cc0;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ primeos ];
|
|
};
|
|
}
|