From fdab0202b97fdb2f732c3673a02b264f1dc94188 Mon Sep 17 00:00:00 2001 From: Konstantin Shabanov Date: Sun, 2 Aug 2026 16:40:45 +0700 Subject: [PATCH] nix: native: Downgrade file Use the same version as in debian. Fixes libmagic building: Cannot use the installed version of file (5.48) to cross-compile file 5.46 Please install file 5.46 locally first --- flake.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 2a113b8fc..3226874d5 100644 --- a/flake.nix +++ b/flake.nix @@ -116,7 +116,16 @@ cmake curl doxygen - file + (file.overrideAttrs (attrs: { + version = "5.46"; + src = fetchurl { + urls = [ + "https://astron.com/pub/file/file-5.46.tar.gz" + "https://distfiles.macports.org/file/file-5.46.tar.gz" + ]; + hash = "sha256-ycx3x8VgxUMTXtxVWvYJ1WGdvvARmX6YjOQKPXXYYIg="; + }; + })) flex gettext gnumake