ghc_filesystem: modernize & use best practices

This commit is contained in:
seth 2024-11-15 22:35:00 -05:00
parent 2f1894aebf
commit 112ad823b9
No known key found for this signature in database
GPG Key ID: D31BD0D494BBEE86

View File

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