From 6ae4ce1d368fb56235a8b15ef926db28c4643eb8 Mon Sep 17 00:00:00 2001 From: Ilya Niklyaev Date: Wed, 7 Feb 2024 12:04:57 +0300 Subject: [PATCH] Stable link to OE4T/meta-tegra instead of master Recent update in repo https://github.com/OE4T/meta-tegra (this one OE4T/meta-tegra@b86c2ae) in fact breaks `jetpack-nixos` build: ``` hash mismatch in fixed-output derivation '/nix/store/n59rw7dri9dacvrav379m3i621qql6nf-0003-Update-conversion-defaults-to-match-NVIDIA-sources.patch.drv': > specified: sha256-vGilgHWinrKjX+ikHo0J20PL713+w+lv46dBgfdvsZM= > got: sha256-6xCEjf432FLksCCk8+EpAbQU3PeGICOQ+6Q2OusUNa4= ``` I think we should refer all external repos by stable links to the certain commits instead of branches. --- pkgs/l4t/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/l4t/default.nix b/pkgs/l4t/default.nix index ba4e772..cb80aa6 100644 --- a/pkgs/l4t/default.nix +++ b/pkgs/l4t/default.nix @@ -204,7 +204,7 @@ let _l4t-multimedia-v4l = libv4l.overrideAttrs ({ nativeBuildInputs ? [ ], patches ? [ ], postPatch ? "", ... }: { nativeBuildInputs = nativeBuildInputs ++ [ dpkg ]; patches = patches ++ lib.singleton (fetchpatch { - url = "https://raw.githubusercontent.com/OE4T/meta-tegra/master/recipes-multimedia/libv4l2/libv4l2-minimal/0003-Update-conversion-defaults-to-match-NVIDIA-sources.patch"; + url = "https://raw.githubusercontent.com/OE4T/meta-tegra/85aa94e16104debdd01a3f61a521b73d86340a9f/recipes-multimedia/libv4l2/libv4l2-minimal/0003-Update-conversion-defaults-to-match-NVIDIA-sources.patch"; sha256 = "sha256-vGilgHWinrKjX+ikHo0J20PL713+w+lv46dBgfdvsZM="; }); # Use a placeholder path that we replace in the l4t-multimedia derivation, We avoid an infinite recursion problem this way.