Nix 101 Course / Section 5: Packaging real software with stdenv.mkDerivation
Premium

5.8 Fetching code and the fixed-output derivation

Lesson 35 of 37 · 12:41

placeholder thumbnail

Sign in to watch this lesson

About this lesson

fetchurl, fetchzip, fetchpatch, fetchgit, fetchFromGitHub — and the question everyone asks eventually: why does the hash appear twice? Meet the fixed-output derivation, plus TOFU versus computing the hash up front with nix hash file or nix-prefetch-git.