howard-hinnant-date: enable for Windows (#347330)

This commit is contained in:
Ryan Burns 2024-10-10 22:25:59 -07:00 committed by GitHub
commit ca7407301e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,11 +61,17 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
# fixes "cycle detected in build"
postInstall = lib.optionalString stdenv.hostPlatform.isWindows ''
mkdir $dev/lib
mv $out/CMake $dev/lib/cmake
'';
meta = with lib; {
license = licenses.mit;
description = "Date and time library based on the C++11/14/17 <chrono> header";
homepage = "https://github.com/HowardHinnant/date";
platforms = platforms.unix;
platforms = with platforms; unix ++ windows;
maintainers = with maintainers; [ r-burns ];
};
}