From babfed05cc9bf43ee57b7cfae3d459a1b9e817cd Mon Sep 17 00:00:00 2001 From: Nicolas Benes Date: Tue, 8 Oct 2024 21:21:09 +0200 Subject: [PATCH] howard-hinnant-date: enable for Windows --- .../development/libraries/howard-hinnant-date/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/howard-hinnant-date/default.nix b/pkgs/development/libraries/howard-hinnant-date/default.nix index 953dd472210a..3f7210df56f7 100644 --- a/pkgs/development/libraries/howard-hinnant-date/default.nix +++ b/pkgs/development/libraries/howard-hinnant-date/default.nix @@ -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 header"; homepage = "https://github.com/HowardHinnant/date"; - platforms = platforms.unix; + platforms = with platforms; unix ++ windows; maintainers = with maintainers; [ r-burns ]; }; }