libfaketime: modernize (#531182)

This commit is contained in:
Bjørn Forsman 2026-06-14 06:39:39 +00:00 committed by GitHub
commit 87a16c09f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,6 +26,12 @@ stdenv.mkDerivation (finalAttrs: {
hash = hashes.${finalAttrs.version};
};
outputs = [
"out"
"doc"
"man"
];
patches = [
./nix-store-date.patch
]
@ -55,7 +61,7 @@ stdenv.mkDerivation (finalAttrs: {
env = {
PREFIX = placeholder "out";
LIBDIRNAME = "/lib";
NIX_CFLAGS_COMPILE = toString (
CFLAGS = toString (
lib.optionals stdenv.cc.isClang [
"-Wno-error=cast-function-type"
"-Wno-error=format-truncation"
@ -72,6 +78,8 @@ stdenv.mkDerivation (finalAttrs: {
doCheck = true;
__structuredAttrs = true;
structDeps = true;
enableParallelBuilding = true;
meta = {
description = "Report faked system time to programs without having to change the system-wide time";