mach-nix
mach-nix copied to clipboard
how to get pypiDataSha256 value from flake.lock file.
trafficstars
Hi I couldn't find the reason why the coreutils build pin below is not stuck, Going back to lagacy. (As expected, flake seems to be the problem.) Still, flake tries to use the hash value because it creates an automatic lock file. Is this possible?
like
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); flakeCompat = import (fetchTarball { url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; sha256 = lock.nodes.flake-compat.locked.narHash; }); in flakeCompat { src = ./.; }
solve. pypiDataRev = flake-lock.nodes.pypi-deps-db.locked.rev; pypiDataSha256 = flake-lock.nodes.pypi-deps-db.locked.narHash;