cntb: fix darwin

This commit is contained in:
Andrea Ciceri 2024-09-15 12:16:29 +02:00
parent b5fce67ab5
commit e1973e0aa2
No known key found for this signature in database

View File

@ -9,7 +9,13 @@
owner = "contabo";
repo = "cntb";
rev = "v${version}";
hash = "sha256-clDIrZdvEy4oO0ZvqDNLJbr4Ij8D5dcyZPxey6zLV6Q=";
hash = "sha256-5JOO9tWMjy81wSB9Vq/gBYZ0xfrhES0dm/cTqXP8HiI";
# docs contains two files with the same name but different cases,
# this leads to a different hash on case insensitive filesystems (e.g. darwin)
# https://github.com/contabo/cntb/issues/34
postFetch = ''
rm -rf $out/openapi/docs
'';
};
subPackages = [ "." ];