mach-nix icon indicating copy to clipboard operation
mach-nix copied to clipboard

how to get pypiDataSha256 value from flake.lock file.

Open PlumpMath opened this issue 3 years ago • 1 comments
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 = ./.; }

PlumpMath avatar May 17 '22 02:05 PlumpMath

solve. pypiDataRev = flake-lock.nodes.pypi-deps-db.locked.rev; pypiDataSha256 = flake-lock.nodes.pypi-deps-db.locked.narHash;

PlumpMath avatar May 17 '22 03:05 PlumpMath