ghc_filesystem: pin apple-sdk to v11; modernize; adopt (#356345)

This commit is contained in:
Weijia Wang 2024-11-17 17:17:24 +01:00 committed by GitHub
commit 2a8d4cc509
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,22 +1,39 @@
{ stdenv, lib, cmake, fetchFromGitHub }:
{
lib,
stdenv,
apple-sdk_11,
cmake,
fetchFromGitHub,
nix-update-script,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "filesystem";
version = "1.5.14";
src = fetchFromGitHub {
owner = "gulrak";
repo = "filesystem";
rev = "v${version}";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-XZ0IxyNIAs2tegktOGQevkLPbWHam/AOFT+M6wAWPFg=";
};
nativeBuildInputs = [ cmake ];
meta = with lib; {
buildInputs = lib.optional stdenv.hostPlatform.isDarwin apple-sdk_11;
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "header-only single-file C++ std::filesystem compatible helper library";
homepage = "https://github.com/gulrak/filesystem";
license = licenses.mit;
maintainers = with maintainers; [ bbjubjub ];
changelog = "https://github.com/gulrak/filesystem/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
bbjubjub
getchoo
];
};
}
})