40 lines
898 B
Nix
40 lines
898 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
apple-sdk_11,
|
|
cmake,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "filesystem";
|
|
version = "1.5.14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gulrak";
|
|
repo = "filesystem";
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
|
hash = "sha256-XZ0IxyNIAs2tegktOGQevkLPbWHam/AOFT+M6wAWPFg=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
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";
|
|
changelog = "https://github.com/gulrak/filesystem/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
bbjubjub
|
|
getchoo
|
|
];
|
|
};
|
|
})
|