onefetch: fix build

This commit is contained in:
figsoda 2023-01-18 18:25:01 -05:00
parent 1d72880e16
commit 62e3072db6

View file

@ -1,6 +1,7 @@
{ lib
, rustPlatform
, fetchFromGitHub
, fetchpatch
, cmake
, installShellFiles
, pkg-config
@ -30,6 +31,14 @@ rustPlatform.buildRustPackage rec {
./zstd-pkg-config.patch
];
patches = [
(fetchpatch {
name = "use-iso-time-for-snapshot-tests";
url = "https://github.com/o2sh/onefetch/commit/b8b0320d2d271bb10053403092833a26e57134d1.patch";
hash = "sha256-LnC+UCvSwMePC4jBjrTKnbyypNvHHNevB2v4y+hv8Pc=";
})
];
nativeBuildInputs = [ cmake installShellFiles pkg-config ];
buildInputs = [ zstd ]